Home
last modified time | relevance | path

Searched refs:recd (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/char/tpm/
Dtpm1-cmd.c537 u32 recd; in tpm1_get_random() local
557 recd = be32_to_cpu(out->rng_data_len); in tpm1_get_random()
558 if (recd > num_bytes) { in tpm1_get_random()
564 sizeof(out->rng_data_len) + recd) { in tpm1_get_random()
568 memcpy(dest, out->rng_data, recd); in tpm1_get_random()
570 dest += recd; in tpm1_get_random()
571 total += recd; in tpm1_get_random()
572 num_bytes -= recd; in tpm1_get_random()
Dtpm2-cmd.c292 u32 recd; in tpm2_get_random() local
321 recd = min_t(u32, be16_to_cpu(out->size), num_bytes); in tpm2_get_random()
325 recd) { in tpm2_get_random()
329 memcpy(dest_ptr, out->buffer, recd); in tpm2_get_random()
331 dest_ptr += recd; in tpm2_get_random()
332 total += recd; in tpm2_get_random()
333 num_bytes -= recd; in tpm2_get_random()