Searched refs:recd (Results 1 – 2 of 2) sorted by relevance
537 u32 recd; in tpm1_get_random() local557 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()
300 u32 recd; in tpm2_get_random() local346 recd = min_t(u32, be16_to_cpu(out->size), num_bytes); in tpm2_get_random()350 recd) { in tpm2_get_random()354 memcpy(dest_ptr, out->buffer, recd); in tpm2_get_random()356 dest_ptr += recd; in tpm2_get_random()357 total += recd; in tpm2_get_random()358 num_bytes -= recd; in tpm2_get_random()