Lines Matching refs:TPM_HEADER_SIZE
118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]);
154 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE;
161 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size);
257 handle = (__be32 *)&cmd[TPM_HEADER_SIZE];
278 if (len < TPM_HEADER_SIZE || !chip->nr_commands)
293 if (len < TPM_HEADER_SIZE + 4 * nr_handles)
400 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]);
409 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle);
454 if (len < TPM_HEADER_SIZE + 9)
457 data = (void *)&rsp[TPM_HEADER_SIZE];
461 if (be32_to_cpu(data->count) > (UINT_MAX - TPM_HEADER_SIZE - 9) / 4)
464 if (len != TPM_HEADER_SIZE + 9 + 4 * be32_to_cpu(data->count))
489 header->length = cpu_to_be32(TPM_HEADER_SIZE + 9 + 4 * j);