Home
last modified time | relevance | path

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

1234567

/kernel/linux/linux-5.10/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";
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/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 …
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_client_blt.c23 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 …]
Di915_gem_object_blt.c199 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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/crypto/
Dansi_cprng.c3 * PRNG: Pseudo Random Number Generator
4 * Based on NIST Recommended PRNG From ANSI X9.31 Appendix A.2.4 using
307 dbgprint(KERN_CRIT "PRNG: setkey() failed flags=%x\n", in reset_prng_context()
352 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_get_random() local
354 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random()
366 struct prng_context *prng = crypto_rng_ctx(tfm); in cprng_reset() local
376 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset()
378 if (prng->flags & PRNG_NEED_RESET) in cprng_reset()
388 struct prng_context *prng = crypto_rng_ctx(tfm); in fips_cprng_get_random() local
390 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
[all …]
/kernel/linux/linux-6.6/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";
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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.c139 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 …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
122 common = ce->variant->prng | CE_COMM_INT; in sun8i_ce_prng_generate()
142 err = sun8i_ce_run_task(ce, 3, "PRNG"); in sun8i_ce_prng_generate()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dselftest_timeline.c46 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
269 * of the prng and subtract it from the reported results. in bench_sync()
271 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync()
278 /* Make sure the compiler doesn't optimise away the prng call */ in bench_sync()
279 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync()
284 pr_debug("%s: %lu random evaluations, %lluns/prng\n", in bench_sync()
[all …]
/kernel/linux/linux-5.10/arch/s390/boot/
Dkaslr.c34 sclp_early_printk("KASLR disabled: CPU has no PRNG\n"); in check_prng()
47 struct prng_parm prng = { in get_random() local
75 *(unsigned long *) prng.parm_block ^= seed; in get_random()
77 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, in get_random()
80 memcpy(prng.parm_block, entropy, sizeof(entropy)); in get_random()
83 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, (u8 *) &random, in get_random()
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-prng.c3 * sun8i-ce-prng.c - hardware cryptographic offloader for
8 * This file handle the PRNG
91 dev_dbg(ce->dev, "%s PRNG slen=%u dlen=%u todo=%u multi=%u\n", __func__, in sun8i_ce_prng_generate()
126 common = ce->variant->prng | CE_COMM_INT; in sun8i_ce_prng_generate()
146 err = sun8i_ce_run_task(ce, 3, "PRNG"); in sun8i_ce_prng_generate()
/kernel/linux/linux-5.10/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
75 dev_err(ss->dev, "The PRNG is not seeded\n"); in sun8i_ss_prng_generate()
126 /* the PRNG act badly (failing rngtest) without SS_KEY_ADR_REG set */ in sun8i_ss_prng_generate()
141 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate()
/kernel/linux/linux-6.6/drivers/crypto/caam/
Dcaamprng.c3 * Driver to expose SEC4 PRNG via crypto RNG API
27 /* prng per-device context */
55 print_hex_dump_debug("prng reseed desc@: ", DUMP_PREFIX_ADDRESS, in caam_init_reseed_desc()
70 print_hex_dump_debug("prng job desc@: ", DUMP_PREFIX_ADDRESS, in caam_init_prng_desc()
193 .cra_driver_name = "prng-caam",

1234567