Lines Matching refs:rand_data_valid
46 u32 rand_data_valid; member
170 ctx->rand_data_valid = 0; in _get_more_prng_bytes()
217 if (ctx->rand_data_valid == DEFAULT_BLK_SZ) { in get_prng_bytes()
230 while (ctx->rand_data_valid < DEFAULT_BLK_SZ) { in get_prng_bytes()
231 *ptr = ctx->rand_data[ctx->rand_data_valid]; in get_prng_bytes()
234 ctx->rand_data_valid++; in get_prng_bytes()
244 if (ctx->rand_data_valid == DEFAULT_BLK_SZ) { in get_prng_bytes()
251 if (ctx->rand_data_valid > 0) in get_prng_bytes()
254 ctx->rand_data_valid += DEFAULT_BLK_SZ; in get_prng_bytes()
304 ctx->rand_data_valid = DEFAULT_BLK_SZ; in reset_prng_context()
417 prng->rand_data_valid = DEFAULT_BLK_SZ; in fips_cprng_reset()