Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_random.h34 struct rnd_state state__; \
40 struct rnd_state name__ = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed)
43 struct rnd_state name__ = I915_RND_STATE_INITIALIZER(prandom_u32_state(&(parent__)))
45 u64 i915_prandom_u64_state(struct rnd_state *rnd);
47 static inline u32 i915_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state) in i915_prandom_u32_max_state()
53 struct rnd_state *state);
56 struct rnd_state *state);
59 struct rnd_state *state);
61 u64 igt_random_offset(struct rnd_state *state,
Dscatterlist.c39 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 …]
Di915_random.c34 u64 i915_prandom_u64_state(struct rnd_state *rnd) in i915_prandom_u64_state()
46 struct rnd_state *state) in i915_prandom_shuffle()
71 struct rnd_state *state) in i915_random_reorder()
76 unsigned int *i915_random_order(unsigned int count, struct rnd_state *state) in i915_random_order()
92 u64 igt_random_offset(struct rnd_state *state, in igt_random_offset()
Dintel_memory_region.c522 struct rnd_state *prng) in random_engine_class()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dpagetest.c39 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 …]
Dsubpagetest.c36 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 …]
Doobtest.c43 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 …]
/kernel/linux/linux-5.10/include/linux/
Dprandom.h71 struct rnd_state { struct
75 u32 prandom_u32_state(struct rnd_state *state); argument
76 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
77 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
112 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state()
/kernel/linux/linux-5.10/lib/
Drandom32.c52 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state()
74 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state()
95 static void prandom_warmup(struct rnd_state *state) in prandom_warmup()
110 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state) in prandom_seed_full_state()
115 struct rnd_state *state = per_cpu_ptr(pcpu_state, i); in prandom_seed_full_state()
258 static void prandom_seed_early(struct rnd_state *state, u32 seed, in prandom_seed_early()
275 struct rnd_state state; in prandom_state_selftest()
290 struct rnd_state state; in prandom_state_selftest()
Dinterval_tree_test.c27 static struct rnd_state rnd;
Dtest_parman.c83 struct rnd_state rnd;
Drbtree_test.c30 static struct rnd_state rnd;
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_client_blt.c23 struct rnd_state prng; in __igt_client_fill()
259 struct rnd_state *prng) in tiled_blits_create_buffers()
372 struct rnd_state *prng) in verify_buffer()
502 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create()
562 struct rnd_state *prng) in tiled_blits_prepare()
593 static int tiled_blits_bounce(struct tiled_blits *t, struct rnd_state *prng) in tiled_blits_bounce()
622 struct rnd_state *prng) in __igt_client_tiled_blits()
Di915_gem_object_blt.c199 struct rnd_state prng;
207 struct rnd_state *prng = &thread->prng; in igt_fill_blt_thread()
325 struct rnd_state *prng = &thread->prng; in igt_copy_blt_thread()
Di915_gem_coherency.c294 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine()
/kernel/linux/linux-5.10/include/scsi/
Dlibfcoe.h135 struct rnd_state rnd_state; member
/kernel/linux/linux-5.10/net/netfilter/
Dnft_numgen.c16 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()
Dnft_meta.c35 static DEFINE_PER_CPU(struct rnd_state, nft_prandom_state);
272 struct rnd_state *state = this_cpu_ptr(&nft_prandom_state); in nft_prandom_u32()
/kernel/linux/linux-5.10/arch/x86/mm/
Dkaslr.c69 struct rnd_state rand_state; in kernel_randomize_memory()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dselftest_timeline.c46 struct rnd_state prng;
250 static unsigned int random_engine(struct rnd_state *rnd) in random_engine()
257 struct rnd_state prng; in bench_sync()
Dselftest_rc6.c152 struct rnd_state *prng, in randomised_engines()
/kernel/linux/linux-5.10/mm/
Dslab_common.c860 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize()
881 struct rnd_state state; in cache_random_seq_create()
Dslab.c2378 struct rnd_state rnd_state; member
2397 prandom_seed_state(&state->rnd_state, rand); in freelist_state_initialize()
2459 rand = prandom_u32_state(&state.rnd_state); in shuffle_freelist()

12