Lines Matching refs:hwrng
30 static struct hwrng *current_rng;
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()
78 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng()
86 static int set_current_rng(struct hwrng *rng) in set_current_rng()
114 static struct hwrng *get_current_rng(void) in get_current_rng()
116 struct hwrng *rng; in get_current_rng()
129 static void put_rng(struct hwrng *rng) in put_rng()
141 static int hwrng_init(struct hwrng *rng) in hwrng_init()
182 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
207 struct hwrng *rng; in rng_dev_read()
303 struct hwrng *new_rng; in enable_best_rng()
305 new_rng = list_entry(rng_list.next, struct hwrng, list); in enable_best_rng()
323 struct hwrng *rng; in hwrng_attr_current_store()
351 struct hwrng *rng; in hwrng_attr_current_show()
368 struct hwrng *rng; in hwrng_attr_available_show()
425 struct hwrng *rng; in hwrng_fillfn()
457 int hwrng_register(struct hwrng *rng) in hwrng_register()
460 struct hwrng *old_rng, *tmp; in hwrng_register()
479 tmp = list_entry(rng_list_ptr, struct hwrng, list); in hwrng_register()
517 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
545 hwrng_unregister(*(struct hwrng **)res); in devm_hwrng_release()
550 struct hwrng **r = res; in devm_hwrng_match()
558 int devm_hwrng_register(struct device *dev, struct hwrng *rng) in devm_hwrng_register()
560 struct hwrng **ptr; in devm_hwrng_register()
579 void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) in devm_hwrng_unregister()