/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_random.h | 34 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 D | scatterlist.c | 39 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 D | i915_random.c | 34 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 D | pagetest.c | 39 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 D | subpagetest.c | 36 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 D | oobtest.c | 43 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 D | drm_random.h | 12 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 D | drm_random.c | 10 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 D | prandom.h | 71 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 D | random32.c | 53 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 D | test_scanf.c | 25 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 D | interval_tree_test.c | 27 static struct rnd_state rnd;
|
A D | test_parman.c | 83 struct rnd_state rnd;
|
A D | rbtree_test.c | 30 static struct rnd_state rnd;
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | selftest_migrate.c | 38 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 D | selftest_rc6.c | 160 struct rnd_state *prng, in randomised_engines()
|
A D | selftest_timeline.c | 68 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 D | selftest_lrc.c | 1628 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 D | i915_gem_client_blt.c | 153 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 D | i915_gem_coherency.c | 293 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine()
|
/linux/net/netfilter/ |
A D | nft_numgen.c | 16 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 D | nft_meta.c | 35 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 D | libfcoe.h | 135 struct rnd_state rnd_state; member
|
/linux/arch/x86/mm/ |
A D | kaslr.c | 69 struct rnd_state rand_state; in kernel_randomize_memory()
|
/linux/mm/ |
A D | slab_common.c | 974 static void freelist_randomize(struct rnd_state *state, unsigned int *list, in freelist_randomize() 995 struct rnd_state state; in cache_random_seq_create()
|