Lines Matching refs:hwrng

54 static struct hwrng *current_rng;
74 static int hwrng_init(struct hwrng *rng);
77 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size,
85 static void add_early_randomness(struct hwrng *rng) in add_early_randomness()
99 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng()
107 static int set_current_rng(struct hwrng *rng) in set_current_rng()
135 static struct hwrng *get_current_rng(void) in get_current_rng()
137 struct hwrng *rng; in get_current_rng()
150 static void put_rng(struct hwrng *rng) in put_rng()
162 static int hwrng_init(struct hwrng *rng) in hwrng_init()
203 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
228 struct hwrng *rng; in rng_dev_read()
319 struct hwrng *rng; in hwrng_attr_current_store()
343 struct hwrng *rng; in hwrng_attr_current_show()
360 struct hwrng *rng; in hwrng_attr_available_show()
406 struct hwrng *rng; in hwrng_fillfn()
438 int hwrng_register(struct hwrng *rng) in hwrng_register()
441 struct hwrng *old_rng, *tmp; in hwrng_register()
501 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
509 struct hwrng *tail; in hwrng_unregister()
511 tail = list_entry(rng_list.prev, struct hwrng, list); in hwrng_unregister()
530 hwrng_unregister(*(struct hwrng **)res); in devm_hwrng_release()
535 struct hwrng **r = res; in devm_hwrng_match()
543 int devm_hwrng_register(struct device *dev, struct hwrng *rng) in devm_hwrng_register()
545 struct hwrng **ptr; in devm_hwrng_register()
564 void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) in devm_hwrng_unregister()