hwrng 61 drivers/char/hw_random/amd-rng.c static int amd_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) hwrng 94 drivers/char/hw_random/amd-rng.c static int amd_rng_init(struct hwrng *rng) hwrng 110 drivers/char/hw_random/amd-rng.c static void amd_rng_cleanup(struct hwrng *rng) hwrng 120 drivers/char/hw_random/amd-rng.c static struct hwrng amd_rng = { hwrng 28 drivers/char/hw_random/atmel-rng.c struct hwrng rng; hwrng 31 drivers/char/hw_random/atmel-rng.c static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max, hwrng 31 drivers/char/hw_random/bcm2835-rng.c struct hwrng rng; hwrng 37 drivers/char/hw_random/bcm2835-rng.c static inline struct bcm2835_rng_priv *to_rng_priv(struct hwrng *rng) hwrng 62 drivers/char/hw_random/bcm2835-rng.c static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, hwrng 85 drivers/char/hw_random/bcm2835-rng.c static int bcm2835_rng_init(struct hwrng *rng) hwrng 111 drivers/char/hw_random/bcm2835-rng.c static void bcm2835_rng_cleanup(struct hwrng *rng) hwrng 19 drivers/char/hw_random/cavium-rng-vf.c struct hwrng ops; hwrng 24 drivers/char/hw_random/cavium-rng-vf.c static int cavium_rng_read(struct hwrng *rng, void *dat, size_t max, bool wait) hwrng 30 drivers/char/hw_random/core.c static struct hwrng *current_rng; hwrng 53 drivers/char/hw_random/core.c static int hwrng_init(struct hwrng *rng); hwrng 56 drivers/char/hw_random/core.c static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, hwrng 64 drivers/char/hw_random/core.c static void add_early_randomness(struct hwrng *rng) hwrng 78 drivers/char/hw_random/core.c struct hwrng *rng = container_of(kref, struct hwrng, ref); hwrng 86 drivers/char/hw_random/core.c static int set_current_rng(struct hwrng *rng) hwrng 114 drivers/char/hw_random/core.c static struct hwrng *get_current_rng(void) hwrng 116 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 129 drivers/char/hw_random/core.c static void put_rng(struct hwrng *rng) hwrng 141 drivers/char/hw_random/core.c static int hwrng_init(struct hwrng *rng) hwrng 182 drivers/char/hw_random/core.c static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, hwrng 207 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 303 drivers/char/hw_random/core.c struct hwrng *new_rng; hwrng 305 drivers/char/hw_random/core.c new_rng = list_entry(rng_list.next, struct hwrng, list); hwrng 323 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 351 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 368 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 425 drivers/char/hw_random/core.c struct hwrng *rng; hwrng 457 drivers/char/hw_random/core.c int hwrng_register(struct hwrng *rng) hwrng 460 drivers/char/hw_random/core.c struct hwrng *old_rng, *tmp; hwrng 479 drivers/char/hw_random/core.c tmp = list_entry(rng_list_ptr, struct hwrng, list); hwrng 517 drivers/char/hw_random/core.c void hwrng_unregister(struct hwrng *rng) hwrng 545 drivers/char/hw_random/core.c hwrng_unregister(*(struct hwrng **)res); hwrng 550 drivers/char/hw_random/core.c struct hwrng **r = res; hwrng 558 drivers/char/hw_random/core.c int devm_hwrng_register(struct device *dev, struct hwrng *rng) hwrng 560 drivers/char/hw_random/core.c struct hwrng **ptr; hwrng 579 drivers/char/hw_random/core.c void devm_hwrng_unregister(struct device *dev, struct hwrng *rng) hwrng 52 drivers/char/hw_random/exynos-trng.c struct hwrng rng; hwrng 55 drivers/char/hw_random/exynos-trng.c static int exynos_trng_do_read(struct hwrng *rng, void *data, size_t max, hwrng 76 drivers/char/hw_random/exynos-trng.c static int exynos_trng_init(struct hwrng *rng) hwrng 55 drivers/char/hw_random/geode-rng.c static int geode_rng_data_read(struct hwrng *rng, u32 *data) hwrng 64 drivers/char/hw_random/geode-rng.c static int geode_rng_data_present(struct hwrng *rng, int wait) hwrng 79 drivers/char/hw_random/geode-rng.c static struct hwrng geode_rng = { hwrng 31 drivers/char/hw_random/hisi-rng.c struct hwrng rng; hwrng 34 drivers/char/hw_random/hisi-rng.c static int hisi_rng_init(struct hwrng *rng) hwrng 57 drivers/char/hw_random/hisi-rng.c static void hisi_rng_cleanup(struct hwrng *rng) hwrng 64 drivers/char/hw_random/hisi-rng.c static int hisi_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) hwrng 53 drivers/char/hw_random/imx-rngc.c struct hwrng rng; hwrng 116 drivers/char/hw_random/imx-rngc.c static int imx_rngc_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 167 drivers/char/hw_random/imx-rngc.c static int imx_rngc_init(struct hwrng *rng) hwrng 167 drivers/char/hw_random/intel-rng.c static int intel_rng_data_present(struct hwrng *rng, int wait) hwrng 182 drivers/char/hw_random/intel-rng.c static int intel_rng_data_read(struct hwrng *rng, u32 *data) hwrng 191 drivers/char/hw_random/intel-rng.c static int intel_rng_init(struct hwrng *rng) hwrng 210 drivers/char/hw_random/intel-rng.c static void intel_rng_cleanup(struct hwrng *rng) hwrng 223 drivers/char/hw_random/intel-rng.c static struct hwrng intel_rng = { hwrng 51 drivers/char/hw_random/iproc-rng200.c struct hwrng rng; hwrng 94 drivers/char/hw_random/iproc-rng200.c static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, hwrng 155 drivers/char/hw_random/iproc-rng200.c static int iproc_rng200_init(struct hwrng *rng) hwrng 169 drivers/char/hw_random/iproc-rng200.c static void iproc_rng200_cleanup(struct hwrng *rng) hwrng 29 drivers/char/hw_random/ixp4xx-rng.c static int ixp4xx_rng_data_read(struct hwrng *rng, u32 *buffer) hwrng 38 drivers/char/hw_random/ixp4xx-rng.c static struct hwrng ixp4xx_rng_ops = { hwrng 84 drivers/char/hw_random/ks-sa-rng.c struct hwrng rng; hwrng 90 drivers/char/hw_random/ks-sa-rng.c static int ks_sa_rng_init(struct hwrng *rng) hwrng 126 drivers/char/hw_random/ks-sa-rng.c static void ks_sa_rng_cleanup(struct hwrng *rng) hwrng 137 drivers/char/hw_random/ks-sa-rng.c static int ks_sa_rng_data_read(struct hwrng *rng, u32 *data) hwrng 151 drivers/char/hw_random/ks-sa-rng.c static int ks_sa_rng_data_present(struct hwrng *rng, int wait) hwrng 184 drivers/char/hw_random/ks-sa-rng.c ks_sa_rng->rng = (struct hwrng) { hwrng 22 drivers/char/hw_random/meson-rng.c struct hwrng rng; hwrng 26 drivers/char/hw_random/meson-rng.c static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) hwrng 38 drivers/char/hw_random/mtk-rng.c struct hwrng rng; hwrng 41 drivers/char/hw_random/mtk-rng.c static int mtk_rng_init(struct hwrng *rng) hwrng 58 drivers/char/hw_random/mtk-rng.c static void mtk_rng_cleanup(struct hwrng *rng) hwrng 70 drivers/char/hw_random/mtk-rng.c static bool mtk_rng_wait_ready(struct hwrng *rng, bool wait) hwrng 83 drivers/char/hw_random/mtk-rng.c static int mtk_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) hwrng 56 drivers/char/hw_random/mxc-rnga.c struct hwrng rng; hwrng 61 drivers/char/hw_random/mxc-rnga.c static int mxc_rnga_data_present(struct hwrng *rng, int wait) hwrng 77 drivers/char/hw_random/mxc-rnga.c static int mxc_rnga_data_read(struct hwrng *rng, u32 * data) hwrng 100 drivers/char/hw_random/mxc-rnga.c static int mxc_rnga_init(struct hwrng *rng) hwrng 123 drivers/char/hw_random/mxc-rnga.c static void mxc_rnga_cleanup(struct hwrng *rng) hwrng 419 drivers/char/hw_random/n2-drv.c static int n2rng_data_read(struct hwrng *rng, u32 *data) hwrng 767 drivers/char/hw_random/n2-drv.c np->hwrng.name = DRV_MODULE_NAME; hwrng 768 drivers/char/hw_random/n2-drv.c np->hwrng.data_read = n2rng_data_read; hwrng 769 drivers/char/hw_random/n2-drv.c np->hwrng.priv = (unsigned long) np; hwrng 771 drivers/char/hw_random/n2-drv.c err = devm_hwrng_register(&op->dev, &np->hwrng); hwrng 112 drivers/char/hw_random/n2rng.h struct hwrng hwrng; hwrng 18 drivers/char/hw_random/nomadik-rng.c static int nmk_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 32 drivers/char/hw_random/nomadik-rng.c static struct hwrng nmk_rng = { hwrng 23 drivers/char/hw_random/octeon-rng.c struct hwrng ops; hwrng 28 drivers/char/hw_random/octeon-rng.c static int octeon_rng_init(struct hwrng *rng) hwrng 40 drivers/char/hw_random/octeon-rng.c static void octeon_rng_cleanup(struct hwrng *rng) hwrng 50 drivers/char/hw_random/octeon-rng.c static int octeon_rng_data_read(struct hwrng *rng, u32 *data) hwrng 64 drivers/char/hw_random/octeon-rng.c struct hwrng ops = { hwrng 158 drivers/char/hw_random/omap-rng.c struct hwrng rng; hwrng 175 drivers/char/hw_random/omap-rng.c static int omap_rng_do_read(struct hwrng *rng, void *data, size_t max, hwrng 205 drivers/char/hw_random/omap-rng.c static int omap_rng_init(struct hwrng *rng) hwrng 213 drivers/char/hw_random/omap-rng.c static void omap_rng_cleanup(struct hwrng *rng) hwrng 79 drivers/char/hw_random/omap3-rom-rng.c static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w) hwrng 89 drivers/char/hw_random/omap3-rom-rng.c static struct hwrng omap3_rom_rng_ops = { hwrng 67 drivers/char/hw_random/optee-rng.c struct hwrng optee_rng; hwrng 115 drivers/char/hw_random/optee-rng.c static int optee_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) hwrng 143 drivers/char/hw_random/optee-rng.c static int optee_rng_init(struct hwrng *rng) hwrng 160 drivers/char/hw_random/optee-rng.c static void optee_rng_cleanup(struct hwrng *rng) hwrng 34 drivers/char/hw_random/pasemi-rng.c static int pasemi_rng_data_present(struct hwrng *rng, int wait) hwrng 49 drivers/char/hw_random/pasemi-rng.c static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) hwrng 56 drivers/char/hw_random/pasemi-rng.c static int pasemi_rng_init(struct hwrng *rng) hwrng 68 drivers/char/hw_random/pasemi-rng.c static void pasemi_rng_cleanup(struct hwrng *rng) hwrng 78 drivers/char/hw_random/pasemi-rng.c static struct hwrng pasemi_rng = { hwrng 38 drivers/char/hw_random/pic32-rng.c struct hwrng rng; hwrng 49 drivers/char/hw_random/pic32-rng.c static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max, hwrng 15 drivers/char/hw_random/powernv-rng.c static int powernv_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 31 drivers/char/hw_random/powernv-rng.c static struct hwrng powernv_hwrng = { hwrng 16 drivers/char/hw_random/pseries-rng.c static int pseries_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 46 drivers/char/hw_random/pseries-rng.c static struct hwrng pseries_rng = { hwrng 171 drivers/char/hw_random/s390-trng.c static int trng_hwrng_data_read(struct hwrng *rng, u32 *data) hwrng 182 drivers/char/hw_random/s390-trng.c static int trng_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 198 drivers/char/hw_random/s390-trng.c static struct hwrng trng_hwrng_dev = { hwrng 45 drivers/char/hw_random/st-rng.c struct hwrng ops; hwrng 48 drivers/char/hw_random/st-rng.c static int st_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 31 drivers/char/hw_random/stm32-rng.c struct hwrng rng; hwrng 38 drivers/char/hw_random/stm32-rng.c static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 82 drivers/char/hw_random/stm32-rng.c static int stm32_rng_init(struct hwrng *rng) hwrng 104 drivers/char/hw_random/stm32-rng.c static void stm32_rng_cleanup(struct hwrng *rng) hwrng 41 drivers/char/hw_random/timeriomem-rng.c struct hwrng rng_ops; hwrng 44 drivers/char/hw_random/timeriomem-rng.c static int timeriomem_rng_read(struct hwrng *hwrng, void *data, hwrng 48 drivers/char/hw_random/timeriomem-rng.c container_of(hwrng, struct timeriomem_rng_private, rng_ops); hwrng 29 drivers/char/hw_random/tx4939-rng.c struct hwrng rng; hwrng 65 drivers/char/hw_random/tx4939-rng.c static int tx4939_rng_data_present(struct hwrng *rng, int wait) hwrng 98 drivers/char/hw_random/tx4939-rng.c static int tx4939_rng_data_read(struct hwrng *rng, u32 *buffer) hwrng 87 drivers/char/hw_random/via-rng.c static int via_rng_data_present(struct hwrng *rng, int wait) hwrng 120 drivers/char/hw_random/via-rng.c static int via_rng_data_read(struct hwrng *rng, u32 *data) hwrng 129 drivers/char/hw_random/via-rng.c static int via_rng_init(struct hwrng *rng) hwrng 187 drivers/char/hw_random/via-rng.c static struct hwrng via_rng = { hwrng 18 drivers/char/hw_random/virtio-rng.c struct hwrng hwrng; hwrng 53 drivers/char/hw_random/virtio-rng.c static int virtio_read(struct hwrng *rng, void *buf, size_t size, bool wait) hwrng 79 drivers/char/hw_random/virtio-rng.c static void virtio_cleanup(struct hwrng *rng) hwrng 104 drivers/char/hw_random/virtio-rng.c vi->hwrng = (struct hwrng) { hwrng 139 drivers/char/hw_random/virtio-rng.c hwrng_unregister(&vi->hwrng); hwrng 160 drivers/char/hw_random/virtio-rng.c err = hwrng_register(&vi->hwrng); hwrng 186 drivers/char/hw_random/virtio-rng.c err = hwrng_register(&vi->hwrng); hwrng 211 drivers/char/hw_random/xgene-rng.c static int xgene_rng_data_present(struct hwrng *rng, int wait) hwrng 226 drivers/char/hw_random/xgene-rng.c static int xgene_rng_data_read(struct hwrng *rng, u32 *data) hwrng 275 drivers/char/hw_random/xgene-rng.c static int xgene_rng_init(struct hwrng *rng) hwrng 307 drivers/char/hw_random/xgene-rng.c static struct hwrng xgene_rng_func = { hwrng 535 drivers/char/tpm/tpm-chip.c static int tpm_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 537 drivers/char/tpm/tpm-chip.c struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); hwrng 549 drivers/char/tpm/tpm-chip.c chip->hwrng.name = chip->hwrng_name; hwrng 550 drivers/char/tpm/tpm-chip.c chip->hwrng.read = tpm_hwrng_read; hwrng 551 drivers/char/tpm/tpm-chip.c return hwrng_register(&chip->hwrng); hwrng 621 drivers/char/tpm/tpm-chip.c hwrng_unregister(&chip->hwrng); hwrng 646 drivers/char/tpm/tpm-chip.c hwrng_unregister(&chip->hwrng); hwrng 876 drivers/char/tpm/tpm_tis_core.c chip->hwrng.quality = priv->rng_quality; hwrng 109 drivers/crypto/amcc/crypto4xx_core.h struct hwrng *trng; hwrng 28 drivers/crypto/amcc/crypto4xx_trng.c static int ppc4xx_trng_data_present(struct hwrng *rng, int wait) hwrng 45 drivers/crypto/amcc/crypto4xx_trng.c static int ppc4xx_trng_data_read(struct hwrng *rng, u32 *data) hwrng 75 drivers/crypto/amcc/crypto4xx_trng.c struct hwrng *rng = NULL; hwrng 142 drivers/crypto/atmel-i2c.h struct hwrng hwrng; hwrng 25 drivers/crypto/atmel-sha204a.c struct hwrng *rng = areq; hwrng 36 drivers/crypto/atmel-sha204a.c static int atmel_sha204a_rng_read_nonblocking(struct hwrng *rng, void *data, hwrng 42 drivers/crypto/atmel-sha204a.c i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); hwrng 70 drivers/crypto/atmel-sha204a.c static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max, hwrng 80 drivers/crypto/atmel-sha204a.c i2c_priv = container_of(rng, struct atmel_i2c_client_priv, hwrng); hwrng 106 drivers/crypto/atmel-sha204a.c memset(&i2c_priv->hwrng, 0, sizeof(i2c_priv->hwrng)); hwrng 108 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.name = dev_name(&client->dev); hwrng 109 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.read = atmel_sha204a_rng_read; hwrng 110 drivers/crypto/atmel-sha204a.c i2c_priv->hwrng.quality = 1024; hwrng 112 drivers/crypto/atmel-sha204a.c ret = devm_hwrng_register(&client->dev, &i2c_priv->hwrng); hwrng 128 drivers/crypto/atmel-sha204a.c if (i2c_priv->hwrng.priv) hwrng 129 drivers/crypto/atmel-sha204a.c kfree((void *)i2c_priv->hwrng.priv); hwrng 144 drivers/crypto/caam/caamrng.c static int caam_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 247 drivers/crypto/caam/caamrng.c static void caam_cleanup(struct hwrng *rng) hwrng 297 drivers/crypto/caam/caamrng.c static struct hwrng caam_rng = { hwrng 188 drivers/crypto/ccp/ccp-dev.c ccp->hwrng.name = ccp->rngname; hwrng 189 drivers/crypto/ccp/ccp-dev.c ccp->hwrng.read = ccp_trng_read; hwrng 190 drivers/crypto/ccp/ccp-dev.c ret = hwrng_register(&ccp->hwrng); hwrng 199 drivers/crypto/ccp/ccp-dev.c if (ccp->hwrng.name) hwrng 200 drivers/crypto/ccp/ccp-dev.c hwrng_unregister(&ccp->hwrng); hwrng 506 drivers/crypto/ccp/ccp-dev.c int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 508 drivers/crypto/ccp/ccp-dev.c struct ccp_device *ccp = container_of(rng, struct ccp_device, hwrng); hwrng 386 drivers/crypto/ccp/ccp-dev.h struct hwrng hwrng; hwrng 638 drivers/crypto/ccp/ccp-dev.h int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait); hwrng 435 drivers/crypto/hifn_795x.c struct hwrng rng; hwrng 749 drivers/crypto/hifn_795x.c static int hifn_rng_data_present(struct hwrng *rng, int wait) hwrng 764 drivers/crypto/hifn_795x.c static int hifn_rng_data_read(struct hwrng *rng, u32 *data) hwrng 752 drivers/crypto/talitos.c static int talitos_rng_data_present(struct hwrng *rng, int wait) hwrng 770 drivers/crypto/talitos.c static int talitos_rng_data_read(struct hwrng *rng, u32 *data) hwrng 782 drivers/crypto/talitos.c static int talitos_rng_init(struct hwrng *rng) hwrng 154 drivers/crypto/talitos.h struct hwrng rng; hwrng 53 drivers/firmware/turris-mox-rwtm.c struct hwrng hwrng; hwrng 241 drivers/firmware/turris-mox-rwtm.c static int mox_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait) hwrng 332 drivers/firmware/turris-mox-rwtm.c rwtm->hwrng.name = DRIVER_NAME "_hwrng"; hwrng 333 drivers/firmware/turris-mox-rwtm.c rwtm->hwrng.read = mox_hwrng_read; hwrng 334 drivers/firmware/turris-mox-rwtm.c rwtm->hwrng.priv = (unsigned long) rwtm; hwrng 335 drivers/firmware/turris-mox-rwtm.c rwtm->hwrng.quality = 1024; hwrng 337 drivers/firmware/turris-mox-rwtm.c ret = devm_hwrng_register(dev, &rwtm->hwrng); hwrng 63 drivers/hid/hid-u2fzero.c struct hwrng hwrng; /* Embedded struct for hwrng */ hwrng 176 drivers/hid/hid-u2fzero.c static int u2fzero_rng_read(struct hwrng *rng, void *data, hwrng 180 drivers/hid/hid-u2fzero.c struct u2fzero_device, hwrng); hwrng 237 drivers/hid/hid-u2fzero.c dev->hwrng.name = dev->rng_name; hwrng 238 drivers/hid/hid-u2fzero.c dev->hwrng.read = u2fzero_rng_read; hwrng 239 drivers/hid/hid-u2fzero.c dev->hwrng.quality = 1; hwrng 241 drivers/hid/hid-u2fzero.c return devm_hwrng_register(&dev->hdev->dev, &dev->hwrng); hwrng 457 drivers/net/wireless/ath/carl9170/carl9170.h struct hwrng rng; hwrng 1584 drivers/net/wireless/ath/carl9170/main.c static int carl9170_rng_read(struct hwrng *rng, u32 *data) hwrng 933 drivers/net/wireless/broadcom/b43/b43.h struct hwrng rng; hwrng 3532 drivers/net/wireless/broadcom/b43/main.c static int b43_rng_read(struct hwrng *rng, u32 *data) hwrng 608 drivers/net/wireless/broadcom/b43legacy/b43legacy.h struct hwrng rng; hwrng 2398 drivers/net/wireless/broadcom/b43legacy/main.c static int b43legacy_rng_read(struct hwrng *rng, u32 *data) hwrng 1694 drivers/s390/crypto/zcrypt_api.c static int zcrypt_rng_data_read(struct hwrng *rng, u32 *data) hwrng 1715 drivers/s390/crypto/zcrypt_api.c static struct hwrng zcrypt_rng_dev = { hwrng 27 drivers/usb/misc/chaoskey.c static int chaoskey_rng_read(struct hwrng *rng, void *data, hwrng 87 drivers/usb/misc/chaoskey.c struct hwrng hwrng; /* Embedded struct for hwrng */ hwrng 201 drivers/usb/misc/chaoskey.c dev->hwrng.name = dev->name ? dev->name : chaoskey_driver.name; hwrng 202 drivers/usb/misc/chaoskey.c dev->hwrng.read = chaoskey_rng_read; hwrng 203 drivers/usb/misc/chaoskey.c dev->hwrng.quality = 1024; hwrng 205 drivers/usb/misc/chaoskey.c dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0); hwrng 232 drivers/usb/misc/chaoskey.c hwrng_unregister(&dev->hwrng); hwrng 479 drivers/usb/misc/chaoskey.c static int chaoskey_rng_read(struct hwrng *rng, void *data, hwrng 482 drivers/usb/misc/chaoskey.c struct chaoskey *dev = container_of(rng, struct chaoskey, hwrng); hwrng 41 include/linux/hw_random.h int (*init)(struct hwrng *rng); hwrng 42 include/linux/hw_random.h void (*cleanup)(struct hwrng *rng); hwrng 43 include/linux/hw_random.h int (*data_present)(struct hwrng *rng, int wait); hwrng 44 include/linux/hw_random.h int (*data_read)(struct hwrng *rng, u32 *data); hwrng 45 include/linux/hw_random.h int (*read)(struct hwrng *rng, void *data, size_t max, bool wait); hwrng 58 include/linux/hw_random.h extern int hwrng_register(struct hwrng *rng); hwrng 59 include/linux/hw_random.h extern int devm_hwrng_register(struct device *dev, struct hwrng *rng); hwrng 61 include/linux/hw_random.h extern void hwrng_unregister(struct hwrng *rng); hwrng 62 include/linux/hw_random.h extern void devm_hwrng_unregister(struct device *dve, struct hwrng *rng); hwrng 131 include/linux/tpm.h struct hwrng hwrng;