Home
last modified time | relevance | path

Searched refs:prandom_u32_state (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/lib/
Drandom32.c52 u32 prandom_u32_state(struct rnd_state *state) in prandom_u32_state() function
62 EXPORT_SYMBOL(prandom_u32_state);
79 put_unaligned(prandom_u32_state(state), (u32 *) ptr); in prandom_bytes_state()
85 u32 rem = prandom_u32_state(state); in prandom_bytes_state()
98 prandom_u32_state(state); in prandom_warmup()
99 prandom_u32_state(state); in prandom_warmup()
100 prandom_u32_state(state); in prandom_warmup()
101 prandom_u32_state(state); in prandom_warmup()
102 prandom_u32_state(state); in prandom_warmup()
103 prandom_u32_state(state); in prandom_warmup()
[all …]
Dinterval_tree_test.c46 u32 b = (prandom_u32_state(&rnd) >> 4) % max_endpoint; in init()
47 u32 a = (prandom_u32_state(&rnd) >> 4) % b; in init()
59 queries[i] = (prandom_u32_state(&rnd) >> 4) % max_endpoint; in init()
Dtest_scanf.c272 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()
Drbtree_test.c153 nodes[i].key = prandom_u32_state(&rnd); in init()
154 nodes[i].val = prandom_u32_state(&rnd); in init()
Dtest_parman.c139 return prandom_u32_state(&test_parman->rnd); in test_parman_rnd_get()
Dtest_bpf.c143 __u32 k = prandom_u32_state(&rnd); in bpf_fill_maxinsns3()
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_random.h43 struct rnd_state name__ = I915_RND_STATE_INITIALIZER(prandom_u32_state(&(parent__)))
49 return upper_32_bits(mul_u32_u32(prandom_u32_state(state), ep_ro)); in i915_prandom_u32_max_state()
Di915_random.c38 x = prandom_u32_state(rnd); in i915_prandom_u64_state()
40 x |= prandom_u32_state(rnd); in i915_prandom_u64_state()
Dscatterlist.c190 return 1 + (prandom_u32_state(rnd) % 1024); in random()
204 return page_count[(prandom_u32_state(rnd) % 3)]; in random_page_size_pages()
Dintel_memory_region.c761 u32 rng = prandom_u32_state(&prng); in igt_gpu_write()
932 val = prandom_u32_state(&prng); in igt_lmem_create_cleared_cpu()
975 sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE); in igt_lmem_write_gpu()
1049 sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE); in igt_lmem_write_cpu()
1118 val = prandom_u32_state(&prng); in igt_lmem_write_cpu()
Di915_syncmap.c226 prandom_u32_state(&prng)); in igt_syncmap_one()
578 seqno = prandom_u32_state(&prng); in igt_syncmap_random()
/linux-6.1.9/drivers/gpu/drm/lib/
Ddrm_random.c12 return upper_32_bits((u64)prandom_u32_state(state) * ep_ro); in drm_prandom_u32_max_state()
/linux-6.1.9/include/linux/
Dprandom.h19 u32 prandom_u32_state(struct rnd_state *state);
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_coherency.c374 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
Di915_gem_client_blt.c633 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
Dhuge_pages.c1297 size = prandom_u32_state(prng) & mask; in igt_random_size()
Di915_gem_context.c1410 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dselftest_timeline.c311 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
396 u32 seqno = prandom_u32_state(&prng); in bench_sync()
Dselftest_migrate.c554 I915_RND_STATE_INITIALIZER(prandom_u32_state(&prng)); in threaded_migrate()
/linux-6.1.9/mm/
Dslab_common.c1144 rand = prandom_u32_state(state); in freelist_randomize()
Dslab.c2450 rand = prandom_u32_state(&state.rnd_state); in shuffle_freelist()
/linux-6.1.9/kernel/bpf/
Dcore.c2603 res = prandom_u32_state(state); in BPF_CALL_0()
/linux-6.1.9/drivers/scsi/fcoe/
Dfcoe_ctlr.c2227 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart()