Home
last modified time | relevance | path

Searched refs:rnd_state (Results 1 – 23 of 23) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/i915/selftests/
Di915_random.h33 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);
Dscatterlist.c38 struct rnd_state *rnd);
42 struct rnd_state *rnd, in expect_pfn_sg()
143 struct rnd_state *rnd, in expect_pfn_sgtable()
166 struct rnd_state *rnd) in one()
173 struct rnd_state *rnd) in grow()
180 struct rnd_state *rnd) in shrink()
187 struct rnd_state *rnd) in random()
194 struct rnd_state *rnd) in random_page_size_pages()
216 struct rnd_state *rnd, in alloc_table()
277 struct rnd_state prng; in igt_sg_alloc()
[all …]
Di915_random.c33 u64 i915_prandom_u64_state(struct rnd_state *rnd) in i915_prandom_u64_state()
45 struct rnd_state *state) in i915_random_reorder()
56 unsigned int *i915_random_order(unsigned int count, struct rnd_state *state) in i915_random_order()
Di915_timeline.c98 static unsigned int random_engine(struct rnd_state *rnd) in random_engine()
105 struct rnd_state prng; in bench_sync()
/Linux-v4.19/lib/
Drandom32.c51 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 …]
Dinterval_tree_test.c26 static struct rnd_state rnd;
Dtest_parman.c83 struct rnd_state rnd;
Drbtree_test.c29 static struct rnd_state rnd;
Dtest_bpf.c137 struct rnd_state rnd; in bpf_fill_maxinsns3()
/Linux-v4.19/drivers/gpu/drm/lib/
Ddrm_random.h12 struct rnd_state state__; \
18 struct rnd_state name__ = DRM_RND_STATE_INITIALIZER(seed__)
21 struct rnd_state *state);
24 struct rnd_state *state);
Ddrm_random.c10 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-v4.19/drivers/mtd/tests/
Dpagetest.c51 static struct rnd_state rnd_state; variable
57 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in write_eraseblock()
77 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in verify_eraseblock()
98 struct rnd_state old_state = rnd_state; in verify_eraseblock()
112 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock()
118 rnd_state = old_state; in verify_eraseblock()
225 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
250 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
299 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasetest()
399 prandom_seed_state(&rnd_state, 1); in mtd_pagetest_init()
[all …]
Dsubpagetest.c49 static struct rnd_state rnd_state; variable
62 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
76 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
100 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2()
136 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock()
163 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock()
200 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in verify_eraseblock2()
343 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init()
359 prandom_seed_state(&rnd_state, 1); in mtd_subpagetest_init()
385 prandom_seed_state(&rnd_state, 3); in mtd_subpagetest_init()
[all …]
Doobtest.c55 static struct rnd_state rnd_state; variable
75 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock()
185 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock()
283 prandom_bytes_state(&rnd_state, writebuf, len); in verify_eraseblock_in_one_go()
417 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init()
422 prandom_seed_state(&rnd_state, 1); in mtd_oobtest_init()
437 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init()
443 prandom_seed_state(&rnd_state, 3); in mtd_oobtest_init()
475 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init()
486 prandom_seed_state(&rnd_state, 5); in mtd_oobtest_init()
[all …]
/Linux-v4.19/include/linux/
Drandom.h114 struct rnd_state { struct
118 u32 prandom_u32_state(struct rnd_state *state); argument
119 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
120 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
155 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state()
/Linux-v4.19/include/scsi/
Dlibfcoe.h147 struct rnd_state rnd_state; member
/Linux-v4.19/net/netfilter/
Dnft_numgen.c20 static DEFINE_PER_CPU(struct rnd_state, nft_numgen_prandom_state);
171 struct rnd_state *state = this_cpu_ptr(&nft_numgen_prandom_state); in nft_ng_random_gen()
Dnft_meta.c38 static DEFINE_PER_CPU(struct rnd_state, nft_prandom_state);
226 struct rnd_state *state = this_cpu_ptr(&nft_prandom_state); in nft_meta_get_eval()
/Linux-v4.19/arch/x86/mm/
Dkaslr.c78 struct rnd_state rand_state; in kernel_randomize_memory()
/Linux-v4.19/mm/
Dslab_common.c1203 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize()
1224 struct rnd_state state; in cache_random_seq_create()
Dslab.c2455 struct rnd_state rnd_state; member
2474 prandom_seed_state(&state->rnd_state, rand); in freelist_state_initialize()
2536 rand = prandom_u32_state(&state.rnd_state); in shuffle_freelist()
/Linux-v4.19/kernel/bpf/
Dcore.c1757 static DEFINE_PER_CPU(struct rnd_state, bpf_user_rnd_state);
1772 struct rnd_state *state; in BPF_CALL_0()
/Linux-v4.19/drivers/scsi/fcoe/
Dfcoe_ctlr.c2241 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart()
2266 prandom_seed_state(&fip->rnd_state, fip->lp->wwpn); in fcoe_ctlr_vn_start()