Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dintel_memory_region.c165 I915_RND_STATE(prng); in igt_mock_reserve()
170 order = i915_random_order(count, &prng); in igt_mock_reserve()
184 u64 size = i915_prandom_u32_max_state(chunk_size, &prng); in igt_mock_reserve()
191 offset = igt_random_offset(&prng, 0, chunk_size, size, in igt_mock_reserve()
208 u32 size = i915_prandom_u32_max_state(cur_avail, &prng); in igt_mock_reserve()
243 I915_RND_STATE(prng); in igt_mock_contiguous()
279 target = i915_prandom_u64_state(&prng); in igt_mock_contiguous()
462 I915_RND_STATE(prng); in igt_mock_max_segment()
478 if (i915_prandom_u64_state(&prng) & 1) in igt_mock_max_segment()
565 I915_RND_STATE(prng); in igt_mock_io_size()
[all …]
Dscatterlist.c282 struct rnd_state prng; in igt_sg_alloc() local
297 prandom_seed_state(&prng, in igt_sg_alloc()
299 err = alloc_table(&pt, sz, sz, *npages, &prng, in igt_sg_alloc()
306 prandom_seed_state(&prng, in igt_sg_alloc()
308 err = expect_pfn_sgtable(&pt, *npages, &prng, in igt_sg_alloc()
338 struct rnd_state prng; in igt_sg_trim() local
340 prandom_seed_state(&prng, i915_selftest.random_seed); in igt_sg_trim()
341 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim()
355 prandom_seed_state(&prng, in igt_sg_trim()
358 *npages, &prng, in igt_sg_trim()
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.c49 u32 prng = 0x12345678; in trash_stolen() local
67 prng = next_pseudo_random32(prng); in trash_stolen()
68 iowrite32(prng, &s[x]); in trash_stolen()
Di915_gem_gtt.c260 I915_RND_SUBSTATE(prng, seed_prng); in lowlevel_hole()
277 order = i915_random_order(count, &prng); in lowlevel_hole()
368 i915_random_reorder(order, count, &prng); in lowlevel_hole()
795 I915_RND_STATE(prng); in drunk_hole()
826 order = i915_random_order(count, &prng); in drunk_hole()
1344 I915_RND_STATE(prng); in igt_ggtt_page()
1388 order = i915_random_order(count, &prng); in igt_ggtt_page()
1404 i915_random_reorder(order, count, &prng); in igt_ggtt_page()
1535 I915_RND_STATE(prng); in igt_gtt_reserve()
1653 offset = igt_random_offset(&prng, in igt_gtt_reserve()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
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 …]
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_tlb.c38 struct rnd_state *prng) in pte_tlbinv() argument
67 addr = igt_random_offset(prng, addr, min(ce->vm->total, BIT_ULL(48)), in pte_tlbinv()
91 addr = igt_random_offset(prng, addr, addr + align, 8, 8); in pte_tlbinv()
231 I915_RND_STATE(prng); in mem_tlbinv()
320 &prng); in mem_tlbinv()
329 &prng); in mem_tlbinv()
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 …]
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_client_blt.c299 struct rnd_state *prng) in tiled_blits_create_buffers() argument
328 i915_prandom_u32_max_state(CLIENT_NUM_TILING_TYPES, prng); in tiled_blits_create_buffers()
425 struct rnd_state *prng) in verify_buffer() argument
431 x = i915_prandom_u32_max_state(t->width, prng); in verify_buffer()
432 y = i915_prandom_u32_max_state(t->height, prng); in verify_buffer()
541 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create() argument
584 err = tiled_blits_create_buffers(t, WIDTH, HEIGHT, prng); in tiled_blits_create()
606 struct rnd_state *prng) in tiled_blits_prepare() argument
619 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare()
620 GEM_BUG_ON(verify_buffer(t, &t->scratch, prng)); in tiled_blits_prepare()
[all …]
Di915_gem_coherency.c291 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine() argument
300 count = i915_prandom_u32_max_state(count, prng); in random_engine()
315 I915_RND_STATE(prng); in igt_gem_coherency()
334 ctx.engine = random_engine(i915, &prng); in igt_gem_coherency()
370 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency()
372 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
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()
/linux-6.6.21/Documentation/devicetree/bindings/crypto/
Dqcom,prng.yaml4 $id: http://devicetree.org/schemas/crypto/qcom,prng.yaml#
15 - qcom,prng # 8916 etc.
16 - qcom,prng-ee # 8996 and later using EE
39 compatible = "qcom,prng";
/linux-6.6.21/crypto/
Dansi_cprng.c353 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_get_random() local
355 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random()
367 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_reset() local
377 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset()
379 if (prng->flags & PRNG_NEED_RESET) in cprng_reset()
389 struct prng_context *prng = crypto_rng_ctx(tfm); in fips_cprng_get_random() local
391 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
401 struct prng_context *prng = crypto_rng_ctx(tfm); in fips_cprng_reset() local
416 rc = get_prng_bytes(rdata, DEFAULT_BLK_SZ, prng, 0); in fips_cprng_reset()
417 prng->rand_data_valid = DEFAULT_BLK_SZ; in fips_cprng_reset()
/linux-6.6.21/arch/s390/boot/
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-6.6.21/net/sched/
Dsch_netem.c108 struct prng { struct
111 } prng; member
187 static u32 get_crandom(struct crndstate *state, struct prng *p) in get_crandom()
210 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state()
275 struct rnd_state *s = &q->prng.prng_state; in loss_gilb_ell()
299 return q->loss && q->loss >= get_crandom(&q->loss_cor, &q->prng); in loss_event()
328 struct prng *prng, in tabledist() argument
338 rnd = get_crandom(state, prng); in tabledist()
460 if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor, &q->prng)) in netem_enqueue()
503 if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor, &q->prng)) { in netem_enqueue()
[all …]
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_mm_test.c346 DRM_RND_STATE(prng, random_seed); in __drm_test_mm_reserve()
362 order = drm_random_order(count, &prng); in __drm_test_mm_reserve()
402 drm_random_reorder(order, count, &prng); in __drm_test_mm_reserve()
529 DRM_RND_STATE(prng, random_seed); in __drm_test_mm_insert()
545 order = drm_random_order(count, &prng); in __drm_test_mm_insert()
1392 DRM_RND_STATE(prng, random_seed); in drm_test_mm_evict()
1410 order = drm_random_order(size, &prng); in drm_test_mm_evict()
1434 drm_random_reorder(order, size, &prng); in drm_test_mm_evict()
1444 drm_random_reorder(order, size, &prng); in drm_test_mm_evict()
1459 drm_random_reorder(order, size, &prng); in drm_test_mm_evict()
[all …]
Ddrm_buddy_test.c306 DRM_RND_STATE(prng, random_seed); in mm_config()
311 prandom_seed_state(&prng, random_seed); in mm_config()
314 s = 1 + drm_prandom_u32_max_state((BIT(33 - 12)) - 1, &prng); in mm_config()
316 ms = BIT(drm_prandom_u32_max_state(ilog2(s), &prng)); in mm_config()
414 DRM_RND_STATE(prng, random_seed); in drm_test_buddy_alloc_smoke()
422 order = drm_random_order(mm.max_order + 1, &prng); in drm_test_buddy_alloc_smoke()
/linux-6.6.21/drivers/crypto/allwinner/sun4i-ss/
DMakefile4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ss/
DMakefile3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ce/
DMakefile4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
Dsun8i-ce-core.c52 .prng = CE_ALG_PRNG,
69 .prng = CE_ALG_PRNG,
91 .prng = CE_ALG_PRNG_V2,
108 .prng = CE_ALG_PRNG,
127 .prng = CE_ALG_PRNG,
144 .prng = CE_ALG_PRNG,
923 if (ce->variant->prng == CE_ID_NOTSUPP) { in sun8i_ce_register_algs()
/linux-6.6.21/arch/s390/crypto/
DMakefile15 obj-$(CONFIG_S390_PRNG) += prng.o
/linux-6.6.21/Documentation/devicetree/bindings/rng/
Dsamsung,exynos4-rng.yaml16 - samsung,exynos5250-prng # for Exynos5250+
/linux-6.6.21/arch/arm/boot/dts/samsung/
Dexynos5.dtsi213 prng: rng@10830400 { label
214 compatible = "samsung,exynos5250-prng";

123