| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_migrate.c | 42 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 D | selftest_timeline.c | 70 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 D | selftest_rc6.c | 191 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 D | selftest_hangcheck.c | 893 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 D | i915_gem_client_blt.c | 300 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 D | i915_gem_coherency.c | 289 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 D | huge_pages.c | 1198 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 D | i915_gem_mman.c | 96 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 D | i915_gem_context.c | 1378 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 D | kaslr.c | 48 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 D | sch_netem.c | 111 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 D | i915_syncmap.c | 204 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 D | i915_gem_gtt.c | 260 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 D | i915_request.c | 319 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 D | xe_bo.c | 449 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 D | Makefile | 4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | Makefile | 3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
|
| /linux/arch/s390/crypto/ |
| H A D | Makefile | 9 obj-$(CONFIG_S390_PRNG) += prng.o
|
| /linux/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | Makefile | 4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5.dtsi | 213 prng: rng@10830400 { label 214 compatible = "samsung,exynos5250-prng";
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | qcom-ipq4019-ap.dk01.1.dtsi | 32 &prng {
|
| H A D | qcom-ipq4018-jalapeno.dts | 56 &prng {
|
| H A D | qcom-ipq4018-ap120c-ac.dtsi | 87 &prng {
|
| /linux/drivers/crypto/caam/ |
| H A D | Kconfig | 159 Selecting this will register the SEC hardware prng to
|
| /linux/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.c | 305 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()
|