Searched refs:TPM_HEADER_SIZE (Results 1 – 10 of 10) sorted by relevance
118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context()154 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context()161 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); in tpm2_save_context()260 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; in tpm2_map_command()281 if (len < TPM_HEADER_SIZE || !chip->nr_commands) in tpm_find_and_validate_cc()296 if (len < TPM_HEADER_SIZE + 4 * nr_handles) in tpm_find_and_validate_cc()403 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); in tpm2_map_response_header()412 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); in tpm2_map_response_header()457 if (len < TPM_HEADER_SIZE + 9) in tpm2_map_response_body()460 data = (void *)&rsp[TPM_HEADER_SIZE]; in tpm2_map_response_body()[all …]
158 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; in tpm2_pcr_read()291 offset = buf.handles * 4 + TPM_HEADER_SIZE; in tpm2_get_random()313 offset = TPM_HEADER_SIZE; in tpm2_get_random()321 TPM_HEADER_SIZE + in tpm2_get_random()402 &buf.data[TPM_HEADER_SIZE]; in tpm2_get_tpm_pt()576 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); in tpm2_get_pcr_allocation()584 marker = &buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_pcr_allocation()665 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { in tpm2_get_cc_attrs_tbl()673 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; in tpm2_get_cc_attrs_tbl()
169 off_t offset = TPM_HEADER_SIZE; in tpm2_read_public()268 slot = (tpm_buf_length(buf) - TPM_HEADER_SIZE) / 4; in tpm_buf_append_name()320 int offset = buf->handles * 4 + TPM_HEADER_SIZE; in tpm_buf_append_auth()591 off_t offset_s = TPM_HEADER_SIZE, offset_p; in tpm_buf_fill_hmac_session()779 if (auth->session >= TPM_HEADER_SIZE) { in tpm_buf_check_hmac_response()801 offset_s = TPM_HEADER_SIZE + handles * 4; in tpm_buf_check_hmac_response()880 auth->session = TPM_HEADER_SIZE; in tpm_buf_check_hmac_response()915 off_t offset = TPM_HEADER_SIZE; in tpm2_parse_start_auth_session()919 tot_len -= TPM_HEADER_SIZE; in tpm2_parse_start_auth_session()1005 auth->session = TPM_HEADER_SIZE; in tpm2_start_auth_session()[all …]
100 if (bufsiz < TPM_HEADER_SIZE) in tpm_try_transmit()181 if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) in tpm_try_transmit()208 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; in tpm_transmit()283 if (len < min_rsp_body_length + TPM_HEADER_SIZE) in tpm_transmit_cmd()
508 *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; in tpm1_getcap()555 out = (struct tpm1_get_random_out *)&buf.data[TPM_HEADER_SIZE]; in tpm1_get_random()563 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + in tpm1_get_random()605 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); in tpm1_pcr_read()
349 size = recv_data(chip, buf, TPM_HEADER_SIZE); in tpm_tis_try_recv()351 if (size < TPM_HEADER_SIZE) { in tpm_tis_try_recv()357 if (expected > count || expected < TPM_HEADER_SIZE) { in tpm_tis_try_recv()362 rc = recv_data(chip, &buf[TPM_HEADER_SIZE], in tpm_tis_try_recv()363 expected - TPM_HEADER_SIZE); in tpm_tis_try_recv()404 if (count < TPM_HEADER_SIZE) in tpm_tis_recv()
277 if (count < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()307 if (size < TPM_HEADER_SIZE) { in i2c_nuvoton_recv()
374 if (count < TPM_HEADER_SIZE) in crb_recv()390 if (expected > count || expected < TPM_HEADER_SIZE) in crb_recv()
236 off_t offset = TPM_HEADER_SIZE; in tpm2_seal_trusted()459 (__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_load_cmd()527 offset = buf.handles * 4 + TPM_HEADER_SIZE; in tpm2_unseal_cmd()543 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); in tpm2_unseal_cmd()549 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd()553 data = &buf.data[TPM_HEADER_SIZE + 6]; in tpm2_unseal_cmd()
221 #define TPM_HEADER_SIZE 10 macro