Searched refs:recd (Results 1 – 2 of 2) sorted by relevance
344 u32 recd; in tpm2_get_random() local366 recd = min_t(u32, be16_to_cpu(cmd.params.getrandom_out.size), in tpm2_get_random()368 memcpy(dest, cmd.params.getrandom_out.buffer, recd); in tpm2_get_random()370 dest += recd; in tpm2_get_random()371 total += recd; in tpm2_get_random()372 num_bytes -= recd; in tpm2_get_random()
1008 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); in tpm_get_random() local1035 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()1036 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()1038 dest += recd; in tpm_get_random()1039 total += recd; in tpm_get_random()1040 num_bytes -= recd; in tpm_get_random()