Lines Matching full:quality
173 if (!rng->quality) in hwrng_init()
174 rng->quality = default_quality; in hwrng_init()
175 if (rng->quality > 1024) in hwrng_init()
176 rng->quality = 1024; in hwrng_init()
177 current_quality = rng->quality; /* obsolete */ in hwrng_init()
319 /* use the rng which offers the best quality */ in enable_best_rng()
321 if (!new_rng || rng->quality > new_rng->quality) in enable_best_rng()
427 ret = sysfs_emit(buf, "%hu\n", rng->quality); in rng_quality_show()
437 u16 quality; in rng_quality_store() local
447 ret = kstrtou16(buf, 0, &quality); in rng_quality_store()
448 if (ret || quality > 1024) { in rng_quality_store()
458 current_rng->quality = quality; in rng_quality_store()
459 current_quality = quality; /* obsolete */ in rng_quality_store()
500 unsigned short quality; in hwrng_fillfn() local
509 if (current_quality != rng->quality) in hwrng_fillfn()
510 rng->quality = current_quality; /* obsolete */ in hwrng_fillfn()
511 quality = rng->quality; in hwrng_fillfn()
525 entropy = rc * quality * 8 + entropy_credit; in hwrng_fillfn()
561 (!cur_rng_set_by_user && rng->quality > current_rng->quality)) { in hwrng_register()
564 * provides better entropy quality and was not in hwrng_register()