Lines Matching defs:data
115 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]);
158 memcpy(&buf[*offset], &tbuf.data[TPM_HEADER_SIZE], body_size);
439 struct tpm2_cap_handles *data;
454 data = (void *)&rsp[TPM_HEADER_SIZE];
455 if (be32_to_cpu(data->capability) != TPM2_CAP_HANDLES)
458 if (be32_to_cpu(data->count) > (UINT_MAX - TPM_HEADER_SIZE - 9) / 4)
461 if (len != TPM_HEADER_SIZE + 9 + 4 * be32_to_cpu(data->count))
464 for (i = 0, j = 0; i < be32_to_cpu(data->count); i++) {
465 phandle = be32_to_cpup((__be32 *)&data->handles[i]);
474 data->handles[j] = cpu_to_be32(vhandle);
479 data->handles[j] = cpu_to_be32(phandle);
487 data->count = cpu_to_be32(j);