Lines Matching refs:TPM_HEADER_SIZE
211 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read()
329 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_random()
494 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_seal_trusted()
499 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { in tpm2_seal_trusted()
504 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted()
576 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd()
630 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd()
636 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd()
640 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
717 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt()
882 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation()
889 marker = &buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation()
956 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl()
963 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()