Lines Matching full:hwrng
2 * hw_random/core.c: HWRNG core API
33 static struct hwrng *current_rng;
50 "current hwrng entropy estimation per 1024 bits of input -- obsolete, use rng_quality instead");
53 "default maximum entropy content of hwrng per 1024 bits of input");
56 static int hwrng_init(struct hwrng *rng);
59 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size,
69 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng()
77 static int set_current_rng(struct hwrng *rng) in set_current_rng()
90 /* if necessary, start hwrng thread */ in set_current_rng()
92 hwrng_fill = kthread_run(hwrng_fillfn, NULL, "hwrng"); in set_current_rng()
113 /* Returns ERR_PTR(), NULL or refcounted hwrng */
114 static struct hwrng *get_current_rng_nolock(void) in get_current_rng_nolock()
122 static struct hwrng *get_current_rng(void) in get_current_rng()
124 struct hwrng *rng; in get_current_rng()
135 static void put_rng(struct hwrng *rng) in put_rng()
147 static int hwrng_init(struct hwrng *rng) in hwrng_init()
179 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
212 struct hwrng *rng; in rng_dev_read()
299 .nodename = "hwrng",
306 struct hwrng *rng, *new_rng = NULL; in enable_best_rng()
336 struct hwrng *rng, *new_rng; in rng_current_store()
368 struct hwrng *rng; in rng_current_show()
385 struct hwrng *rng; in rng_available_show()
413 struct hwrng *rng; in rng_quality_show()
486 struct hwrng *rng; in hwrng_fillfn()
522 int hwrng_register(struct hwrng *rng) in hwrng_register()
525 struct hwrng *tmp; in hwrng_register()
567 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
569 struct hwrng *new_rng; in hwrng_unregister()
601 hwrng_unregister(*(struct hwrng **)res); in devm_hwrng_release()
606 struct hwrng **r = res; in devm_hwrng_match()
614 int devm_hwrng_register(struct device *dev, struct hwrng *rng) in devm_hwrng_register()
616 struct hwrng **ptr; in devm_hwrng_register()
635 void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) in devm_hwrng_unregister()
641 long hwrng_msleep(struct hwrng *rng, unsigned int msecs) in hwrng_msleep()
649 long hwrng_yield(struct hwrng *rng) in hwrng_yield()