Home
last modified time | relevance | path

Searched refs:prng (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_migrate.c42 u32 sz, struct rnd_state *prng) in copy() argument
116 int x = i * 1024 + i915_prandom_u32_max_state(1024, prng); in copy()
261 u32 sz, struct rnd_state *prng) in clear() argument
335 i915_prandom_u32_max_state(1024, prng); in clear()
377 ccs_bytes_left), prng); in clear()
439 migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_copy() argument
441 return copy(migrate, __migrate_copy, sz, prng); in migrate_copy()
445 global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_copy() argument
447 return copy(migrate, __global_copy, sz, prng); in global_copy()
477 migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_clear() argument
[all …]
H A Dselftest_timeline.c70 struct rnd_state prng; member
130 &state->prng); in __mock_hwsp_timeline()
133 &state->prng); in __mock_hwsp_timeline()
162 state.prng = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed); in mock_hwsp_freelist()
289 struct rnd_state prng; in bench_sync() local
303 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
311 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
321 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
326 u64 id = i915_prandom_u64_state(&prng); in bench_sync()
337 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
[all …]
H A Dselftest_rc6.c191 struct rnd_state *prng, in randomised_engines() argument
212 i915_prandom_shuffle(engines, sizeof(*engines), n, prng); in randomised_engines()
223 I915_RND_STATE(prng); in live_rc6_ctx_wa()
230 engines = randomised_engines(gt, &prng, &count); in live_rc6_ctx_wa()
H A Dselftest_hangcheck.c893 I915_RND_STATE(prng); in active_engine()
932 i915_prandom_u32_max_state(512, &prng), in active_engine()
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_client_blt.c300 struct rnd_state *prng) in tiled_blits_create_buffers() argument
329 i915_prandom_u32_max_state(CLIENT_NUM_TILING_TYPES, prng); in tiled_blits_create_buffers()
420 struct rnd_state *prng) in verify_buffer() argument
426 x = i915_prandom_u32_max_state(t->width, prng); in verify_buffer()
427 y = i915_prandom_u32_max_state(t->height, prng); in verify_buffer()
536 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create() argument
579 err = tiled_blits_create_buffers(t, WIDTH, HEIGHT, prng); in tiled_blits_create()
601 struct rnd_state *prng) in tiled_blits_prepare() argument
614 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
615 GEM_BUG_ON(verify_buffer(t, &t->scratch, prng)); in tiled_blits_prepare()
[all …]
H A Di915_gem_coherency.c289 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine() argument
298 count = i915_prandom_u32_max_state(count, prng); in random_engine()
313 I915_RND_STATE(prng); in igt_gem_coherency()
332 ctx.engine = random_engine(i915, &prng); in igt_gem_coherency()
368 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency()
370 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
H A Dhuge_pages.c1198 I915_RND_STATE(prng); in igt_write_huge()
1248 order = i915_random_order(count * count, &prng); in igt_write_huge()
1351 static u32 igt_random_size(struct rnd_state *prng, in igt_random_size() argument
1364 size = prandom_u32_state(prng) & mask; in igt_random_size()
1375 I915_RND_STATE(prng); in igt_ppgtt_smoke_huge()
1399 size = igt_random_size(&prng, min, rounddown_pow_of_two(size)); in igt_ppgtt_smoke_huge()
1622 I915_RND_STATE(prng); in igt_ppgtt_mixed()
1657 sz = i915_prandom_u32_max_state(SZ_4M, &prng); in igt_ppgtt_mixed()
1706 order = i915_random_order(count * count, &prng); in igt_ppgtt_mixed()
1716 u32 rnd = i915_prandom_u32_max_state(UINT_MAX, &prng); in igt_ppgtt_mixed()
H A Di915_gem_mman.c96 struct rnd_state *prng) in check_partial_mapping() argument
128 page = i915_prandom_u32_max_state(npages, prng); in check_partial_mapping()
454 I915_RND_STATE(prng); in igt_smoke_tiling()
494 i915_prandom_u32_max_state(I915_TILING_Y + 1, &prng); in igt_smoke_tiling()
520 i915_prandom_u32_max_state(max_pitch, &prng); in igt_smoke_tiling()
526 err = check_partial_mapping(obj, &tile, &prng); in igt_smoke_tiling()
H A Di915_gem_context.c1378 I915_RND_STATE(prng); in igt_ctx_readonly()
1432 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly()
1779 I915_RND_STATE(prng); in igt_vm_isolation()
1859 offset = igt_random_offset(&prng, in igt_vm_isolation()
/linux/arch/s390/boot/
H A Dkaslr.c48 struct prng_parm prng = { in get_random() local
76 *(unsigned long *) prng.parm_block ^= seed; in get_random()
78 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, in get_random()
81 memcpy(prng.parm_block, entropy, sizeof(entropy)); in get_random()
84 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, (u8 *) &random, in get_random()
/linux/net/sched/
H A Dsch_netem.c111 struct prng { struct
114 } prng; member
190 static u32 get_crandom(struct crndstate *state, struct prng *p) in get_crandom()
213 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state()
278 struct rnd_state *s = &q->prng.prng_state; in loss_gilb_ell()
302 return q->loss && q->loss >= get_crandom(&q->loss_cor, &q->prng); in loss_event()
331 struct prng *prng, in tabledist() argument
341 rnd = get_crandom(state, prng); in tabledist()
464 if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor, &q->prng)) in netem_enqueue()
499 if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor, &q->prng)) { in netem_enqueue()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_syncmap.c204 I915_RND_STATE(prng); in igt_syncmap_one()
217 u64 context = i915_prandom_u64_state(&prng); in igt_syncmap_one()
226 prandom_u32_state(&prng)); in igt_syncmap_one()
402 I915_RND_STATE(prng); in igt_syncmap_neighbours()
414 u64 context = i915_prandom_u64_state(&prng) & ~MASK; in igt_syncmap_neighbours()
544 I915_RND_STATE(prng); in igt_syncmap_random()
562 u64 context = i915_prandom_u64_state(&prng); in igt_syncmap_random()
578 seqno = prandom_u32_state(&prng); in igt_syncmap_random()
H A Di915_gem_gtt.c260 I915_RND_SUBSTATE(prng, seed_prng); in lowlevel_hole()
277 order = i915_random_order(count, &prng); in lowlevel_hole()
369 i915_random_reorder(order, count, &prng); in lowlevel_hole()
797 I915_RND_STATE(prng); in drunk_hole()
828 order = i915_random_order(count, &prng); in drunk_hole()
1351 I915_RND_STATE(prng); in igt_ggtt_page()
1395 order = i915_random_order(count, &prng); in igt_ggtt_page()
1411 i915_random_reorder(order, count, &prng); in igt_ggtt_page()
1542 I915_RND_STATE(prng); in igt_gtt_reserve()
1661 offset = igt_random_offset(&prng, in igt_gtt_reserve()
H A Di915_request.c319 I915_RND_STATE(prng); in __igt_breadcrumbs_smoketest()
338 order = i915_random_order(total, &prng); in __igt_breadcrumbs_smoketest()
362 i915_random_reorder(order, total, &prng); in __igt_breadcrumbs_smoketest()
363 count = 1 + i915_prandom_u32_max_state(max_batch, &prng); in __igt_breadcrumbs_smoketest()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_bo.c449 struct rnd_state prng; in shrink_test_run_device() local
454 prandom_seed_state(&prng, rand_seed); in shrink_test_run_device()
522 int ret = shrink_test_fill_random(bo, &prng, link); in shrink_test_run_device()
554 prandom_seed_state(&prng, rand_seed); in shrink_test_run_device()
576 failed = shrink_test_verify(test, bo, count, &prng, link); in shrink_test_run_device()
/linux/drivers/crypto/allwinner/sun4i-ss/
H A DMakefile4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
/linux/drivers/crypto/allwinner/sun8i-ss/
H A DMakefile3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
/linux/arch/s390/crypto/
H A DMakefile9 obj-$(CONFIG_S390_PRNG) += prng.o
/linux/drivers/crypto/allwinner/sun8i-ce/
H A DMakefile4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5.dtsi213 prng: rng@10830400 { label
214 compatible = "samsung,exynos5250-prng";
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-ipq4019-ap.dk01.1.dtsi32 &prng {
H A Dqcom-ipq4018-jalapeno.dts56 &prng {
H A Dqcom-ipq4018-ap120c-ac.dtsi87 &prng {
/linux/drivers/crypto/caam/
H A DKconfig159 Selecting this will register the SEC hardware prng to
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-vid-cap.c305 struct rnd_state prng; in vivid_update_quality() local
306 prandom_seed_state(&prng, dev->tv_freq ^ 0x55); in vivid_update_quality()
308 prandom_u32_state(&prng) & 0x3f); in vivid_update_quality()

12