Lines Matching full:quality
164 current_quality = rng->quality; /* obsolete */ in hwrng_init()
311 /* use the rng which offers the best quality */ in enable_best_rng()
313 if (!new_rng || rng->quality > new_rng->quality) in enable_best_rng()
415 ret = sysfs_emit(buf, "%hu\n", rng->quality); in rng_quality_show()
425 u16 quality; in rng_quality_store() local
435 ret = kstrtou16(buf, 0, &quality); in rng_quality_store()
436 if (ret || quality > 1024) { in rng_quality_store()
446 current_rng->quality = quality; in rng_quality_store()
447 current_quality = quality; /* obsolete */ in rng_quality_store()
478 unsigned short quality; in hwrng_fillfn() local
487 if (current_quality != rng->quality) in hwrng_fillfn()
488 rng->quality = current_quality; /* obsolete */ in hwrng_fillfn()
489 quality = rng->quality; in hwrng_fillfn()
503 entropy = rc * quality * 8 + entropy_credit; in hwrng_fillfn()
537 /* Adjust quality field to always have a proper value */ in hwrng_register()
538 rng->quality = min_t(u16, min_t(u16, default_quality, 1024), rng->quality ?: 1024); in hwrng_register()
541 (!cur_rng_set_by_user && rng->quality > current_rng->quality)) { in hwrng_register()
544 * provides better entropy quality and was not in hwrng_register()