Home
last modified time | relevance | path

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

12

/drivers/char/hw_random/
Dcore.c52 static struct hwrng *current_rng;
63 static inline int hwrng_init(struct hwrng *rng) in hwrng_init()
70 static inline void hwrng_cleanup(struct hwrng *rng) in hwrng_cleanup()
86 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
193 struct hwrng *rng; in hwrng_attr_current_store()
244 struct hwrng *rng; in hwrng_attr_available_show()
303 int hwrng_register(struct hwrng *rng) in hwrng_register()
307 struct hwrng *old_rng, *tmp; in hwrng_register()
358 void hwrng_unregister(struct hwrng *rng) in hwrng_unregister()
370 current_rng = list_entry(rng_list.prev, struct hwrng, list); in hwrng_unregister()
Docteon-rng.c24 struct hwrng ops;
29 static int octeon_rng_init(struct hwrng *rng) in octeon_rng_init()
41 static void octeon_rng_cleanup(struct hwrng *rng) in octeon_rng_cleanup()
51 static int octeon_rng_data_read(struct hwrng *rng, u32 *data) in octeon_rng_data_read()
65 struct hwrng ops = { in octeon_rng_probe()
111 struct hwrng *rng = dev_get_drvdata(&pdev->dev); in octeon_rng_remove()
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 = {
Dbcm63xx-rng.c26 static int bcm63xx_rng_init(struct hwrng *rng) in bcm63xx_rng_init()
38 static void bcm63xx_rng_cleanup(struct hwrng *rng) in bcm63xx_rng_cleanup()
48 static int bcm63xx_rng_data_present(struct hwrng *rng, int wait) in bcm63xx_rng_data_present()
55 static int bcm63xx_rng_data_read(struct hwrng *rng, u32 *data) in bcm63xx_rng_data_read()
70 struct hwrng *rng; in bcm63xx_rng_probe()
150 struct hwrng *rng = platform_get_drvdata(pdev); in bcm63xx_rng_remove()
Dpasemi-rng.c45 static int pasemi_rng_data_present(struct hwrng *rng, int wait) in pasemi_rng_data_present()
60 static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) in pasemi_rng_data_read()
67 static int pasemi_rng_init(struct hwrng *rng) in pasemi_rng_init()
79 static void pasemi_rng_cleanup(struct hwrng *rng) in pasemi_rng_cleanup()
89 static struct hwrng pasemi_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()
Dvia-rng.c90 static int via_rng_data_present(struct hwrng *rng, int wait) in via_rng_data_present()
123 static int via_rng_data_read(struct hwrng *rng, u32 *data) in via_rng_data_read()
132 static int via_rng_init(struct hwrng *rng) in via_rng_init()
190 static struct hwrng via_rng = {
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 = {
Dppc4xx-rng.c30 static int ppc4xx_rng_data_present(struct hwrng *rng, int wait) in ppc4xx_rng_data_present()
46 static int ppc4xx_rng_data_read(struct hwrng *rng, u32 *data) in ppc4xx_rng_data_read()
87 static struct hwrng ppc4xx_rng = {
Dvirtio-rng.c56 static int virtio_read(struct hwrng *rng, void *buf, size_t size, bool wait) in virtio_read()
78 static void virtio_cleanup(struct hwrng *rng) in virtio_cleanup()
85 static struct hwrng virtio_hwrng = {
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 = {
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 = {
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()
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 = {
Domap-rng.c69 static int omap_rng_data_present(struct hwrng *rng, int wait) in omap_rng_data_present()
90 static int omap_rng_data_read(struct hwrng *rng, u32 *data) in omap_rng_data_read()
101 static struct hwrng omap_rng_ops = {
Dexynos-rng.c42 struct hwrng rng;
57 static int exynos_init(struct hwrng *rng) in exynos_init()
79 static int exynos_read(struct hwrng *rng, void *buf, in exynos_read()
Dpseries-rng.c26 static int pseries_rng_data_read(struct hwrng *rng, u32 *data) in pseries_rng_data_read()
49 static struct hwrng pseries_rng = {
Dn2rng.h80 struct hwrng hwrng; member
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()
Dn2-drv.c388 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()
730 hwrng_unregister(&np->hwrng); in n2rng_remove()
Dbcm2835-rng.c30 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read()
45 static struct hwrng bcm2835_rng_ops = {
Dnomadik-rng.c23 static int nmk_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in nmk_rng_read()
37 static struct hwrng nmk_rng = {
Dpicoxcell-rng.c71 static int picoxcell_trng_read(struct hwrng *rng, void *buf, size_t max, in picoxcell_trng_read()
97 static struct hwrng picoxcell_trng = {
Datmel-rng.c27 struct hwrng rng;
30 static int atmel_trng_read(struct hwrng *rng, void *buf, size_t max, in atmel_trng_read()
/drivers/crypto/caam/
Dcaamrng.c138 static int caam_read(struct hwrng *rng, void *data, size_t max, bool wait) in caam_read()
234 static void caam_cleanup(struct hwrng *rng) in caam_cleanup()
268 static struct hwrng caam_rng = {

12