Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/gt/
Dselftest_migrate.c38 u32 sz, struct rnd_state *prng) in copy() argument
111 int x = i * 1024 + i915_prandom_u32_max_state(1024, prng); in copy()
138 u32 sz, struct rnd_state *prng) in clear() argument
191 int x = i * 1024 + i915_prandom_u32_max_state(1024, prng); in clear()
237 migrate_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_copy() argument
239 return copy(migrate, __migrate_copy, sz, prng); in migrate_copy()
243 global_copy(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in global_copy() argument
245 return copy(migrate, __global_copy, sz, prng); in global_copy()
275 migrate_clear(struct intel_migrate *migrate, u32 sz, struct rnd_state *prng) in migrate_clear() argument
277 return clear(migrate, __migrate_clear, sz, prng); in migrate_clear()
[all …]
Dselftest_rc6.c160 struct rnd_state *prng, in randomised_engines() argument
181 i915_prandom_shuffle(engines, sizeof(*engines), n, prng); in randomised_engines()
192 I915_RND_STATE(prng); in live_rc6_ctx_wa()
199 engines = randomised_engines(gt, &prng, &count); in live_rc6_ctx_wa()
Dselftest_timeline.c68 struct rnd_state prng; member
128 &state->prng); in __mock_hwsp_timeline()
131 &state->prng); in __mock_hwsp_timeline()
160 state.prng = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed); in mock_hwsp_freelist()
287 struct rnd_state prng; in bench_sync() local
301 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
309 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
319 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
324 u64 id = i915_prandom_u64_state(&prng); in bench_sync()
335 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
[all …]
Dselftest_lrc.c1628 struct rnd_state *prng) in garbage() argument
1637 prandom_bytes_state(prng, in garbage()
1657 static int __lrc_garbage(struct intel_engine_cs *engine, struct rnd_state *prng) in __lrc_garbage() argument
1667 hang = garbage(ce, prng); in __lrc_garbage()
1720 I915_RND_STATE(prng); in live_lrc_garbage()
1728 err = __lrc_garbage(engine, &prng); in live_lrc_garbage()
Dselftest_hangcheck.c903 I915_RND_STATE(prng); in active_engine()
942 i915_prandom_u32_max_state(512, &prng), in active_engine()
Dselftest_execlists.c3480 struct rnd_state prng; member
3488 &smoke->prng)]; in smoke_context()
3630 ctx, random_priority(&smoke->prng), in smoke_random()
3648 .prng = I915_RND_STATE_INITIALIZER(i915_selftest.random_seed), in live_preempt_smoke()
/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_client_blt.c146 struct rnd_state *prng) in tiled_blits_create_buffers() argument
175 i915_prandom_u32_max_state(I915_TILING_Y + 1, prng); in tiled_blits_create_buffers()
259 struct rnd_state *prng) in verify_buffer() argument
265 x = i915_prandom_u32_max_state(t->width, prng); in verify_buffer()
266 y = i915_prandom_u32_max_state(t->height, prng); in verify_buffer()
389 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create() argument
427 err = tiled_blits_create_buffers(t, WIDTH, HEIGHT, prng); in tiled_blits_create()
449 struct rnd_state *prng) in tiled_blits_prepare() argument
462 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
463 GEM_BUG_ON(verify_buffer(t, &t->scratch, prng)); in tiled_blits_prepare()
[all …]
Di915_gem_coherency.c293 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine() argument
302 count = i915_prandom_u32_max_state(count, prng); in random_engine()
317 I915_RND_STATE(prng); in igt_gem_coherency()
336 ctx.engine = random_engine(i915, &prng); in igt_gem_coherency()
372 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency()
374 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
Di915_gem_mman.c84 struct rnd_state *prng) in check_partial_mapping() argument
115 page = i915_prandom_u32_max_state(npages, prng); in check_partial_mapping()
436 I915_RND_STATE(prng); in igt_smoke_tiling()
476 i915_prandom_u32_max_state(I915_TILING_Y + 1, &prng); in igt_smoke_tiling()
502 i915_prandom_u32_max_state(max_pitch, &prng); in igt_smoke_tiling()
508 err = check_partial_mapping(obj, &tile, &prng); in igt_smoke_tiling()
Dhuge_pages.c1121 I915_RND_STATE(prng); in igt_write_huge()
1158 order = i915_random_order(count * count, &prng); in igt_write_huge()
1253 static u32 igt_random_size(struct rnd_state *prng, in igt_random_size() argument
1266 size = prandom_u32_state(prng) & mask; in igt_random_size()
1278 I915_RND_STATE(prng); in igt_ppgtt_smoke_huge()
1301 size = igt_random_size(&prng, min, rounddown_pow_of_two(size)); in igt_ppgtt_smoke_huge()
Di915_gem_context.c1377 I915_RND_STATE(prng); in igt_ctx_readonly()
1431 if (prandom_u32_state(&prng) & 1) in igt_ctx_readonly()
1789 I915_RND_STATE(prng); in igt_vm_isolation()
1857 offset = igt_random_offset(&prng, in igt_vm_isolation()
/drivers/gpu/drm/i915/selftests/
Dscatterlist.c278 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()
Dintel_memory_region.c163 I915_RND_STATE(prng); in igt_mock_reserve()
168 order = i915_random_order(count, &prng); in igt_mock_reserve()
182 u64 size = i915_prandom_u32_max_state(chunk_size, &prng); in igt_mock_reserve()
189 offset = igt_random_offset(&prng, 0, chunk_size, size, in igt_mock_reserve()
206 u32 size = i915_prandom_u32_max_state(cur_avail, &prng); in igt_mock_reserve()
241 I915_RND_STATE(prng); in igt_mock_contiguous()
277 target = i915_prandom_u64_state(&prng); in igt_mock_contiguous()
560 I915_RND_STATE(prng); in igt_gpu_write()
584 order = i915_random_order(count * count, &prng); in igt_gpu_write()
601 u32 rng = prandom_u32_state(&prng); in igt_gpu_write()
[all …]
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()
Di915_gem.c48 u32 prng = 0x12345678; in trash_stolen() local
63 prng = next_pseudo_random32(prng); in trash_stolen()
64 iowrite32(prng, &s[x]); in trash_stolen()
Di915_buddy.c279 I915_RND_STATE(prng); in igt_mm_config()
284 prandom_seed_state(&prng, i915_selftest.random_seed); in igt_mm_config()
287 s = 1 + i915_prandom_u32_max_state((BIT(33 - 12)) - 1, &prng); in igt_mm_config()
289 ms = BIT(i915_prandom_u32_max_state(ilog2(s), &prng)); in igt_mm_config()
302 I915_RND_STATE(prng); in igt_buddy_alloc_smoke()
318 order = i915_random_order(mm.max_order + 1, &prng); in igt_buddy_alloc_smoke()
Di915_gem_gtt.c250 I915_RND_SUBSTATE(prng, seed_prng); in lowlevel_hole()
266 order = i915_random_order(count, &prng); in lowlevel_hole()
355 i915_random_reorder(order, count, &prng); in lowlevel_hole()
762 I915_RND_STATE(prng); in drunk_hole()
789 order = i915_random_order(count, &prng); in drunk_hole()
1183 I915_RND_STATE(prng); in igt_ggtt_page()
1224 order = i915_random_order(count, &prng); in igt_ggtt_page()
1240 i915_random_reorder(order, count, &prng); in igt_ggtt_page()
1343 I915_RND_STATE(prng); in igt_gtt_reserve()
1474 offset = igt_random_offset(&prng, in igt_gtt_reserve()
[all …]
Di915_request.c307 I915_RND_STATE(prng); in __igt_breadcrumbs_smoketest()
326 order = i915_random_order(total, &prng); in __igt_breadcrumbs_smoketest()
350 i915_random_reorder(order, total, &prng); in __igt_breadcrumbs_smoketest()
351 count = 1 + i915_prandom_u32_max_state(max_batch, &prng); in __igt_breadcrumbs_smoketest()
/drivers/gpu/drm/selftests/
Dtest-drm_mm.c374 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/
DMakefile4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
/drivers/crypto/allwinner/sun8i-ss/
DMakefile3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
/drivers/crypto/allwinner/sun8i-ce/
DMakefile4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
Dsun8i-ce-core.c49 .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()
Dsun8i-ce-prng.c124 common = ce->variant->prng | CE_COMM_INT; in sun8i_ce_prng_generate()
Dsun8i-ce.h153 unsigned char prng; member