Home
last modified time | relevance | path

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

/Linux-v4.19/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()
332 offsetof(struct tpm2_get_random_out, buffer) + recd) { in tpm2_get_random()
336 memcpy(dest_ptr, out->buffer, recd); in tpm2_get_random()
338 dest_ptr += recd; in tpm2_get_random()
339 total += recd; in tpm2_get_random()
340 num_bytes -= recd; in tpm2_get_random()
Dtpm-interface.c1288 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA), rlength; in tpm_get_random() local
1317 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()
1318 if (recd > num_bytes) { in tpm_get_random()
1325 recd) { in tpm_get_random()
1329 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()
1331 dest += recd; in tpm_get_random()
1332 total += recd; in tpm_get_random()
1333 num_bytes -= recd; in tpm_get_random()