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,
67 static void add_early_randomness(struct hwrng *rng) in add_early_randomness()
82 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng()
90 static int set_current_rng(struct hwrng *rng) in set_current_rng()
103 /* if necessary, start hwrng thread */ in set_current_rng()
105 hwrng_fill = kthread_run(hwrng_fillfn, NULL, "hwrng"); in set_current_rng()
126 /* Returns ERR_PTR(), NULL or refcounted hwrng */
127 static struct hwrng *get_current_rng_nolock(void) in get_current_rng_nolock()
135 static struct hwrng *get_current_rng(void) in get_current_rng()
137 struct hwrng *rng; in get_current_rng()
148 static void put_rng(struct hwrng *rng) in put_rng()
160 static int hwrng_init(struct hwrng *rng) in hwrng_init()
192 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
218 struct hwrng *rng; in rng_dev_read()
305 .nodename = "hwrng",
312 struct hwrng *rng, *new_rng = NULL; in enable_best_rng()
342 struct hwrng *rng, *old_rng, *new_rng; in rng_current_store()
378 struct hwrng *rng; in rng_current_show()
395 struct hwrng *rng; in rng_available_show()
423 struct hwrng *rng; in rng_quality_show()
506 struct hwrng *rng; in hwrng_fillfn()
542 int hwrng_register(struct hwrng *rng) in hwrng_register()
545 struct hwrng *tmp; in hwrng_register()
605 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
607 struct hwrng *old_rng, *new_rng; in hwrng_unregister()
643 hwrng_unregister(*(struct hwrng **)res); in devm_hwrng_release()
648 struct hwrng **r = res; in devm_hwrng_match()
656 int devm_hwrng_register(struct device *dev, struct hwrng *rng) in devm_hwrng_register()
658 struct hwrng **ptr; in devm_hwrng_register()
677 void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) in devm_hwrng_unregister()
683 long hwrng_msleep(struct hwrng *rng, unsigned int msecs) in hwrng_msleep()
691 long hwrng_yield(struct hwrng *rng) in hwrng_yield()