| /linux/drivers/char/hw_random/ |
| H A 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() 212 struct hwrng *rng; in rng_dev_read() local 306 struct hwrng *rng, *new_rng = NULL; in enable_best_rng() local 336 struct hwrng *rng, *new_rng; in rng_current_store() local 371 struct hwrng *rng; in rng_current_show() local [all …]
|
| H 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
|
| H 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
|
| H A 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
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H 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()
|
| H A 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()
|
| H 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()
|
| H A 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()
|
| H 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()
|
| H A 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()
|
| H A D | intel-rng.c | 167 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()
|
| H A D | cavium-rng.c | 26 struct cavium_rng_pf *rng; in cavium_rng_probe() local 64 struct cavium_rng_pf *rng; in cavium_rng_remove() local
|
| H A D | optee-rng.c | 115 static int optee_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) in optee_rng_read() 143 static int optee_rng_init(struct hwrng *rng) in optee_rng_init() 160 static void optee_rng_cleanup(struct hwrng *rng) in optee_rng_cleanup()
|
| /linux/drivers/crypto/caam/ |
| H A 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() 207 static inline void test_mode_once(struct hwrng *rng, bool wait) in test_mode_once() 214 static void self_test(struct hwrng *rng) in self_test() 221 static int caam_init(struct hwrng *rng) in caam_init()
|
| /linux/drivers/crypto/xilinx/ |
| H A D | xilinx-trng.c | 69 struct xilinx_rng *rng; member 98 static void xtrng_softreset(struct xilinx_rng *rng) in xtrng_softreset() 133 static int xtrng_collect_random_data(struct xilinx_rng *rng, u8 *rand_gen_buf, in xtrng_collect_random_data() 177 static void xtrng_enable_entropy(struct xilinx_rng *rng) in xtrng_enable_entropy() 184 static int xtrng_reseed_internal(struct xilinx_rng *rng) in xtrng_reseed_internal() 229 static int xtrng_random_bytes_generate(struct xilinx_rng *rng, u8 *rand_buf_ptr, in xtrng_random_bytes_generate() 293 struct xilinx_rng *rng; in xtrng_hwrng_trng_read() local 337 struct xilinx_rng *rng; in xtrng_probe() local 396 struct xilinx_rng *rng; in xtrng_remove() local
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A 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/drivers/crypto/ |
| H A 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
|
| H 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/drivers/crypto/amcc/ |
| H 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/crypto/ |
| H A D | testmgr.c | 879 static inline void init_rnd_state(struct rnd_state *rng) in init_rnd_state() 884 static inline u8 prandom_u8(struct rnd_state *rng) in prandom_u8() 889 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() 898 static inline bool prandom_bool(struct rnd_state *rng) in prandom_bool() 903 static inline u32 prandom_u32_inclusive(struct rnd_state *rng, in prandom_u32_inclusive() 910 static unsigned int generate_random_length(struct rnd_state *rng, in generate_random_length() 934 static void flip_random_bit(struct rnd_state *rng, u8 *buf, size_t size) in flip_random_bit() 943 static void flip_random_byte(struct rnd_state *rng, u8 *buf, size_t size) in flip_random_byte() 949 static void mutate_buffer(struct rnd_state *rng, u8 *buf, size_t size) in mutate_buffer() 971 static void generate_random_bytes(struct rnd_state *rng, u8 *buf, size_t count) in generate_random_bytes() [all …]
|
| H A D | jitterentropy-kcapi.c | 204 struct jitterentropy *rng = crypto_tfm_ctx(tfm); in jent_kcapi_cleanup() local 226 struct jitterentropy *rng = crypto_tfm_ctx(tfm); in jent_kcapi_init() local 272 struct jitterentropy *rng = crypto_rng_ctx(tfm); in jent_kcapi_random() local
|