Searched refs:TPM_HEADER_SIZE (Results 1 – 11 of 11) sorted by relevance
/drivers/char/tpm/ |
D | tpm2-space.c | 112 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context() 148 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context() 155 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); in tpm2_save_context() 251 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command() 272 if (len < TPM_HEADER_SIZE || !chip->nr_commands) in tpm_find_and_validate_cc() 287 if (len < TPM_HEADER_SIZE + 4 * nr_handles) in tpm_find_and_validate_cc() 392 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header() 401 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); in tpm2_map_response_header() 446 if (len < TPM_HEADER_SIZE + 9) in tpm2_map_response_body() 449 data = (void *)&rsp[TPM_HEADER_SIZE]; in tpm2_map_response_body() [all …]
|
D | tpm2-cmd.c | 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() [all …]
|
D | tpm_i2c_infineon.c | 474 if (count < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 480 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_i2c_recv() 481 if (size < TPM_HEADER_SIZE) { in tpm_tis_i2c_recv() 487 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { in tpm_tis_i2c_recv() 492 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_i2c_recv() 493 expected - TPM_HEADER_SIZE); in tpm_tis_i2c_recv()
|
D | tpm-interface.c | 68 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit() 129 } else if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) in tpm_try_transmit() 156 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; in tpm_transmit() 231 if (len < min_rsp_body_length + TPM_HEADER_SIZE) in tpm_transmit_cmd()
|
D | tpm1-cmd.c | 493 *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; in tpm1_getcap() 540 out = (struct tpm1_get_random_out *)&buf.data[TPM_HEADER_SIZE]; in tpm1_get_random() 548 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + in tpm1_get_random() 590 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
|
D | tpm_tis_core.c | 314 if (count < TPM_HEADER_SIZE) { in tpm_tis_recv() 319 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_recv() 321 if (size < TPM_HEADER_SIZE) { in tpm_tis_recv() 327 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_recv() 332 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_recv() 333 expected - TPM_HEADER_SIZE); in tpm_tis_recv()
|
D | tpm_i2c_nuvoton.c | 276 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv() 306 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
|
D | tpm_crb.c | 289 if (count < TPM_HEADER_SIZE) in crb_recv() 305 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv()
|
D | tpm_ftpm_tee.c | 149 if (resp_len < TPM_HEADER_SIZE) { in ftpm_tee_tpm_op_send()
|
D | tpm.h | 61 #define TPM_HEADER_SIZE 10 macro
|
/drivers/char/tpm/st33zp24/ |
D | st33zp24.c | 364 if (len < TPM_HEADER_SIZE) in st33zp24_send() 451 if (count < TPM_HEADER_SIZE) { in st33zp24_recv() 456 size = recv_data(chip, buf, TPM_HEADER_SIZE); in st33zp24_recv() 457 if (size < TPM_HEADER_SIZE) { in st33zp24_recv() 463 if (expected > count || expected < TPM_HEADER_SIZE) { in st33zp24_recv() 468 size += recv_data(chip, &buf[TPM_HEADER_SIZE], in st33zp24_recv() 469 expected - TPM_HEADER_SIZE); in st33zp24_recv()
|