/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_client_blt.c | 23 struct rnd_state prng; in __igt_client_fill() local 28 prandom_seed_state(&prng, i915_selftest.random_seed); in __igt_client_fill() 33 u32 sz = min_t(u64, ce->vm->total >> 4, prandom_u32_state(&prng)); in __igt_client_fill() 35 u32 val = prandom_u32_state(&prng); in __igt_client_fill() 259 struct rnd_state *prng) in tiled_blits_create_buffers() argument 288 i915_prandom_u32_max_state(I915_TILING_Y + 1, prng); in tiled_blits_create_buffers() 372 struct rnd_state *prng) in verify_buffer() argument 378 x = i915_prandom_u32_max_state(t->width, prng); in verify_buffer() 379 y = i915_prandom_u32_max_state(t->height, prng); in verify_buffer() 502 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create() argument [all …]
|
D | i915_gem_object_blt.c | 199 struct rnd_state prng; member 207 struct rnd_state *prng = &thread->prng; in igt_fill_blt_thread() local 222 prio = i915_prandom_u32_max_state(I915_PRIORITY_MAX, prng); in igt_fill_blt_thread() 242 u32 val = prandom_u32_state(prng); in igt_fill_blt_thread() 249 sz = i915_prandom_u32_max_state(total, prng) + 1; in igt_fill_blt_thread() 325 struct rnd_state *prng = &thread->prng; in igt_copy_blt_thread() local 340 prio = i915_prandom_u32_max_state(I915_PRIORITY_MAX, prng); in igt_copy_blt_thread() 360 u32 val = prandom_u32_state(prng); in igt_copy_blt_thread() 367 sz = i915_prandom_u32_max_state(total, prng) + 1; in igt_copy_blt_thread() 467 I915_RND_STATE(prng); in igt_threaded_blt() [all …]
|
D | i915_gem_coherency.c | 294 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine() argument 303 count = i915_prandom_u32_max_state(count, prng); in random_engine() 318 I915_RND_STATE(prng); in igt_gem_coherency() 337 ctx.engine = random_engine(i915, &prng); in igt_gem_coherency() 373 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency() 375 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
|
D | i915_gem_mman.c | 83 struct rnd_state *prng) in check_partial_mapping() argument 114 page = i915_prandom_u32_max_state(npages, prng); in check_partial_mapping() 435 I915_RND_STATE(prng); in igt_smoke_tiling() 475 i915_prandom_u32_max_state(I915_TILING_Y + 1, &prng); in igt_smoke_tiling() 501 i915_prandom_u32_max_state(max_pitch, &prng); in igt_smoke_tiling() 507 err = check_partial_mapping(obj, &tile, &prng); in igt_smoke_tiling()
|
D | huge_pages.c | 1090 I915_RND_STATE(prng); in igt_write_huge() 1127 order = i915_random_order(count * count, &prng); in igt_write_huge() 1222 static u32 igt_random_size(struct rnd_state *prng, in igt_random_size() argument 1235 size = prandom_u32_state(prng) & mask; in igt_random_size() 1247 I915_RND_STATE(prng); in igt_ppgtt_smoke_huge() 1270 size = igt_random_size(&prng, min, rounddown_pow_of_two(size)); in igt_ppgtt_smoke_huge()
|
D | i915_gem_context.c | 1361 I915_RND_STATE(prng); in igt_ctx_readonly() 1415 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly() 1780 I915_RND_STATE(prng); in igt_vm_isolation() 1848 offset = igt_random_offset(&prng, in igt_vm_isolation()
|
/drivers/gpu/drm/i915/selftests/ |
D | scatterlist.c | 278 struct rnd_state prng; in igt_sg_alloc() local 293 prandom_seed_state(&prng, in igt_sg_alloc() 295 err = alloc_table(&pt, sz, sz, *npages, &prng, in igt_sg_alloc() 302 prandom_seed_state(&prng, in igt_sg_alloc() 304 err = expect_pfn_sgtable(&pt, *npages, &prng, in igt_sg_alloc() 334 struct rnd_state prng; in igt_sg_trim() local 336 prandom_seed_state(&prng, i915_selftest.random_seed); in igt_sg_trim() 337 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim() 351 prandom_seed_state(&prng, in igt_sg_trim() 354 *npages, &prng, in igt_sg_trim()
|
D | intel_memory_region.c | 139 I915_RND_STATE(prng); in igt_mock_contiguous() 175 target = i915_prandom_u64_state(&prng); in igt_mock_contiguous() 386 I915_RND_STATE(prng); in igt_gpu_write() 410 order = i915_random_order(count * count, &prng); in igt_gpu_write() 427 u32 rng = prandom_u32_state(&prng); in igt_gpu_write() 481 I915_RND_STATE(prng); in igt_lmem_write_gpu() 495 sz = round_up(prandom_u32_state(&prng) % SZ_32M, PAGE_SIZE); in igt_lmem_write_gpu() 522 struct rnd_state *prng) in random_engine_class() argument 534 count = i915_prandom_u32_max_state(count, prng); in random_engine_class() 542 I915_RND_STATE(prng); in igt_lmem_write_cpu() [all …]
|
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()
|
D | i915_gem.c | 47 u32 prng = 0x12345678; in trash_stolen() local 62 prng = next_pseudo_random32(prng); in trash_stolen() 63 iowrite32(prng, &s[x]); in trash_stolen()
|
D | i915_buddy.c | 281 I915_RND_STATE(prng); in igt_mm_config() 286 prandom_seed_state(&prng, i915_selftest.random_seed); in igt_mm_config() 289 s = 1 + i915_prandom_u32_max_state((BIT(33 - 12)) - 1, &prng); in igt_mm_config() 291 ms = BIT(i915_prandom_u32_max_state(ilog2(s), &prng)); in igt_mm_config() 304 I915_RND_STATE(prng); in igt_buddy_alloc_smoke() 320 order = i915_random_order(mm.max_order + 1, &prng); in igt_buddy_alloc_smoke()
|
D | i915_gem_gtt.c | 235 I915_RND_SUBSTATE(prng, seed_prng); in lowlevel_hole() 251 order = i915_random_order(count, &prng); in lowlevel_hole() 325 i915_random_reorder(order, count, &prng); in lowlevel_hole() 732 I915_RND_STATE(prng); in drunk_hole() 759 order = i915_random_order(count, &prng); in drunk_hole() 1152 I915_RND_STATE(prng); in igt_ggtt_page() 1193 order = i915_random_order(count, &prng); in igt_ggtt_page() 1209 i915_random_reorder(order, count, &prng); in igt_ggtt_page() 1312 I915_RND_STATE(prng); in igt_gtt_reserve() 1443 offset = igt_random_offset(&prng, in igt_gtt_reserve() [all …]
|
D | i915_request.c | 297 I915_RND_STATE(prng); in __igt_breadcrumbs_smoketest() 314 order = i915_random_order(total, &prng); in __igt_breadcrumbs_smoketest() 338 i915_random_reorder(order, total, &prng); in __igt_breadcrumbs_smoketest() 339 count = 1 + i915_prandom_u32_max_state(max_batch, &prng); in __igt_breadcrumbs_smoketest()
|
/drivers/gpu/drm/i915/gt/ |
D | selftest_timeline.c | 46 struct rnd_state prng; member 98 &state->prng); in __mock_hwsp_timeline() 101 &state->prng); in __mock_hwsp_timeline() 130 state.prng = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed); in mock_hwsp_freelist() 257 struct rnd_state prng; in bench_sync() local 271 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync() 279 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync() 289 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync() 294 u64 id = i915_prandom_u64_state(&prng); in bench_sync() 305 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync() [all …]
|
D | selftest_rc6.c | 152 struct rnd_state *prng, in randomised_engines() argument 173 i915_prandom_shuffle(engines, sizeof(*engines), n, prng); in randomised_engines() 184 I915_RND_STATE(prng); in live_rc6_ctx_wa() 191 engines = randomised_engines(gt, &prng, &count); in live_rc6_ctx_wa()
|
D | selftest_lrc.c | 3441 struct rnd_state prng; member 3448 &smoke->prng)]; in smoke_context() 3588 ctx, random_priority(&smoke->prng), in smoke_random() 3606 .prng = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed), in live_preempt_smoke() 6258 struct rnd_state *prng) in garbage() argument 6267 prandom_bytes_state(prng, in garbage() 6287 static int __lrc_garbage(struct intel_engine_cs *engine, struct rnd_state *prng) in __lrc_garbage() argument 6297 hang = garbage(ce, prng); in __lrc_garbage() 6350 I915_RND_STATE(prng); in live_lrc_garbage() 6358 err = __lrc_garbage(engine, &prng); in live_lrc_garbage()
|
D | selftest_hangcheck.c | 696 I915_RND_STATE(prng); in active_engine() 732 i915_prandom_u32_max_state(512, &prng), in active_engine()
|
/drivers/gpu/drm/selftests/ |
D | test-drm_mm.c | 374 DRM_RND_STATE(prng, random_seed); in __igt_reserve() 390 order = drm_random_order(count, &prng); in __igt_reserve() 431 drm_random_reorder(order, count, &prng); in __igt_reserve() 571 DRM_RND_STATE(prng, random_seed); in __igt_insert() 588 order = drm_random_order(count, &prng); in __igt_insert() 1520 DRM_RND_STATE(prng, random_seed); in igt_evict() 1541 order = drm_random_order(size, &prng); in igt_evict() 1568 drm_random_reorder(order, size, &prng); in igt_evict() 1582 drm_random_reorder(order, size, &prng); in igt_evict() 1600 drm_random_reorder(order, size, &prng); in igt_evict() [all …]
|
/drivers/crypto/allwinner/sun4i-ss/ |
D | Makefile | 4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
|
/drivers/crypto/allwinner/sun8i-ss/ |
D | Makefile | 3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | Makefile | 4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
|
D | sun8i-ce-core.c | 49 .prng = CE_ALG_PRNG, 66 .prng = CE_ALG_PRNG, 88 .prng = CE_ALG_PRNG_V2, 105 .prng = CE_ALG_PRNG, 122 .prng = CE_ALG_PRNG, 825 if (ce->variant->prng == CE_ID_NOTSUPP) { in sun8i_ce_register_algs()
|
D | sun8i-ce.h | 152 unsigned char prng; member
|
D | sun8i-ce-prng.c | 125 common = ce->variant->prng | CE_COMM_INT; in sun8i_ce_prng_generate()
|