Lines Matching full:hwrng
27 static int chaoskey_rng_read(struct hwrng *rng, void *data,
89 struct hwrng hwrng; /* Embedded struct for hwrng */ member
90 int hwrng_registered; /* registered with hwrng API */
172 * device needs a unique name for the hwrng code in chaoskey_probe()
203 dev->hwrng.name = dev->name ? dev->name : chaoskey_driver.name; in chaoskey_probe()
204 dev->hwrng.read = chaoskey_rng_read; in chaoskey_probe()
206 dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0); in chaoskey_probe()
208 usb_err(interface, "Unable to register with hwrng"); in chaoskey_probe()
233 hwrng_unregister(&dev->hwrng); in chaoskey_disconnect()
439 /* Grab the rng_lock briefly to ensure that the hwrng interface in chaoskey_read()
491 static int chaoskey_rng_read(struct hwrng *rng, void *data, in chaoskey_rng_read()
494 struct chaoskey *dev = container_of(rng, struct chaoskey, hwrng); in chaoskey_rng_read()