Home
last modified time | relevance | path

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

/openbmc/linux/lib/
H A Drandom32.c98 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()
104 prandom_u32_state(state); in prandom_warmup()
105 prandom_u32_state(state); in prandom_warmup()
106 prandom_u32_state(state); in prandom_warmup()
107 prandom_u32_state(state); in prandom_warmup()
[all …]
H A 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()
H A 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()
H A Drbtree_test.c153 nodes[i].key = prandom_u32_state(&rnd); in init()
154 nodes[i].val = prandom_u32_state(&rnd); in init()
H A Dtest_parman.c139 return prandom_u32_state(&test_parman->rnd); in test_parman_rnd_get()
H A Dtest_bpf.c143 __u32 k = prandom_u32_state(&rnd); in bpf_fill_maxinsns3()
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A 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()
H A Di915_random.c38 x = prandom_u32_state(rnd); in i915_prandom_u64_state()
40 x |= prandom_u32_state(rnd); in i915_prandom_u64_state()
H A 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()
H A 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()
1120 val = prandom_u32_state(&prng); in igt_lmem_write_cpu()
H A Di915_syncmap.c226 prandom_u32_state(&prng)); in igt_syncmap_one()
578 seqno = prandom_u32_state(&prng); in igt_syncmap_random()
/openbmc/linux/drivers/gpu/drm/lib/
H A Ddrm_random.c12 return upper_32_bits((u64)prandom_u32_state(state) * ep_ro); in drm_prandom_u32_max_state()
/openbmc/linux/include/linux/
H A Dprandom.h20 u32 prandom_u32_state(struct rnd_state *state);
/openbmc/linux/net/sched/
H A Dsch_netem.c194 return prandom_u32_state(s); in get_crandom()
196 value = prandom_u32_state(s); in get_crandom()
210 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state()
279 if (prandom_u32_state(s) < clg->a1) in loss_gilb_ell()
281 if (prandom_u32_state(s) < clg->a4) in loss_gilb_ell()
285 if (prandom_u32_state(s) < clg->a2) in loss_gilb_ell()
287 if (prandom_u32_state(s) > clg->a3) in loss_gilb_ell()
/openbmc/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_coherency.c372 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
H A Di915_gem_client_blt.c619 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
H A Di915_gem_context.c1431 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly()
H A Dhuge_pages.c1364 size = prandom_u32_state(prng) & mask; in igt_random_size()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_timeline.c311 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
396 u32 seqno = prandom_u32_state(&prng); in bench_sync()
H A Dselftest_migrate.c701 I915_RND_STATE_INITIALIZER(prandom_u32_state(&prng)); in threaded_migrate()
/openbmc/linux/crypto/
H A Dtestmgr.c877 return prandom_u32_state(rng); in prandom_u8()
886 return prandom_u32_state(rng) % ceil; in prandom_u32_below()
/openbmc/linux/kernel/bpf/
H A Dcore.c2805 res = prandom_u32_state(state); in BPF_CALL_0()
/openbmc/linux/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c2227 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart()