Lines Matching refs:quality
73 size_t entropy = bytes_read * 8 * rng->quality / 1024; in add_early_randomness()
175 rng->quality = min_t(u16, min_t(u16, default_quality, 1024), rng->quality ?: 1024); in hwrng_init()
176 current_quality = rng->quality; /* obsolete */ in hwrng_init()
320 if (!new_rng || rng->quality > new_rng->quality) in enable_best_rng()
426 ret = sysfs_emit(buf, "%hu\n", rng->quality); in rng_quality_show()
436 u16 quality; in rng_quality_store() local
446 ret = kstrtou16(buf, 0, &quality); in rng_quality_store()
447 if (ret || quality > 1024) { in rng_quality_store()
457 current_rng->quality = quality; in rng_quality_store()
458 current_quality = quality; /* obsolete */ in rng_quality_store()
499 unsigned short quality; in hwrng_fillfn() local
508 if (current_quality != rng->quality) in hwrng_fillfn()
509 rng->quality = current_quality; /* obsolete */ in hwrng_fillfn()
510 quality = rng->quality; in hwrng_fillfn()
524 entropy = rc * quality * 8 + entropy_credit; in hwrng_fillfn()
560 (!cur_rng_set_by_user && rng->quality > current_rng->quality)) { in hwrng_register()