Home
last modified time | relevance | path

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

1234

/Linux-v5.15/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_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
299 * of the prng and subtract it from the reported results. in bench_sync()
301 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
308 /* Make sure the compiler doesn't optimise away the prng call */ in bench_sync()
309 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
314 pr_debug("%s: %lu random evaluations, %lluns/prng\n", in bench_sync()
[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()
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z10/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z14/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z15/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z196/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_z13/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/tools/perf/pmu-events/arch/s390/cf_zec12/
Dcrypto.json6 "BriefDescription": "PRNG Functions",
7 "PublicDescription": "Total number of the PRNG functions issued by the CPU"
13 "BriefDescription": "PRNG Cycles",
14 …otal number of CPU cycles when the DEA/AES coprocessor is busy performing PRNG functions issued by…
20 "BriefDescription": "PRNG Blocked Functions",
21 …"PublicDescription": "Total number of the PRNG functions that are issued by the CPU and are blocke…
27 "BriefDescription": "PRNG Blocked Cycles",
28 …"PublicDescription": "Total number of CPU cycles blocked for the PRNG functions issued by the CPU …
/Linux-v5.15/Documentation/devicetree/bindings/crypto/
Dqcom,prng.txt5 - compatible : should be "qcom,prng" for 8916 etc
6 : should be "qcom,prng-ee" for 8996 and later using EE
7 (Execution Environment) slice of prng
10 - clock-names : "core" clocks all registers, FIFO and circuits in PRNG IP block
15 compatible = "qcom,prng";
Dsamsung-sss.yaml18 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG
19 -- PRNG: Pseudo Random Number Generator
/Linux-v5.15/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()
/Linux-v5.15/crypto/
Dansi_cprng.c3 * PRNG: Pseudo Random Number Generator
4 * Based on NIST Recommended PRNG From ANSI X9.31 Appendix A.2.4 using
308 dbgprint(KERN_CRIT "PRNG: setkey() failed flags=%x\n", in reset_prng_context()
353 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()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/selftests/
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 …]
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()
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_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()
/Linux-v5.15/arch/s390/boot/
Dkaslr.c35 sclp_early_printk("KASLR disabled: CPU has no PRNG\n"); in check_prng()
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-v5.15/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-prng.c3 * sun8i-ce-prng.c - hardware cryptographic offloader for
8 * This file handle the PRNG
89 dev_dbg(ce->dev, "%s PRNG slen=%u dlen=%u todo=%u multi=%u\n", __func__, in sun8i_ce_prng_generate()
124 common = ce->variant->prng | CE_COMM_INT; in sun8i_ce_prng_generate()
144 err = sun8i_ce_run_task(ce, 3, "PRNG"); in sun8i_ce_prng_generate()
Dsun8i-ce.h134 * @prng_t_dlen_in_bytes: Does the request size for PRNG is in
140 * @prng: The CE_ALG_XXX value for the PRNG
153 unsigned char prng; member
304 * struct sun8i_ce_prng_ctx - context for PRNG TFM
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-prng.c3 * sun8i-ss-prng.c - hardware cryptographic offloader for
8 * This file handle the PRNG found in the SS
73 dev_err(ss->dev, "The PRNG is not seeded\n"); in sun8i_ss_prng_generate()
124 /* the PRNG act badly (failing rngtest) without SS_KEY_ADR_REG set */ in sun8i_ss_prng_generate()
139 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate()
/Linux-v5.15/arch/s390/crypto/
Dprng.c9 #define KMSG_COMPONENT "prng"
33 MODULE_DESCRIPTION("s390 PRNG interface");
42 MODULE_PARM_DESC(prng_mode, "PRNG mode: 0 - auto, 1 - TDES, 2 - SHA512");
52 MODULE_PARM_DESC(prng_chunk_size, "PRNG read chunk size in bytes");
62 MODULE_PARM_DESC(prng_reseed_limit, "PRNG reseed limit");
226 pr_debug("prng runs in TDES mode with " in prng_tdes_instantiate()
241 /* initialize the PRNG, add 128 bits of entropy */ in prng_tdes_instantiate()
250 pr_debug("The prng module stopped " in prng_tdes_deinstantiate()
344 pr_err("The prng self test state test " in prng_sha512_selftest()
358 pr_err("The prng self test data test " in prng_sha512_selftest()
[all …]
/Linux-v5.15/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 …]
/Linux-v5.15/drivers/crypto/allwinner/
DKconfig28 bool "Support for Allwinner Security System PRNG"
82 bool "Support for Allwinner Crypto Engine PRNG"
125 bool "Support for Allwinner Security System PRNG"

1234