Lines Matching refs:TPM_HEADER_SIZE
216 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read()
334 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_random()
337 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()
574 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd()
626 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd()
632 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd()
636 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
708 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt()
871 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation()
881 marker = &buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation()
958 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl()
965 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()