Searched refs:recd (Results 1 – 2 of 2) sorted by relevance
339 u32 recd; in tpm2_get_random() local361 recd = min_t(u32, be16_to_cpu(cmd.params.getrandom_out.size), in tpm2_get_random()363 memcpy(dest, cmd.params.getrandom_out.buffer, recd); in tpm2_get_random()365 dest += recd; in tpm2_get_random()366 total += recd; in tpm2_get_random()367 num_bytes -= recd; in tpm2_get_random()
984 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA); in tpm_get_random() local1011 recd = be32_to_cpu(tpm_cmd.params.getrandom_out.rng_data_len); in tpm_get_random()1012 memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd); in tpm_get_random()1014 dest += recd; in tpm_get_random()1015 total += recd; in tpm_get_random()1016 num_bytes -= recd; in tpm_get_random()