Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/char/tpm/ !
Dtpm2-cmd.c304 u32 recd; in tpm2_get_random() local
330 recd = min_t(u32, be16_to_cpu(out->size), num_bytes); in tpm2_get_random()
334 recd) { in tpm2_get_random()
338 memcpy(dest_ptr, out->buffer, recd); in tpm2_get_random()
340 dest_ptr += recd; in tpm2_get_random()
341 total += recd; in tpm2_get_random()
342 num_bytes -= recd; in tpm2_get_random()
Dtpm-interface.c1299 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA), rlength; in tpm_get_random() local
1328 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()
1329 if (recd > num_bytes) { in tpm_get_random()
1337 recd) { in tpm_get_random()
1341 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()
1343 dest += recd; in tpm_get_random()
1344 total += recd; in tpm_get_random()
1345 num_bytes -= recd; in tpm_get_random()