Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
282 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()
/linux-6.6.21/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);
26 struct rnd_state *state);
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.6.21/include/linux/
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.6.21/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()
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()
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()
Dinterval_tree_test.c27 static struct rnd_state rnd;
Dtest_parman.c83 struct rnd_state rnd;
Drbtree_test.c30 static struct rnd_state rnd;
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_client_blt.c299 struct rnd_state *prng) in tiled_blits_create_buffers()
425 struct rnd_state *prng) in verify_buffer()
541 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create()
606 struct rnd_state *prng) in tiled_blits_prepare()
637 static int tiled_blits_bounce(struct tiled_blits *t, struct rnd_state *prng) in tiled_blits_bounce()
668 struct rnd_state *prng) in __igt_client_tiled_blits()
Di915_gem_coherency.c291 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
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;
Dselftest_rc6.c160 struct rnd_state *prng, in randomised_engines()
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()
Dselftest_tlb.c38 struct rnd_state *prng) in pte_tlbinv()
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.6.21/include/scsi/
Dlibfcoe.h136 struct rnd_state rnd_state; member
/linux-6.6.21/crypto/
Dtestmgr.c870 static inline void init_rnd_state(struct rnd_state *rng) in init_rnd_state()
875 static inline u8 prandom_u8(struct rnd_state *rng) in prandom_u8()
880 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below()
889 static inline bool prandom_bool(struct rnd_state *rng) in prandom_bool()
894 static inline u32 prandom_u32_inclusive(struct rnd_state *rng, in prandom_u32_inclusive()
901 static unsigned int generate_random_length(struct rnd_state *rng, in generate_random_length()
919 static void flip_random_bit(struct rnd_state *rng, u8 *buf, size_t size) in flip_random_bit()
928 static void flip_random_byte(struct rnd_state *rng, u8 *buf, size_t size) in flip_random_byte()
934 static void mutate_buffer(struct rnd_state *rng, u8 *buf, size_t size) in mutate_buffer()
956 static void generate_random_bytes(struct rnd_state *rng, u8 *buf, size_t count) in generate_random_bytes()
[all …]
/linux-6.6.21/arch/x86/mm/
Dkaslr.c69 struct rnd_state rand_state; in kernel_randomize_memory()
/linux-6.6.21/net/sched/
Dsch_netem.c110 struct rnd_state prng_state;
191 struct rnd_state *s = &p->prng_state; in get_crandom()
275 struct rnd_state *s = &q->prng.prng_state; in loss_gilb_ell()

12