Home
last modified time | relevance | path

Searched refs:hwrng (Results 1 – 50 of 50) sorted by relevance

/linux-4.1.27/drivers/char/hw_random/
Dmsm-rng.c41 struct hwrng hwrng; member
44 #define to_msm_rng(p) container_of(p, struct msm_rng, hwrng)
46 static int msm_rng_enable(struct hwrng *hwrng, int enable) in msm_rng_enable() argument
48 struct msm_rng *rng = to_msm_rng(hwrng); in msm_rng_enable()
81 static int msm_rng_read(struct hwrng *hwrng, void *data, size_t max, bool wait) in msm_rng_read() argument
83 struct msm_rng *rng = to_msm_rng(hwrng); in msm_rng_read()
124 static int msm_rng_init(struct hwrng *hwrng) in msm_rng_init() argument
126 return msm_rng_enable(hwrng, 1); in msm_rng_init()
129 static void msm_rng_cleanup(struct hwrng *hwrng) in msm_rng_cleanup() argument
131 msm_rng_enable(hwrng, 0); in msm_rng_cleanup()
[all …]
Dcore.c54 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()
[all …]
Dvirtio-rng.c31 struct hwrng hwrng; member
66 static int virtio_read(struct hwrng *rng, void *buf, size_t size, bool wait) in virtio_read()
92 static void virtio_cleanup(struct hwrng *rng) in virtio_cleanup()
117 vi->hwrng = (struct hwrng) { in probe_common()
152 hwrng_unregister(&vi->hwrng); in remove_common()
173 err = hwrng_register(&vi->hwrng); in virtrng_scan()
Docteon-rng.c23 struct hwrng ops;
28 static int octeon_rng_init(struct hwrng *rng) in octeon_rng_init()
40 static void octeon_rng_cleanup(struct hwrng *rng) in octeon_rng_cleanup()
50 static int octeon_rng_data_read(struct hwrng *rng, u32 *data) in octeon_rng_data_read()
64 struct hwrng ops = { in octeon_rng_probe()
110 struct hwrng *rng = platform_get_drvdata(pdev); in octeon_rng_remove()
Dbcm63xx-rng.c27 struct hwrng rng;
34 static int bcm63xx_rng_init(struct hwrng *rng) in bcm63xx_rng_init()
51 static void bcm63xx_rng_cleanup(struct hwrng *rng) in bcm63xx_rng_cleanup()
63 static int bcm63xx_rng_data_present(struct hwrng *rng, int wait) in bcm63xx_rng_data_present()
70 static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data) in bcm63xx_rng_data_read()
85 struct hwrng *rng; in bcm63xx_rng_probe()
Damd-rng.c56 static int amd_rng_data_present(struct hwrng *rng, int wait) in amd_rng_data_present()
70 static int amd_rng_data_read(struct hwrng *rng, u32 *data) in amd_rng_data_read()
79 static int amd_rng_init(struct hwrng *rng) in amd_rng_init()
94 static void amd_rng_cleanup(struct hwrng *rng) in amd_rng_cleanup()
104 static struct hwrng amd_rng = {
Dpasemi-rng.c46 static int pasemi_rng_data_present(struct hwrng *rng, int wait) in pasemi_rng_data_present()
61 static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) in pasemi_rng_data_read()
68 static int pasemi_rng_init(struct hwrng *rng) in pasemi_rng_init()
80 static void pasemi_rng_cleanup(struct hwrng *rng) in pasemi_rng_cleanup()
90 static struct hwrng pasemi_rng = {
Dvia-rng.c91 static int via_rng_data_present(struct hwrng *rng, int wait) in via_rng_data_present()
124 static int via_rng_data_read(struct hwrng *rng, u32 *data) in via_rng_data_read()
133 static int via_rng_init(struct hwrng *rng) in via_rng_init()
191 static struct hwrng via_rng = {
Dmxc-rnga.c64 struct hwrng rng;
69 static int mxc_rnga_data_present(struct hwrng *rng, int wait) in mxc_rnga_data_present()
85 static int mxc_rnga_data_read(struct hwrng *rng, u32 * data) in mxc_rnga_data_read()
108 static int mxc_rnga_init(struct hwrng *rng) in mxc_rnga_init()
131 static void mxc_rnga_cleanup(struct hwrng *rng) in mxc_rnga_cleanup()
Dgeode-rng.c55 static int geode_rng_data_read(struct hwrng *rng, u32 *data) in geode_rng_data_read()
64 static int geode_rng_data_present(struct hwrng *rng, int wait) in geode_rng_data_present()
79 static struct hwrng geode_rng = {
Domap3-rom-rng.c74 static int omap3_rom_rng_data_present(struct hwrng *rng, int wait) in omap3_rom_rng_data_present()
79 static int omap3_rom_rng_data_read(struct hwrng *rng, u32 *data) in omap3_rom_rng_data_read()
89 static struct hwrng omap3_rom_rng_ops = {
Dtpm-rng.c26 static int tpm_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in tpm_rng_read()
31 static struct hwrng tpm_rng = {
Dppc4xx-rng.c31 static int ppc4xx_rng_data_present(struct hwrng *rng, int wait) in ppc4xx_rng_data_present()
47 static int ppc4xx_rng_data_read(struct hwrng *rng, u32 *data) in ppc4xx_rng_data_read()
88 static struct hwrng ppc4xx_rng = {
Dixp4xx-rng.c29 static int ixp4xx_rng_data_read(struct hwrng *rng, u32 *buffer) in ixp4xx_rng_data_read()
38 static struct hwrng ixp4xx_rng_ops = {
Diproc-rng200.c51 struct hwrng rng;
94 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, in iproc_rng200_read()
155 static int iproc_rng200_init(struct hwrng *rng) in iproc_rng200_init()
169 static void iproc_rng200_cleanup(struct hwrng *rng) in iproc_rng200_cleanup()
Dintel-rng.c167 static int intel_rng_data_present(struct hwrng *rng, int wait) in intel_rng_data_present()
182 static int intel_rng_data_read(struct hwrng *rng, u32 *data) in intel_rng_data_read()
191 static int intel_rng_init(struct hwrng *rng) in intel_rng_init()
210 static void intel_rng_cleanup(struct hwrng *rng) in intel_rng_cleanup()
223 static struct hwrng intel_rng = {
Dpowernv-rng.c18 static int powernv_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in powernv_rng_read()
34 static struct hwrng powernv_hwrng = {
Dtx4939-rng.c29 struct hwrng rng;
65 static int tx4939_rng_data_present(struct hwrng *rng, int wait) in tx4939_rng_data_present()
98 static int tx4939_rng_data_read(struct hwrng *rng, u32 *buffer) in tx4939_rng_data_read()
Dpseries-rng.c28 static int pseries_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in pseries_rng_read()
59 static struct hwrng pseries_rng = {
Dexynos-rng.c41 struct hwrng rng;
56 static int exynos_init(struct hwrng *rng) in exynos_init()
78 static int exynos_read(struct hwrng *rng, void *buf, in exynos_read()
Dtimeriomem-rng.c45 struct hwrng timeriomem_rng_ops;
54 static int timeriomem_rng_data_present(struct hwrng *rng, int wait) in timeriomem_rng_data_present()
66 static int timeriomem_rng_data_read(struct hwrng *rng, u32 *data) in timeriomem_rng_data_read()
Dn2rng.h80 struct hwrng hwrng; member
Dbcm2835-rng.c29 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read()
44 static struct hwrng bcm2835_rng_ops = {
Dnomadik-rng.c22 static int nmk_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in nmk_rng_read()
36 static struct hwrng nmk_rng = {
Domap-rng.c143 static int omap_rng_data_present(struct hwrng *rng, int wait) in omap_rng_data_present()
164 static int omap_rng_data_read(struct hwrng *rng, u32 *data) in omap_rng_data_read()
180 static int omap_rng_init(struct hwrng *rng) in omap_rng_init()
188 static void omap_rng_cleanup(struct hwrng *rng) in omap_rng_cleanup()
196 static struct hwrng omap_rng_ops = {
Dn2-drv.c387 static int n2rng_data_read(struct hwrng *rng, u32 *data) in n2rng_data_read()
695 np->hwrng.name = "n2rng"; in n2rng_probe()
696 np->hwrng.data_read = n2rng_data_read; in n2rng_probe()
697 np->hwrng.priv = (unsigned long) np; in n2rng_probe()
699 err = hwrng_register(&np->hwrng); in n2rng_probe()
724 hwrng_unregister(&np->hwrng); in n2rng_remove()
Datmel-rng.c27 struct hwrng rng;
30 static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max, in atmel_trng_read()
Dxgene-rng.c226 static int xgene_rng_data_present(struct hwrng *rng, int wait) in xgene_rng_data_present()
241 static int xgene_rng_data_read(struct hwrng *rng, u32 *data) in xgene_rng_data_read()
290 static int xgene_rng_init(struct hwrng *rng) in xgene_rng_init()
322 static struct hwrng xgene_rng_func = {
DKconfig373 /dev/hwrng.
377 /dev/hwrng and injects the entropy into /dev/random.
/linux-4.1.27/include/linux/
Dhw_random.h37 struct hwrng { struct
39 int (*init)(struct hwrng *rng); argument
40 void (*cleanup)(struct hwrng *rng); argument
41 int (*data_present)(struct hwrng *rng, int wait); argument
42 int (*data_read)(struct hwrng *rng, u32 *data); argument
43 int (*read)(struct hwrng *rng, void *data, size_t max, bool wait); argument
56 extern int hwrng_register(struct hwrng *rng); argument
57 extern int devm_hwrng_register(struct device *dev, struct hwrng *rng);
59 extern void hwrng_unregister(struct hwrng *rng);
60 extern void devm_hwrng_unregister(struct device *dve, struct hwrng *rng);
/linux-4.1.27/drivers/usb/misc/
Dchaoskey.c35 static int chaoskey_rng_read(struct hwrng *rng, void *data,
88 struct hwrng hwrng; /* Embedded struct for hwrng */ member
194 dev->hwrng.name = dev->name ? dev->name : chaoskey_driver.name; in chaoskey_probe()
195 dev->hwrng.read = chaoskey_rng_read; in chaoskey_probe()
208 dev->hwrng.quality = 1024 + 1023; in chaoskey_probe()
210 dev->hwrng_registered = (hwrng_register(&dev->hwrng) == 0); in chaoskey_probe()
232 hwrng_unregister(&dev->hwrng); in chaoskey_disconnect()
441 static int chaoskey_rng_read(struct hwrng *rng, void *data, in chaoskey_rng_read()
444 struct chaoskey *dev = container_of(rng, struct chaoskey, hwrng); in chaoskey_rng_read()
/linux-4.1.27/drivers/crypto/ccp/
Dccp-dev.c260 static int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait) in ccp_trng_read()
262 struct ccp_device *ccp = container_of(rng, struct ccp_device, hwrng); in ccp_trng_read()
432 ccp->hwrng.name = "ccp-rng"; in ccp_init()
433 ccp->hwrng.read = ccp_trng_read; in ccp_init()
434 ret = hwrng_register(&ccp->hwrng); in ccp_init()
477 hwrng_unregister(&ccp->hwrng); in ccp_destroy()
Dccp-dev.h229 struct hwrng hwrng; member
/linux-4.1.27/drivers/crypto/caam/
Dcaamrng.c135 static int caam_read(struct hwrng *rng, void *data, size_t max, bool wait) in caam_read()
241 static void caam_cleanup(struct hwrng *rng) in caam_cleanup()
295 static struct hwrng caam_rng = {
DKconfig103 tristate "Register caam device for hwrng API"
/linux-4.1.27/Documentation/devicetree/bindings/hwrng/
Dtimeriomem_rng.txt12 hwrng@44 {
/linux-4.1.27/drivers/crypto/
Dtalitos.h133 struct hwrng rng;
Dhifn_795x.c460 struct hwrng rng;
795 static int hifn_rng_data_present(struct hwrng *rng, int wait) in hifn_rng_data_present()
810 static int hifn_rng_data_read(struct hwrng *rng, u32 *data) in hifn_rng_data_read()
Dtalitos.c562 static int talitos_rng_data_present(struct hwrng *rng, int wait) in talitos_rng_data_present()
580 static int talitos_rng_data_read(struct hwrng *rng, u32 *data) in talitos_rng_data_read()
592 static int talitos_rng_init(struct hwrng *rng) in talitos_rng_init()
/linux-4.1.27/tools/lguest/
Dlguest.txt118 /dev/hwrng in the guest that will read from the host's /dev/random.
/linux-4.1.27/drivers/net/wireless/b43legacy/
Db43legacy.h607 struct hwrng rng;
Dmain.c2431 static int b43legacy_rng_read(struct hwrng *rng, u32 *data) in b43legacy_rng_read()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dcarl9170.h457 struct hwrng rng;
Dmain.c1588 static int carl9170_rng_read(struct hwrng *rng, u32 *data) in carl9170_rng_read()
/linux-4.1.27/drivers/s390/crypto/
Dzcrypt_api.c1352 static int zcrypt_rng_data_read(struct hwrng *rng, u32 *data) in zcrypt_rng_data_read()
1373 static struct hwrng zcrypt_rng_dev = {
/linux-4.1.27/drivers/net/wireless/b43/
Db43.h932 struct hwrng rng;
Dmain.c3552 static int b43_rng_read(struct hwrng *rng, u32 *data) in b43_rng_read()
/linux-4.1.27/arch/powerpc/boot/dts/
Dglacier.dts140 HWRNG: hwrng@110000 {
Dcanyonlands.dts146 HWRNG: hwrng@110000 {
/linux-4.1.27/Documentation/
Ddevices.txt401 183 = /dev/hwrng Generic random number generator