Searched refs:TPM_HEADER_SIZE (Results 1 - 13 of 13) sorted by path

/linux-master/drivers/char/tpm/st33zp24/
H A Dst33zp24.c311 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/drivers/char/tpm/
H A Dtpm-interface.c69 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 Dtpm1-cmd.c508 *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 Dtpm2-cmd.c202 out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE];
326 TPM_HEADER_SIZE +
408 &buf.data[TPM_HEADER_SIZE];
582 (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]);
592 marker = &buf.data[TPM_HEADER_SIZE + 9];
673 be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) {
681 attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9];
H A Dtpm2-space.c118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]);
154 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE;
161 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size);
257 handle = (__be32 *)&cmd[TPM_HEADER_SIZE];
278 if (len < TPM_HEADER_SIZE || !chip->nr_commands)
293 if (len < TPM_HEADER_SIZE + 4 * nr_handles)
400 phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]);
409 *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle);
454 if (len < TPM_HEADER_SIZE + 9)
457 data = (void *)&rsp[TPM_HEADER_SIZE];
[all...]
H A Dtpm_crb.c328 if (count < TPM_HEADER_SIZE)
344 if (expected > count || expected < TPM_HEADER_SIZE)
H A Dtpm_ftpm_tee.c148 if (resp_len < TPM_HEADER_SIZE) {
H A Dtpm_i2c_infineon.c474 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 Dtpm_i2c_nuvoton.c277 if (count < TPM_HEADER_SIZE) {
307 if (size < TPM_HEADER_SIZE) {
H A Dtpm_tis_core.c351 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 Dtpm_tis_i2c_cr50.c460 if (buf_len < TPM_HEADER_SIZE)
467 if (burstcnt > buf_len || burstcnt < TPM_HEADER_SIZE) {
470 burstcnt, buf_len, TPM_HEADER_SIZE);
/linux-master/include/linux/
H A Dtpm.h218 #define TPM_HEADER_SIZE 10
555 int offset = buf->handles * 4 + TPM_HEADER_SIZE;
581 int offset = buf->handles * 4 + TPM_HEADER_SIZE;
175 #define TPM_HEADER_SIZE macro
/linux-master/security/keys/trusted-keys/
H A Dtrusted_tpm2.c231 off_t offset = TPM_HEADER_SIZE;
451 (__be32 *) &buf.data[TPM_HEADER_SIZE]);
529 (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]);
535 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) {
539 data = &buf.data[TPM_HEADER_SIZE + 6];

Completed in 326 milliseconds