Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/
A 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,
A 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()
282 struct rnd_state prng; in igt_sg_alloc()
[all …]
A 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()
A Dintel_memory_region.c1002 struct rnd_state *prng) in random_engine_class()
/linux-6.3-rc2/drivers/gpu/drm/lib/
A 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);
26 struct rnd_state *state);
A Ddrm_random.c10 u32 drm_prandom_u32_max_state(u32 ep_ro, struct rnd_state *state) in drm_prandom_u32_max_state()
17 struct rnd_state *state) in drm_random_reorder()
29 unsigned int *drm_random_order(unsigned int count, struct rnd_state *state) in drm_random_order()
/linux-6.3-rc2/include/linux/
A Dprandom.h16 struct rnd_state { struct
20 u32 prandom_u32_state(struct rnd_state *state); argument
21 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
22 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state);
40 static inline void prandom_seed_state(struct rnd_state *state, u64 seed) in prandom_seed_state()
/linux-6.3-rc2/lib/
A 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()
248 static void prandom_state_selftest_seed(struct rnd_state *state, u32 seed) in prandom_state_selftest_seed()
263 struct rnd_state state; in prandom_state_selftest()
278 struct rnd_state state; in prandom_state_selftest()
A Dtest_scanf.c25 static struct rnd_state rnd_state __initdata;
272 u32 n_bits = hweight32(prandom_u32_state(&rnd_state)) % (max_bits + 1); in next_test_random()
274 return prandom_u32_state(&rnd_state) & GENMASK(n_bits, 0); in next_test_random()
279 u32 rand1 = prandom_u32_state(&rnd_state); in next_test_random_ull()
281 u64 val = (u64)prandom_u32_state(&rnd_state) * rand1; in next_test_random_ull()
798 prandom_seed_state(&rnd_state, 3141592653589793238ULL); in selftest()
A Dinterval_tree_test.c27 static struct rnd_state rnd;
A Dtest_parman.c83 struct rnd_state rnd;
A Drbtree_test.c30 static struct rnd_state rnd;
/linux-6.3-rc2/drivers/mtd/tests/
A 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 …]
A 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 …]
A Doobtest.c43 static struct rnd_state rnd_state; variable
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()
636 prandom_seed_state(&rnd_state, 11); in mtd_oobtest_init()
645 prandom_bytes_state(&rnd_state, writebuf, sz * cnt); in mtd_oobtest_init()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/selftests/
A Di915_gem_client_blt.c300 struct rnd_state *prng) in tiled_blits_create_buffers()
426 struct rnd_state *prng) in verify_buffer()
542 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create()
607 struct rnd_state *prng) in tiled_blits_prepare()
638 static int tiled_blits_bounce(struct tiled_blits *t, struct rnd_state *prng) in tiled_blits_bounce()
669 struct rnd_state *prng) in __igt_client_tiled_blits()
A Di915_gem_coherency.c291 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine()
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/
A Dselftest_migrate.c42 u32 sz, struct rnd_state *prng) in copy()
261 u32 sz, struct rnd_state *prng) in clear()
439 migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_copy()
445 global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_copy()
477 migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_clear()
483 global_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_clear()
679 struct rnd_state prng;
A Dselftest_rc6.c160 struct rnd_state *prng, in randomised_engines()
A Dselftest_timeline.c70 struct rnd_state prng;
282 static unsigned int random_engine(struct rnd_state *rnd) in random_engine()
289 struct rnd_state prng; in bench_sync()
A Dselftest_lrc.c1733 struct rnd_state *prng) in garbage()
1762 static int __lrc_garbage(struct intel_engine_cs *engine, struct rnd_state *prng) in __lrc_garbage()
/linux-6.3-rc2/include/scsi/
A Dlibfcoe.h136 struct rnd_state rnd_state; member
/linux-6.3-rc2/arch/x86/mm/
A Dkaslr.c69 struct rnd_state rand_state; in kernel_randomize_memory()
/linux-6.3-rc2/mm/
A Dslab_common.c1149 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize()
1170 struct rnd_state state; in cache_random_seq_create()
A Dslab.c2369 struct rnd_state rnd_state; member
2388 prandom_seed_state(&state->rnd_state, rand); in freelist_state_initialize()
2450 rand = prandom_u32_state(&state.rnd_state); in shuffle_freelist()

Completed in 51 milliseconds

12