Home
last modified time | relevance | path

Searched refs:TPM_HEADER_SIZE (Results 1 – 7 of 7) sorted by relevance

/drivers/char/tpm/st33zp24/
Dst33zp24.c379 if (len < TPM_HEADER_SIZE) in st33zp24_send()
466 if (count < TPM_HEADER_SIZE) { in st33zp24_recv()
471 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv()
472 if (size < TPM_HEADER_SIZE) { in st33zp24_recv()
478 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv()
483 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv()
484 expected - TPM_HEADER_SIZE); in st33zp24_recv()
/drivers/char/tpm/
Dtpm_i2c_infineon.c443 if (count < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv()
449 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_i2c_recv()
450 if (size < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv()
456 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv()
461 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_i2c_recv()
462 expected - TPM_HEADER_SIZE); in tpm_tis_i2c_recv()
Dtpm_tis_core.c214 if (count < TPM_HEADER_SIZE) { in tpm_tis_recv()
219 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_recv()
221 if (size < TPM_HEADER_SIZE) { in tpm_tis_recv()
227 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_recv()
232 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_recv()
233 expected - TPM_HEADER_SIZE); in tpm_tis_recv()
Dtpm2-cmd.c519 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_seal_trusted()
525 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted()
590 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd()
670 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd()
676 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
Dtpm_i2c_nuvoton.c44 #define TPM_HEADER_SIZE 10 macro
290 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
320 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
Dtpm-interface.c340 if (bufsiz < TPM_HEADER_SIZE) in tpm_transmit()
417 else if (len < TPM_HEADER_SIZE) in tpm_transmit_cmd()
Dtpm.h70 #define TPM_HEADER_SIZE 10 macro