Home
last modified time | relevance | path

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

12

/linux/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()
278 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()
/linux/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/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);
A 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/include/linux/
A 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()
/linux/lib/
A Drandom32.c53 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state()
75 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t bytes) in prandom_bytes_state()
96 static void prandom_warmup(struct rnd_state *state) in prandom_warmup()
111 void prandom_seed_full_state(struct rnd_state __percpu *pcpu_state) in prandom_seed_full_state()
116 struct rnd_state *state = per_cpu_ptr(pcpu_state, i); in prandom_seed_full_state()
259 static void prandom_seed_early(struct rnd_state *state, u32 seed, in prandom_seed_early()
276 struct rnd_state state; in prandom_state_selftest()
291 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/drivers/gpu/drm/i915/gt/
A Dselftest_migrate.c38 u32 sz, struct rnd_state *prng) in copy()
138 u32 sz, struct rnd_state *prng) in clear()
237 migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_copy()
243 global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_copy()
275 migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_clear()
281 global_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_clear()
332 struct rnd_state prng;
A Dselftest_rc6.c160 struct rnd_state *prng, in randomised_engines()
A Dselftest_timeline.c68 struct rnd_state prng;
280 static unsigned int random_engine(struct rnd_state *rnd) in random_engine()
287 struct rnd_state prng; in bench_sync()
A Dselftest_lrc.c1628 struct rnd_state *prng) in garbage()
1657 static int __lrc_garbage(struct intel_engine_cs *engine, struct rnd_state *prng) in __lrc_garbage()
/linux/drivers/gpu/drm/i915/gem/selftests/
A Di915_gem_client_blt.c153 struct rnd_state *prng) in tiled_blits_create_buffers()
266 struct rnd_state *prng) in verify_buffer()
396 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create()
456 struct rnd_state *prng) in tiled_blits_prepare()
487 static int tiled_blits_bounce(struct tiled_blits *t, struct rnd_state *prng) in tiled_blits_bounce()
516 struct rnd_state *prng) in __igt_client_tiled_blits()
A Di915_gem_coherency.c293 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine()
/linux/net/netfilter/
A Dnft_numgen.c16 static DEFINE_PER_CPU(struct rnd_state, nft_numgen_prandom_state);
109 struct rnd_state *state = this_cpu_ptr(&nft_numgen_prandom_state); in nft_ng_random_gen()
A Dnft_meta.c35 static DEFINE_PER_CPU(struct rnd_state, nft_prandom_state);
276 struct rnd_state *state = this_cpu_ptr(&nft_prandom_state); in nft_prandom_u32()
/linux/include/scsi/
A Dlibfcoe.h135 struct rnd_state rnd_state; member
/linux/arch/x86/mm/
A Dkaslr.c69 struct rnd_state rand_state; in kernel_randomize_memory()
/linux/mm/
A Dslab_common.c974 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize()
995 struct rnd_state state; in cache_random_seq_create()

Completed in 60 milliseconds

12