Home
last modified time | relevance | path

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

1234567891011

/kernel/linux/linux-6.6/drivers/char/hw_random/
Dcore.c67 static void add_early_randomness(struct hwrng *rng) in add_early_randomness()
82 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng() local
90 static int set_current_rng(struct hwrng *rng) in set_current_rng()
137 struct hwrng *rng; in get_current_rng() local
148 static void put_rng(struct hwrng *rng) in put_rng()
160 static int hwrng_init(struct hwrng *rng) in hwrng_init()
192 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
218 struct hwrng *rng; in rng_dev_read() local
312 struct hwrng *rng, *new_rng = NULL; in enable_best_rng() local
342 struct hwrng *rng, *old_rng, *new_rng; in rng_current_store() local
[all …]
Dhisi-rng.c31 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
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
Dmtk-rng.c38 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()
Dpic32-rng.c30 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()
Dingenic-trng.c32 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()
Dcn10k-rng.c69 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
Dcavium-rng-vf.c82 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
Dbcm2835-rng.c31 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()
Dpasemi-rng.c33 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()
Dingenic-rng.c36 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()
/kernel/linux/linux-5.10/drivers/char/hw_random/
Dcore.c68 static void add_early_randomness(struct hwrng *rng) in add_early_randomness()
82 struct hwrng *rng = container_of(kref, struct hwrng, ref); in cleanup_rng() local
90 static int set_current_rng(struct hwrng *rng) in set_current_rng()
128 struct hwrng *rng; in get_current_rng() local
139 static void put_rng(struct hwrng *rng) in put_rng()
151 static int hwrng_init(struct hwrng *rng) in hwrng_init()
190 static inline int rng_get_data(struct hwrng *rng, u8 *buffer, size_t size, in rng_get_data()
216 struct hwrng *rng; in rng_dev_read() local
336 struct hwrng *rng, *old_rng, *new_rng; in hwrng_attr_current_store() local
371 struct hwrng *rng; in hwrng_attr_current_show() local
[all …]
Dhisi-rng.c31 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
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
Dmtk-rng.c38 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()
Dbcm2835-rng.c31 struct hwrng rng; member
37 static inline struct bcm2835_rng_priv *to_rng_priv(struct hwrng *rng) in to_rng_priv()
62 static int bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, in bcm2835_rng_read()
85 static int bcm2835_rng_init(struct hwrng *rng) in bcm2835_rng_init()
111 static void bcm2835_rng_cleanup(struct hwrng *rng) in bcm2835_rng_cleanup()
Dcavium-rng-vf.c82 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
249 struct cavium_rng *rng; in cavium_rng_remove_vf() local
Dpasemi-rng.c34 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()
Dingenic-rng.c36 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()
/kernel/linux/linux-6.6/drivers/crypto/
Dexynos-rng.c66 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 …]
Dqcom-rng.c39 struct qcom_rng *rng; member
44 static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max) in qcom_rng_read()
81 struct qcom_rng *rng = ctx->rng; in qcom_rng_generate() local
104 static int qcom_rng_enable(struct qcom_rng *rng) in qcom_rng_enable()
162 struct qcom_rng *rng; in qcom_rng_probe() local
/kernel/linux/linux-5.10/drivers/crypto/
Dexynos-rng.c66 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 …]
Dqcom-rng.c38 struct qcom_rng *rng; member
43 static int qcom_rng_read(struct qcom_rng *rng, u8 *data, unsigned int max) in qcom_rng_read()
80 struct qcom_rng *rng = ctx->rng; in qcom_rng_generate() local
103 static int qcom_rng_enable(struct qcom_rng *rng) in qcom_rng_enable()
161 struct qcom_rng *rng; in qcom_rng_probe() local
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Drng.c34 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()
63 struct powernv_rng *rng; in powernv_get_random_real_mode() local
108 struct powernv_rng *rng; in powernv_get_random_long() local
120 static __init void rng_init_per_cpu(struct powernv_rng *rng, in rng_init_per_cpu()
139 struct powernv_rng *rng; in rng_create() local
/kernel/linux/linux-6.6/drivers/crypto/caam/
Dcaamrng.c38 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()

1234567891011