/linux-6.12.1/drivers/char/hw_random/ |
D | core.c | 69 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng() local 77 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() 179 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data() 205 struct hwrng *rng; in rng_dev_read() local 299 struct hwrng *rng, *new_rng = NULL; in enable_best_rng() local 329 struct hwrng *rng, *new_rng; in rng_current_store() local 361 struct hwrng *rng; in rng_current_show() local [all …]
|
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
|
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
|
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()
|
D | cn10k-rng.c | 69 static unsigned long reset_rng_health_state(struct cn10k_rng *rng) in reset_rng_health_state() 78 static int check_rng_health(struct cn10k_rng *rng) in check_rng_health() 102 static bool cn10k_read_trng(struct cn10k_rng *rng, u64 *value) in cn10k_read_trng() 140 struct cn10k_rng *rng = (struct cn10k_rng *)hwrng->priv; in cn10k_rng_read() local 179 struct cn10k_rng *rng; in cn10k_rng_probe() local
|
D | bcm2835-rng.c | 31 struct hwrng rng; member 38 static inline struct bcm2835_rng_priv *to_rng_priv(struct hwrng *rng) in to_rng_priv() 63 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read() 86 static int bcm2835_rng_init(struct hwrng *rng) in bcm2835_rng_init() 116 static void bcm2835_rng_cleanup(struct hwrng *rng) in bcm2835_rng_cleanup()
|
D | cavium-rng-vf.c | 82 static int check_rng_health(struct cavium_rng *rng) in check_rng_health() 146 static int cavium_rng_read(struct hwrng *rng, void *dat, size_t max, bool wait) in cavium_rng_read() 169 static int cavium_map_pf_regs(struct cavium_rng *rng) in cavium_map_pf_regs() 206 struct cavium_rng *rng; in cavium_rng_probe_vf() local 248 struct cavium_rng *rng; in cavium_rng_remove_vf() local
|
D | pic32-rng.c | 30 struct hwrng rng; member 40 static int pic32_rng_init(struct hwrng *rng) in pic32_rng_init() 49 static int pic32_rng_read(struct hwrng *rng, void *buf, size_t max, in pic32_rng_read() 70 static void pic32_rng_cleanup(struct hwrng *rng) in pic32_rng_cleanup()
|
D | ingenic-trng.c | 32 struct hwrng rng; member 35 static int ingenic_trng_init(struct hwrng *rng) in ingenic_trng_init() 47 static void ingenic_trng_cleanup(struct hwrng *rng) in ingenic_trng_cleanup() 57 static int ingenic_trng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in ingenic_trng_read()
|
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()
|
D | iproc-rng200.c | 42 struct hwrng rng; member 46 #define to_rng_priv(rng) container_of(rng, struct iproc_rng200_dev, rng) argument 90 static int iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, in iproc_rng200_read() 151 static int iproc_rng200_init(struct hwrng *rng) in iproc_rng200_init() 160 static void iproc_rng200_cleanup(struct hwrng *rng) in iproc_rng200_cleanup()
|
D | pasemi-rng.c | 33 static int pasemi_rng_data_present(struct hwrng *rng, int wait) in pasemi_rng_data_present() 48 static int pasemi_rng_data_read(struct hwrng *rng, u32 *data) in pasemi_rng_data_read() 55 static int pasemi_rng_init(struct hwrng *rng) in pasemi_rng_init() 67 static void pasemi_rng_cleanup(struct hwrng *rng) in pasemi_rng_cleanup()
|
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()
|
D | rockchip-rng.c | 53 struct hwrng rng; member 60 static void rk_rng_write_ctl(struct rk_rng *rng, u32 val, u32 mask) in rk_rng_write_ctl() 65 static int rk_rng_init(struct hwrng *rng) in rk_rng_init() 90 static void rk_rng_cleanup(struct hwrng *rng) in rk_rng_cleanup() 101 static int rk_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in rk_rng_read()
|
D | npcm-rng.c | 34 struct hwrng rng; member 38 static int npcm_rng_init(struct hwrng *rng) in npcm_rng_init() 47 static void npcm_rng_cleanup(struct hwrng *rng) in npcm_rng_cleanup() 54 static int npcm_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in npcm_rng_read()
|
D | ks-sa-rng.c | 84 struct hwrng rng; member 112 static int ks_sa_rng_init(struct hwrng *rng) in ks_sa_rng_init() 152 static void ks_sa_rng_cleanup(struct hwrng *rng) in ks_sa_rng_cleanup() 162 static int ks_sa_rng_data_read(struct hwrng *rng, u32 *data) in ks_sa_rng_data_read() 176 static int ks_sa_rng_data_present(struct hwrng *rng, int wait) in ks_sa_rng_data_present()
|
D | exynos-trng.c | 78 struct hwrng rng; member 82 static int exynos_trng_do_read_reg(struct hwrng *rng, void *data, size_t max, in exynos_trng_do_read_reg() 100 static int exynos_trng_do_read_smc(struct hwrng *rng, void *data, size_t max, in exynos_trng_do_read_smc() 133 static int exynos_trng_init_reg(struct hwrng *rng) in exynos_trng_init_reg() 166 static int exynos_trng_init_smc(struct hwrng *rng) in exynos_trng_init_smc()
|
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()
|
D | amd-rng.c | 62 static int amd_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in amd_rng_read() 95 static int amd_rng_init(struct hwrng *rng) in amd_rng_init() 111 static void amd_rng_cleanup(struct hwrng *rng) in amd_rng_cleanup()
|
D | meson-rng.c | 31 struct hwrng rng; member 35 static int meson_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in meson_rng_read() 59 static int meson_s4_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in meson_s4_rng_read()
|
/linux-6.12.1/drivers/crypto/ |
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 318 struct exynos_rng_dev *rng = dev_get_drvdata(dev); in exynos_rng_suspend() local [all …]
|
D | qcom-rng.c | 43 struct qcom_rng *rng; member 53 static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max) in qcom_rng_read() 90 struct qcom_rng *rng = ctx->rng; in qcom_rng_generate() local 123 static int qcom_rng_enable(struct qcom_rng *rng) in qcom_rng_enable() 181 struct qcom_rng *rng; in qcom_rng_probe() local
|
/linux-6.12.1/drivers/crypto/caam/ |
D | caamrng.c | 38 struct hwrng rng; member 147 static int caam_read(struct hwrng *rng, void *dst, size_t max, bool wait) in caam_read() 166 static void caam_cleanup(struct hwrng *rng) in caam_cleanup() 176 static inline void test_len(struct hwrng *rng, size_t len, bool wait) in test_len() 205 static inline void test_mode_once(struct hwrng *rng, bool wait) in test_mode_once() 212 static void self_test(struct hwrng *rng) in self_test() 219 static int caam_init(struct hwrng *rng) in caam_init()
|
/linux-6.12.1/arch/powerpc/platforms/powernv/ |
D | rng.c | 32 static unsigned long rng_whiten(struct pnv_rng *rng, unsigned long val) in rng_whiten() 86 struct pnv_rng *rng; in pnv_get_random_long() local 100 static __init void rng_init_per_cpu(struct pnv_rng *rng, in rng_init_per_cpu() 119 struct pnv_rng *rng; in rng_create() local
|
/linux-6.12.1/drivers/crypto/amcc/ |
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
|