/openbmc/linux/lib/ |
H A D | random32.c | 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() 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 D | interval_tree_test.c | 46 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 D | test_scanf.c | 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()
|
H A D | rbtree_test.c | 153 nodes[i].key = prandom_u32_state(&rnd); in init() 154 nodes[i].val = prandom_u32_state(&rnd); in init()
|
H A D | test_parman.c | 139 return prandom_u32_state(&test_parman->rnd); in test_parman_rnd_get()
|
H A D | test_bpf.c | 143 __u32 k = prandom_u32_state(&rnd); in bpf_fill_maxinsns3()
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | i915_random.h | 43 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 D | i915_random.c | 38 x = prandom_u32_state(rnd); in i915_prandom_u64_state() 40 x |= prandom_u32_state(rnd); in i915_prandom_u64_state()
|
H A D | scatterlist.c | 190 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 D | intel_memory_region.c | 761 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 D | i915_syncmap.c | 226 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 D | drm_random.c | 12 return upper_32_bits((u64)prandom_u32_state(state) * ep_ro); in drm_prandom_u32_max_state()
|
/openbmc/linux/include/linux/ |
H A D | prandom.h | 20 u32 prandom_u32_state(struct rnd_state *state);
|
/openbmc/linux/net/sched/ |
H A D | sch_netem.c | 194 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 D | i915_gem_coherency.c | 372 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
|
H A D | i915_gem_client_blt.c | 619 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
|
H A D | i915_gem_context.c | 1431 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly()
|
H A D | huge_pages.c | 1364 size = prandom_u32_state(prng) & mask; in igt_random_size()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_timeline.c | 311 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync() 396 u32 seqno = prandom_u32_state(&prng); in bench_sync()
|
H A D | selftest_migrate.c | 701 I915_RND_STATE_INITIALIZER(prandom_u32_state(&prng)); in threaded_migrate()
|
/openbmc/linux/crypto/ |
H A D | testmgr.c | 877 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 D | core.c | 2805 res = prandom_u32_state(state); in BPF_CALL_0()
|
/openbmc/linux/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 2227 port_id = prandom_u32_state(&fip->rnd_state) & 0xffff; in fcoe_ctlr_vn_restart()
|