Lines Matching defs:hwrng
27 static int chaoskey_rng_read(struct hwrng *rng, void *data,
87 struct hwrng hwrng; /* Embedded struct for hwrng */
88 int hwrng_registered; /* registered with hwrng API */
170 * device needs a unique name for the hwrng code
201 dev->hwrng.name = dev->name ? dev->name : chaoskey_driver.name;
202 dev->hwrng.read = chaoskey_rng_read;
203 dev->hwrng.quality = 1024;
205 dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0);
207 usb_err(interface, "Unable to register with hwrng");
232 hwrng_unregister(&dev->hwrng);
427 /* Grab the rng_lock briefly to ensure that the hwrng interface
479 static int chaoskey_rng_read(struct hwrng *rng, void *data,
482 struct chaoskey *dev = container_of(rng, struct chaoskey, hwrng);