Searched refs:TPM_HEADER_SIZE (Results 1 - 13 of 13) sorted by relevance
/linux-master/drivers/char/tpm/ |
H A D | tpm2-space.c | 115 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); 151 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; 158 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); 254 handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; 275 if (len < TPM_HEADER_SIZE || !chip->nr_commands) 290 if (len < TPM_HEADER_SIZE + 4 * nr_handles) 397 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); 406 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); 451 if (len < TPM_HEADER_SIZE + 9) 454 data = (void *)&rsp[TPM_HEADER_SIZE]; [all...] |
H A D | tpm2-cmd.c | 202 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; 320 &buf.data[TPM_HEADER_SIZE]; 323 TPM_HEADER_SIZE + 402 &buf.data[TPM_HEADER_SIZE]; 576 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); 586 marker = &buf.data[TPM_HEADER_SIZE + 9]; 667 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { 675 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9];
|
H A D | tpm-interface.c | 69 if (bufsiz < TPM_HEADER_SIZE) 130 } else if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) 157 u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; 232 if (len < min_rsp_body_length + TPM_HEADER_SIZE)
|
H A D | tpm_i2c_infineon.c | 474 if (count < TPM_HEADER_SIZE) { 480 size = recv_data(chip, buf, TPM_HEADER_SIZE); 481 if (size < TPM_HEADER_SIZE) { 487 if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { 492 size += recv_data(chip, &buf[TPM_HEADER_SIZE], 493 expected - TPM_HEADER_SIZE);
|
H A D | tpm1-cmd.c | 508 *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; 555 out = (struct tpm1_get_random_out *)&buf.data[TPM_HEADER_SIZE]; 563 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 605 memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE);
|
H A D | tpm_tis_i2c_cr50.c | 460 if (buf_len < TPM_HEADER_SIZE) 467 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) { 470 burstcnt, buf_len, TPM_HEADER_SIZE);
|
H A D | tpm_tis_core.c | 351 size = recv_data(chip, buf, TPM_HEADER_SIZE); 353 if (size < TPM_HEADER_SIZE) { 359 if (expected > count || expected < TPM_HEADER_SIZE) { 364 rc = recv_data(chip, &buf[TPM_HEADER_SIZE], 365 expected - TPM_HEADER_SIZE); 406 if (count < TPM_HEADER_SIZE)
|
H A D | tpm_crb.c | 328 if (count < TPM_HEADER_SIZE) 344 if (expected > count || expected < TPM_HEADER_SIZE)
|
H A D | tpm_i2c_nuvoton.c | 277 if (count < TPM_HEADER_SIZE) { 307 if (size < TPM_HEADER_SIZE) {
|
H A D | tpm_ftpm_tee.c | 148 if (resp_len < TPM_HEADER_SIZE) {
|
/linux-master/security/keys/trusted-keys/ |
H A D | trusted_tpm2.c | 315 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); 320 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { 326 &buf.data[TPM_HEADER_SIZE + 4], 433 (__be32 *) &buf.data[TPM_HEADER_SIZE]); 487 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); 493 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { 497 data = &buf.data[TPM_HEADER_SIZE + 6];
|
/linux-master/drivers/char/tpm/st33zp24/ |
H A D | st33zp24.c | 311 if (len < TPM_HEADER_SIZE) 390 if (count < TPM_HEADER_SIZE) { 395 size = recv_data(chip, buf, TPM_HEADER_SIZE); 396 if (size < TPM_HEADER_SIZE) { 402 if (expected > count || expected < TPM_HEADER_SIZE) { 407 size += recv_data(chip, &buf[TPM_HEADER_SIZE], 408 expected - TPM_HEADER_SIZE);
|
/linux-master/include/linux/ |
H A D | tpm.h | 175 #define TPM_HEADER_SIZE 10 macro
|
Completed in 235 milliseconds