Home
last modified time | relevance | path

Searched defs:rng (Results 1 – 25 of 51) sorted by relevance

123

/drivers/char/hw_random/
Dcore.c85 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() local
107 static int set_current_rng(struct hwrng *rng) in set_current_rng()
137 struct hwrng *rng; in get_current_rng() local
150 static void put_rng(struct hwrng *rng) in put_rng()
162 static int hwrng_init(struct hwrng *rng) in hwrng_init()
203 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
228 struct hwrng *rng; in rng_dev_read() local
323 struct hwrng *rng; in hwrng_attr_current_store() local
347 struct hwrng *rng; in hwrng_attr_current_show() local
[all …]
Dbcm63xx-rng.c28 struct hwrng rng; member
33 #define to_rng_priv(rng) container_of(rng, struct bcm63xx_rng_priv, rng) argument
35 static int bcm63xx_rng_init(struct hwrng *rng) in bcm63xx_rng_init()
52 static void bcm63xx_rng_cleanup(struct hwrng *rng) in bcm63xx_rng_cleanup()
64 static int bcm63xx_rng_data_present(struct hwrng *rng, int wait) in bcm63xx_rng_data_present()
71 static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data) in bcm63xx_rng_data_read()
Dhisi-rng.c34 struct hwrng rng; member
37 static int hisi_rng_init(struct hwrng *rng) in hisi_rng_init()
60 static void hisi_rng_cleanup(struct hwrng *rng) in hisi_rng_cleanup()
67 static int hisi_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in hisi_rng_read()
78 struct hisi_rng *rng; in hisi_rng_probe() local
Docteon-rng.c28 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()
62 struct octeon_rng *rng; in octeon_rng_probe() local
Diproc-rng200.c51 struct hwrng rng; member
55 #define to_rng_priv(rng) container_of(rng, struct iproc_rng200_dev, rng) argument
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()
Dmxc-rnga.c64 struct hwrng rng; member
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()
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()
Dexynos-rng.c41 struct hwrng rng; member
46 static u32 exynos_rng_readl(struct exynos_rng *rng, u32 offset) in exynos_rng_readl()
51 static void exynos_rng_writel(struct exynos_rng *rng, u32 val, u32 offset) in exynos_rng_writel()
72 static int exynos_init(struct hwrng *rng) in exynos_init()
86 static int exynos_read(struct hwrng *rng, void *buf, in exynos_read()
Dstm32-rng.c46 struct hwrng rng; member
51 static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in stm32_rng_read()
92 static int stm32_rng_init(struct hwrng *rng) in stm32_rng_init()
110 static void stm32_rng_cleanup(struct hwrng *rng) in stm32_rng_cleanup()
Dcavium-rng-vf.c24 static int cavium_rng_read(struct hwrng *rng, void *dat, size_t max, bool wait) in cavium_rng_read()
46 struct cavium_rng *rng; in cavium_rng_probe_vf() local
78 struct cavium_rng *rng; in cavium_rng_remove_vf() local
Damd-rng.c61 static int amd_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in amd_rng_read()
94 static int amd_rng_init(struct hwrng *rng) in amd_rng_init()
110 static void amd_rng_cleanup(struct hwrng *rng) in amd_rng_cleanup()
Dpic32-rng.c46 struct hwrng rng; member
57 static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max, in pic32_rng_read()
127 struct pic32_rng *rng = platform_get_drvdata(pdev); in pic32_rng_remove() local
Dtx4939-rng.c29 struct hwrng rng; member
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()
Dtimeriomem-rng.c48 #define to_rng_priv(rng) \ argument
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()
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()
Dmsm-rng.c48 struct msm_rng *rng = to_msm_rng(hwrng); in msm_rng_enable() local
83 struct msm_rng *rng = to_msm_rng(hwrng); in msm_rng_read() local
137 struct msm_rng *rng; in msm_rng_probe() local
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()
Dcavium-rng.c29 struct cavium_rng_pf *rng; in cavium_rng_probe() local
67 struct cavium_rng_pf *rng; in cavium_rng_remove() local
Dmeson-rng.c71 struct hwrng rng; member
74 static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in meson_rng_read()
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()
Datmel-rng.c27 struct hwrng rng; member
30 static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max, in atmel_trng_read()
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()
Dvirtio-rng.c66 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()
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()
/drivers/crypto/amcc/
Dcrypto4xx_trng.c31 static int ppc4xx_trng_data_present(struct hwrng *rng, int wait) in ppc4xx_trng_data_present()
48 static int ppc4xx_trng_data_read(struct hwrng *rng, u32 *data) in ppc4xx_trng_data_read()
78 struct hwrng *rng = NULL; in ppc4xx_trng_probe() local

123