Lines Matching full:hwrng
2 * hw_random/core.c: HWRNG core API
30 static struct hwrng *current_rng;
47 "current hwrng entropy estimation per 1024 bits of input -- obsolete, use rng_quality instead");
50 "default maximum entropy content of hwrng per 1024 bits of input");
53 static int hwrng_init(struct hwrng *rng);
56 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size,
64 static void add_early_randomness(struct hwrng *rng) in add_early_randomness()
79 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng()
87 static int set_current_rng(struct hwrng *rng) in set_current_rng()
100 /* if necessary, start hwrng thread */ in set_current_rng()
102 hwrng_fill = kthread_run(hwrng_fillfn, NULL, "hwrng"); in set_current_rng()
123 /* Returns ERR_PTR(), NULL or refcounted hwrng */
124 static struct hwrng *get_current_rng_nolock(void) in get_current_rng_nolock()
132 static struct hwrng *get_current_rng(void) in get_current_rng()
134 struct hwrng *rng; in get_current_rng()
145 static void put_rng(struct hwrng *rng) in put_rng()
157 static int hwrng_init(struct hwrng *rng) in hwrng_init()
190 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
215 struct hwrng *rng; in rng_dev_read()
298 .nodename = "hwrng",
305 struct hwrng *rng, *new_rng = NULL; in enable_best_rng()
335 struct hwrng *rng, *old_rng, *new_rng; in rng_current_store()
371 struct hwrng *rng; in rng_current_show()
388 struct hwrng *rng; in rng_available_show()
416 struct hwrng *rng; in rng_quality_show()
499 struct hwrng *rng; in hwrng_fillfn()
535 int hwrng_register(struct hwrng *rng) in hwrng_register()
538 struct hwrng *tmp; in hwrng_register()
595 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
597 struct hwrng *old_rng, *new_rng; in hwrng_unregister()
633 hwrng_unregister(*(struct hwrng **)res); in devm_hwrng_release()
638 struct hwrng **r = res; in devm_hwrng_match()
646 int devm_hwrng_register(struct device *dev, struct hwrng *rng) in devm_hwrng_register()
648 struct hwrng **ptr; in devm_hwrng_register()
667 void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) in devm_hwrng_unregister()
673 long hwrng_msleep(struct hwrng *rng, unsigned int msecs) in hwrng_msleep()