| /Linux-v5.4/drivers/gpu/drm/i915/selftests/ |
| D | i915_random.h | 33 struct rnd_state state__; \ 39 struct rnd_state name__ = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed) 42 struct rnd_state name__ = I915_RND_STATE_INITIALIZER(prandom_u32_state(&(parent__))) 44 u64 i915_prandom_u64_state(struct rnd_state *rnd); 46 static inline u32 i915_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state) in i915_prandom_u32_max_state() 52 struct rnd_state *state); 55 struct rnd_state *state); 58 struct rnd_state *state);
|
| D | scatterlist.c | 39 struct rnd_state *rnd); 43 struct rnd_state *rnd, in expect_pfn_sg() 144 struct rnd_state *rnd, in expect_pfn_sgtable() 167 struct rnd_state *rnd) in one() 174 struct rnd_state *rnd) in grow() 181 struct rnd_state *rnd) in shrink() 188 struct rnd_state *rnd) in random() 195 struct rnd_state *rnd) in random_page_size_pages() 217 struct rnd_state *rnd, in alloc_table() 278 struct rnd_state prng; in igt_sg_alloc() [all …]
|
| D | i915_random.c | 33 u64 i915_prandom_u64_state(struct rnd_state *rnd) in i915_prandom_u64_state() 45 struct rnd_state *state) in i915_prandom_shuffle() 70 struct rnd_state *state) in i915_random_reorder() 75 unsigned int *i915_random_order(unsigned int count, struct rnd_state *state) in i915_random_order()
|
| /Linux-v5.4/lib/ |
| D | random32.c | 51 static DEFINE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; 60 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state() 81 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_u32() 101 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state() 129 struct rnd_state *state = &get_cpu_var(net_rand_state); in prandom_bytes() 136 static void prandom_warmup(struct rnd_state *state) in prandom_warmup() 161 static void prandom_seed_early(struct rnd_state *state, u32 seed, in prandom_seed_early() 186 struct rnd_state *state = &per_cpu(net_rand_state, i); in prandom_seed() 205 struct rnd_state *state = &per_cpu(net_rand_state, i); in prandom_init() 241 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state) in prandom_seed_full_state() [all …]
|
| D | interval_tree_test.c | 27 static struct rnd_state rnd;
|
| D | test_parman.c | 83 struct rnd_state rnd;
|
| D | rbtree_test.c | 30 static struct rnd_state rnd;
|
| /Linux-v5.4/drivers/gpu/drm/lib/ |
| D | drm_random.h | 12 struct rnd_state state__; \ 18 struct rnd_state name__ = DRM_RND_STATE_INITIALIZER(seed__) 21 struct rnd_state *state); 24 struct rnd_state *state);
|
| D | drm_random.c | 10 static inline u32 drm_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state) in drm_prandom_u32_max_state() 16 struct rnd_state *state) in drm_random_reorder() 28 unsigned int *drm_random_order(unsigned int count, struct rnd_state *state) in drm_random_order()
|
| /Linux-v5.4/drivers/mtd/tests/ |
| D | pagetest.c | 39 static struct rnd_state rnd_state; variable 45 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in write_eraseblock() 65 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in verify_eraseblock() 86 struct rnd_state old_state = rnd_state; in verify_eraseblock() 100 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock() 106 rnd_state = old_state; in verify_eraseblock() 213 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest() 238 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest() 287 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasetest() 387 prandom_seed_state(&rnd_state, 1); in mtd_pagetest_init() [all …]
|
| D | subpagetest.c | 36 static struct rnd_state rnd_state; variable 49 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock() 63 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock() 87 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2() 123 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock() 150 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock() 187 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in verify_eraseblock2() 330 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init() 346 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init() 372 prandom_seed_state(&rnd_state, 3); in mtd_subpagetest_init() [all …]
|
| D | oobtest.c | 43 static struct rnd_state rnd_state; variable 63 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock() 173 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock() 271 prandom_bytes_state(&rnd_state, writebuf, len); in verify_eraseblock_in_one_go() 405 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init() 410 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init() 425 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init() 431 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init() 463 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init() 474 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init() [all …]
|
| /Linux-v5.4/include/linux/ |
| D | random.h | 116 struct rnd_state { struct 120 u32 prandom_u32_state(struct rnd_state *state); argument 121 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes); 122 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state); 157 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state()
|
| /Linux-v5.4/net/netfilter/ |
| D | nft_numgen.c | 16 static DEFINE_PER_CPU(struct rnd_state, nft_numgen_prandom_state); 110 struct rnd_state *state = this_cpu_ptr(&nft_numgen_prandom_state); in nft_ng_random_gen()
|
| D | nft_meta.c | 34 static DEFINE_PER_CPU(struct rnd_state, nft_prandom_state); 230 struct rnd_state *state = this_cpu_ptr(&nft_prandom_state); in nft_meta_get_eval()
|
| /Linux-v5.4/include/scsi/ |
| D | libfcoe.h | 135 struct rnd_state rnd_state; member
|
| /Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/ |
| D | i915_gem_object_blt.c | 20 struct rnd_state prng; in igt_fill_blt() 111 struct rnd_state prng; in igt_copy_blt()
|
| D | i915_gem_client_blt.c | 20 struct rnd_state prng; in igt_client_fill()
|
| /Linux-v5.4/arch/x86/mm/ |
| D | kaslr.c | 79 struct rnd_state rand_state; in kernel_randomize_memory()
|
| /Linux-v5.4/drivers/gpu/drm/i915/gt/ |
| D | selftest_timeline.c | 41 struct rnd_state prng; 244 static unsigned int random_engine(struct rnd_state *rnd) in random_engine() 251 struct rnd_state prng; in bench_sync()
|
| D | selftest_lrc.c | 1408 static int random_range(struct rnd_state *rnd, int min, int max) in random_range() 1413 static int random_priority(struct rnd_state *rnd) in random_priority() 1424 struct rnd_state prng;
|
| /Linux-v5.4/mm/ |
| D | slab_common.c | 1329 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize() 1350 struct rnd_state state; in cache_random_seq_create()
|
| D | slab.c | 2382 struct rnd_state rnd_state; member 2401 prandom_seed_state(&state->rnd_state, rand); in freelist_state_initialize() 2463 rand = prandom_u32_state(&state.rnd_state); in shuffle_freelist()
|
| /Linux-v5.4/kernel/bpf/ |
| D | core.c | 2000 static DEFINE_PER_CPU(struct rnd_state, bpf_user_rnd_state); 2015 struct rnd_state *state; in BPF_CALL_0()
|
| /Linux-v5.4/drivers/scsi/fcoe/ |
| D | fcoe_ctlr.c | 2232 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart() 2257 prandom_seed_state(&fip->rnd_state, fip->lp->wwpn); in fcoe_ctlr_vn_start()
|