Searched refs:TPM_HEADER_SIZE (Results 1 – 9 of 9) sorted by relevance
/linux-4.19.296/drivers/char/tpm/ |
D | tpm2-cmd.c | 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() 332 TPM_HEADER_SIZE + in tpm2_get_random() 496 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_seal_trusted() 501 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { in tpm2_seal_trusted() 506 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted() 578 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd() 632 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd() 638 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd() 642 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd() [all …]
|
D | tpm2-space.c | 118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context() 155 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context() 162 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); in tpm2_save_context() 259 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command() 361 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 370 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); in tpm2_map_response_header() 415 if (len < TPM_HEADER_SIZE + 9) in tpm2_map_response_body() 418 data = (void *)&rsp[TPM_HEADER_SIZE]; in tpm2_map_response_body() 422 if (be32_to_cpu(data->count) > (UINT_MAX - TPM_HEADER_SIZE - 9) / 4) in tpm2_map_response_body() 425 if (len != TPM_HEADER_SIZE + 9 + 4 * be32_to_cpu(data->count)) in tpm2_map_response_body() [all …]
|
D | tpm_i2c_infineon.c | 480 if (count < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 486 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_i2c_recv() 487 if (size < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 493 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv() 498 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_i2c_recv() 499 expected - TPM_HEADER_SIZE); in tpm_tis_i2c_recv()
|
D | tpm-interface.c | 341 if (len < TPM_HEADER_SIZE) in tpm_validate_command() 360 if (len < TPM_HEADER_SIZE + 4 * nr_handles) in tpm_validate_command() 546 } else if (len < TPM_HEADER_SIZE) { in tpm_try_transmit() 601 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; in tpm_transmit() 605 const size_t save_size = min(space ? sizeof(save) : TPM_HEADER_SIZE, in tpm_transmit() 683 if (len < min_rsp_body_length + TPM_HEADER_SIZE) in tpm_transmit_cmd() 770 *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; in tpm_getcap() 1335 if (rlength < TPM_HEADER_SIZE + in tpm_get_random()
|
D | tpm_tis_core.c | 275 if (count < TPM_HEADER_SIZE) { in tpm_tis_recv() 280 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_recv() 282 if (size < TPM_HEADER_SIZE) { in tpm_tis_recv() 288 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_recv() 293 rc = recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_recv() 294 expected - TPM_HEADER_SIZE); in tpm_tis_recv()
|
D | tpm_i2c_nuvoton.c | 288 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv() 318 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
|
D | tpm_crb.c | 293 if (count < TPM_HEADER_SIZE) in crb_recv() 309 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv()
|
D | tpm.h | 84 #define TPM_HEADER_SIZE 10 macro
|
/linux-4.19.296/drivers/char/tpm/st33zp24/ |
D | st33zp24.c | 376 if (len < TPM_HEADER_SIZE) in st33zp24_send() 463 if (count < TPM_HEADER_SIZE) { in st33zp24_recv() 468 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv() 469 if (size < TPM_HEADER_SIZE) { in st33zp24_recv() 475 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv() 480 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv() 481 expected - TPM_HEADER_SIZE); in st33zp24_recv()
|