/linux/drivers/char/hw_random/ |
A D | core.c | 86 static int set_current_rng(struct hwrng *rng) in set_current_rng() 124 struct hwrng *rng; in get_current_rng() local 135 static void put_rng(struct hwrng *rng) in put_rng() 147 static int hwrng_init(struct hwrng *rng) in hwrng_init() 211 struct hwrng *rng; in rng_dev_read() local 327 struct hwrng *rng, *old_rng, *new_rng; in rng_current_store() local 362 struct hwrng *rng; in rng_current_show() local 379 struct hwrng *rng; in rng_available_show() local 430 struct hwrng *rng; in hwrng_fillfn() local 462 int hwrng_register(struct hwrng *rng) in hwrng_register() [all …]
|
A D | hisi-rng.c | 31 struct hwrng rng; member 34 static int hisi_rng_init(struct hwrng *rng) in hisi_rng_init() 57 static void hisi_rng_cleanup(struct hwrng *rng) in hisi_rng_cleanup() 64 static int hisi_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in hisi_rng_read() 75 struct hisi_rng *rng; in hisi_rng_probe() local
|
A D | octeon-rng.c | 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() 62 struct octeon_rng *rng; in octeon_rng_probe() local
|
A D | mtk-rng.c | 38 struct hwrng rng; member 41 static int mtk_rng_init(struct hwrng *rng) in mtk_rng_init() 58 static void mtk_rng_cleanup(struct hwrng *rng) in mtk_rng_cleanup() 70 static bool mtk_rng_wait_ready(struct hwrng *rng, bool wait) in mtk_rng_wait_ready() 83 static int mtk_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in mtk_rng_read()
|
A D | iproc-rng200.c | 50 struct hwrng rng; member 54 #define to_rng_priv(rng) container_of(rng, struct iproc_rng200_dev, rng) argument 98 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, in iproc_rng200_read() 159 static int iproc_rng200_init(struct hwrng *rng) in iproc_rng200_init() 168 static void iproc_rng200_cleanup(struct hwrng *rng) in iproc_rng200_cleanup()
|
A D | bcm2835-rng.c | 32 struct hwrng rng; member 39 static inline struct bcm2835_rng_priv *to_rng_priv(struct hwrng *rng) in to_rng_priv() 64 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read() 87 static int bcm2835_rng_init(struct hwrng *rng) in bcm2835_rng_init() 115 static void bcm2835_rng_cleanup(struct hwrng *rng) in bcm2835_rng_cleanup()
|
A D | pasemi-rng.c | 34 static int pasemi_rng_data_present(struct hwrng *rng, int wait) in pasemi_rng_data_present() 49 static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) in pasemi_rng_data_read() 56 static int pasemi_rng_init(struct hwrng *rng) in pasemi_rng_init() 68 static void pasemi_rng_cleanup(struct hwrng *rng) in pasemi_rng_cleanup()
|
A D | ingenic-rng.c | 36 struct hwrng rng; member 39 static int ingenic_rng_init(struct hwrng *rng) in ingenic_rng_init() 48 static void ingenic_rng_cleanup(struct hwrng *rng) in ingenic_rng_cleanup() 55 static int ingenic_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in ingenic_rng_read()
|
A D | mxc-rnga.c | 56 struct hwrng rng; member 61 static int mxc_rnga_data_present(struct hwrng *rng, int wait) in mxc_rnga_data_present() 77 static int mxc_rnga_data_read(struct hwrng *rng, u32 * data) in mxc_rnga_data_read() 100 static int mxc_rnga_init(struct hwrng *rng) in mxc_rnga_init() 123 static void mxc_rnga_cleanup(struct hwrng *rng) in mxc_rnga_cleanup()
|
A D | ingenic-trng.c | 35 struct hwrng rng; member 38 static int ingenic_trng_init(struct hwrng *rng) in ingenic_trng_init() 50 static void ingenic_trng_cleanup(struct hwrng *rng) in ingenic_trng_cleanup() 60 static int ingenic_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in ingenic_trng_read()
|
A D | npcm-rng.c | 33 struct hwrng rng; member 36 static int npcm_rng_init(struct hwrng *rng) in npcm_rng_init() 46 static void npcm_rng_cleanup(struct hwrng *rng) in npcm_rng_cleanup() 53 static int npcm_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in npcm_rng_read()
|
A D | stm32-rng.c | 31 struct hwrng rng; member 38 static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in stm32_rng_read() 82 static int stm32_rng_init(struct hwrng *rng) in stm32_rng_init() 104 static void stm32_rng_cleanup(struct hwrng *rng) in stm32_rng_cleanup()
|
A D | ks-sa-rng.c | 85 struct hwrng rng; member 113 static int ks_sa_rng_init(struct hwrng *rng) in ks_sa_rng_init() 154 static void ks_sa_rng_cleanup(struct hwrng *rng) in ks_sa_rng_cleanup() 165 static int ks_sa_rng_data_read(struct hwrng *rng, u32 *data) in ks_sa_rng_data_read() 180 static int ks_sa_rng_data_present(struct hwrng *rng, int wait) in ks_sa_rng_data_present()
|
A D | amd-rng.c | 61 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()
|
A D | tx4939-rng.c | 29 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()
|
A D | pic32-rng.c | 38 struct hwrng rng; member 49 static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max, in pic32_rng_read() 114 struct pic32_rng *rng = platform_get_drvdata(pdev); in pic32_rng_remove() local
|
A D | ba431-rng.c | 42 struct hwrng rng; member 115 static int ba431_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in ba431_trng_read() 155 static void ba431_trng_cleanup(struct hwrng *rng) in ba431_trng_cleanup() 163 static int ba431_trng_init(struct hwrng *rng) in ba431_trng_init()
|
A D | via-rng.c | 87 static int via_rng_data_present(struct hwrng *rng, int wait) in via_rng_data_present() 120 static int via_rng_data_read(struct hwrng *rng, u32 *data) in via_rng_data_read() 129 static int via_rng_init(struct hwrng *rng) in via_rng_init()
|
/linux/drivers/crypto/ |
A D | exynos-rng.c | 66 struct exynos_rng_dev *rng; member 87 static u32 exynos_rng_readl(struct exynos_rng_dev *rng, u32 offset) in exynos_rng_readl() 92 static void exynos_rng_writel(struct exynos_rng_dev *rng, u32 val, u32 offset) in exynos_rng_writel() 97 static int exynos_rng_set_seed(struct exynos_rng_dev *rng, in exynos_rng_set_seed() 140 static int exynos_rng_get_random(struct exynos_rng_dev *rng, in exynos_rng_get_random() 172 static void exynos_rng_reseed(struct exynos_rng_dev *rng) in exynos_rng_reseed() 199 struct exynos_rng_dev *rng = ctx->rng; in exynos_rng_generate() local 229 struct exynos_rng_dev *rng = ctx->rng; in exynos_rng_seed() local 270 struct exynos_rng_dev *rng; in exynos_rng_probe() local 320 struct exynos_rng_dev *rng = dev_get_drvdata(dev); in exynos_rng_suspend() local [all …]
|
A D | qcom-rng.c | 37 struct qcom_rng *rng; member 42 static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max) in qcom_rng_read() 76 struct qcom_rng *rng = ctx->rng; in qcom_rng_generate() local 99 static int qcom_rng_enable(struct qcom_rng *rng) in qcom_rng_enable() 157 struct qcom_rng *rng; in qcom_rng_probe() local
|
A D | atmel-sha204a.c | 25 struct hwrng *rng = areq; in atmel_sha204a_rng_done() local 36 static int atmel_sha204a_rng_read_nonblocking(struct hwrng *rng, void *data, in atmel_sha204a_rng_read_nonblocking() 70 static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max, in atmel_sha204a_rng_read()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | rng.c | 34 struct powernv_rng *rng; in powernv_hwrng_present() local 41 static unsigned long rng_whiten(struct powernv_rng *rng, unsigned long val) in rng_whiten() 59 struct powernv_rng *rng; in powernv_get_random_real_mode() local 105 struct powernv_rng *rng; in powernv_get_random_long() local 117 static __init void rng_init_per_cpu(struct powernv_rng *rng, in rng_init_per_cpu() 136 struct powernv_rng *rng; in rng_create() local
|
/linux/drivers/crypto/amcc/ |
A D | crypto4xx_trng.c | 28 static int ppc4xx_trng_data_present(struct hwrng *rng, int wait) in ppc4xx_trng_data_present() 45 static int ppc4xx_trng_data_read(struct hwrng *rng, u32 *data) in ppc4xx_trng_data_read() 75 struct hwrng *rng = NULL; in ppc4xx_trng_probe() local
|
/linux/drivers/crypto/caam/ |
A D | caamrng.c | 36 struct hwrng rng; member 145 static int caam_read(struct hwrng *rng, void *dst, size_t max, bool wait) in caam_read() 164 static void caam_cleanup(struct hwrng *rng) in caam_cleanup() 173 static int caam_init(struct hwrng *rng) in caam_init()
|
/linux/crypto/ |
A D | jitterentropy-kcapi.c | 116 struct jitterentropy *rng = crypto_tfm_ctx(tfm); in jent_kcapi_init() local 129 struct jitterentropy *rng = crypto_tfm_ctx(tfm); in jent_kcapi_cleanup() local 142 struct jitterentropy *rng = crypto_rng_ctx(tfm); in jent_kcapi_random() local
|