TPM_HEADER_SIZE 364 drivers/char/tpm/st33zp24/st33zp24.c if (len < TPM_HEADER_SIZE) TPM_HEADER_SIZE 451 drivers/char/tpm/st33zp24/st33zp24.c if (count < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 456 drivers/char/tpm/st33zp24/st33zp24.c size = recv_data(chip, buf, TPM_HEADER_SIZE); TPM_HEADER_SIZE 457 drivers/char/tpm/st33zp24/st33zp24.c if (size < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 463 drivers/char/tpm/st33zp24/st33zp24.c if (expected > count || expected < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 468 drivers/char/tpm/st33zp24/st33zp24.c size += recv_data(chip, &buf[TPM_HEADER_SIZE], TPM_HEADER_SIZE 469 drivers/char/tpm/st33zp24/st33zp24.c expected - TPM_HEADER_SIZE); TPM_HEADER_SIZE 68 drivers/char/tpm/tpm-interface.c if (bufsiz < TPM_HEADER_SIZE) TPM_HEADER_SIZE 129 drivers/char/tpm/tpm-interface.c } else if (len < TPM_HEADER_SIZE || len != be32_to_cpu(header->length)) TPM_HEADER_SIZE 156 drivers/char/tpm/tpm-interface.c u8 save[TPM_HEADER_SIZE + 3*sizeof(u32)]; TPM_HEADER_SIZE 231 drivers/char/tpm/tpm-interface.c if (len < min_rsp_body_length + TPM_HEADER_SIZE) TPM_HEADER_SIZE 493 drivers/char/tpm/tpm1-cmd.c *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; TPM_HEADER_SIZE 540 drivers/char/tpm/tpm1-cmd.c out = (struct tpm1_get_random_out *)&buf.data[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 548 drivers/char/tpm/tpm1-cmd.c if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + TPM_HEADER_SIZE 590 drivers/char/tpm/tpm1-cmd.c memcpy(res_buf, &buf.data[TPM_HEADER_SIZE], TPM_DIGEST_SIZE); TPM_HEADER_SIZE 216 drivers/char/tpm/tpm2-cmd.c out = (struct tpm2_pcr_read_out *)&buf.data[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 334 drivers/char/tpm/tpm2-cmd.c &buf.data[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 337 drivers/char/tpm/tpm2-cmd.c TPM_HEADER_SIZE + TPM_HEADER_SIZE 494 drivers/char/tpm/tpm2-cmd.c blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); TPM_HEADER_SIZE 499 drivers/char/tpm/tpm2-cmd.c if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { TPM_HEADER_SIZE 504 drivers/char/tpm/tpm2-cmd.c memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); TPM_HEADER_SIZE 574 drivers/char/tpm/tpm2-cmd.c (__be32 *) &buf.data[TPM_HEADER_SIZE]); TPM_HEADER_SIZE 626 drivers/char/tpm/tpm2-cmd.c (__be16 *) &buf.data[TPM_HEADER_SIZE + 4]); TPM_HEADER_SIZE 632 drivers/char/tpm/tpm2-cmd.c if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { TPM_HEADER_SIZE 636 drivers/char/tpm/tpm2-cmd.c data = &buf.data[TPM_HEADER_SIZE + 6]; TPM_HEADER_SIZE 708 drivers/char/tpm/tpm2-cmd.c &buf.data[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 873 drivers/char/tpm/tpm2-cmd.c (__be32 *)&buf.data[TPM_HEADER_SIZE + 5]); TPM_HEADER_SIZE 883 drivers/char/tpm/tpm2-cmd.c marker = &buf.data[TPM_HEADER_SIZE + 9]; TPM_HEADER_SIZE 964 drivers/char/tpm/tpm2-cmd.c be32_to_cpup((__be32 *)&buf.data[TPM_HEADER_SIZE + 5])) { TPM_HEADER_SIZE 971 drivers/char/tpm/tpm2-cmd.c attrs = (__be32 *)&buf.data[TPM_HEADER_SIZE + 9]; TPM_HEADER_SIZE 112 drivers/char/tpm/tpm2-space.c *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); TPM_HEADER_SIZE 148 drivers/char/tpm/tpm2-space.c body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; TPM_HEADER_SIZE 155 drivers/char/tpm/tpm2-space.c memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size); TPM_HEADER_SIZE 251 drivers/char/tpm/tpm2-space.c handle = (__be32 *)&cmd[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 272 drivers/char/tpm/tpm2-space.c if (len < TPM_HEADER_SIZE || !chip->nr_commands) TPM_HEADER_SIZE 287 drivers/char/tpm/tpm2-space.c if (len < TPM_HEADER_SIZE + 4 * nr_handles) TPM_HEADER_SIZE 392 drivers/char/tpm/tpm2-space.c phandle = be32_to_cpup((__be32 *)&rsp[TPM_HEADER_SIZE]); TPM_HEADER_SIZE 401 drivers/char/tpm/tpm2-space.c *(__be32 *)&rsp[TPM_HEADER_SIZE] = cpu_to_be32(vhandle); TPM_HEADER_SIZE 446 drivers/char/tpm/tpm2-space.c if (len < TPM_HEADER_SIZE + 9) TPM_HEADER_SIZE 449 drivers/char/tpm/tpm2-space.c data = (void *)&rsp[TPM_HEADER_SIZE]; TPM_HEADER_SIZE 453 drivers/char/tpm/tpm2-space.c if (len != TPM_HEADER_SIZE + 9 + 4 * be32_to_cpu(data->count)) TPM_HEADER_SIZE 478 drivers/char/tpm/tpm2-space.c header->length = cpu_to_be32(TPM_HEADER_SIZE + 9 + 4 * j); TPM_HEADER_SIZE 289 drivers/char/tpm/tpm_crb.c if (count < TPM_HEADER_SIZE) TPM_HEADER_SIZE 305 drivers/char/tpm/tpm_crb.c if (expected > count || expected < TPM_HEADER_SIZE) TPM_HEADER_SIZE 149 drivers/char/tpm/tpm_ftpm_tee.c if (resp_len < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 474 drivers/char/tpm/tpm_i2c_infineon.c if (count < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 480 drivers/char/tpm/tpm_i2c_infineon.c size = recv_data(chip, buf, TPM_HEADER_SIZE); TPM_HEADER_SIZE 481 drivers/char/tpm/tpm_i2c_infineon.c if (size < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 487 drivers/char/tpm/tpm_i2c_infineon.c if (((size_t) expected > count) || (expected < TPM_HEADER_SIZE)) { TPM_HEADER_SIZE 492 drivers/char/tpm/tpm_i2c_infineon.c size += recv_data(chip, &buf[TPM_HEADER_SIZE], TPM_HEADER_SIZE 493 drivers/char/tpm/tpm_i2c_infineon.c expected - TPM_HEADER_SIZE); TPM_HEADER_SIZE 276 drivers/char/tpm/tpm_i2c_nuvoton.c if (count < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 306 drivers/char/tpm/tpm_i2c_nuvoton.c if (size < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 314 drivers/char/tpm/tpm_tis_core.c if (count < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 319 drivers/char/tpm/tpm_tis_core.c size = recv_data(chip, buf, TPM_HEADER_SIZE); TPM_HEADER_SIZE 321 drivers/char/tpm/tpm_tis_core.c if (size < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 327 drivers/char/tpm/tpm_tis_core.c if (expected > count || expected < TPM_HEADER_SIZE) { TPM_HEADER_SIZE 332 drivers/char/tpm/tpm_tis_core.c size += recv_data(chip, &buf[TPM_HEADER_SIZE], TPM_HEADER_SIZE 333 drivers/char/tpm/tpm_tis_core.c expected - TPM_HEADER_SIZE);