/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | selftest_migrate.c | 42 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 …]
|
D | selftest_timeline.c | 70 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 301 * of the prng and subtract it from the reported results. in bench_sync() 303 prandom_seed_state(&prng, i915_selftest.random_seed); in bench_sync() 310 /* Make sure the compiler doesn't optimise away the prng call */ in bench_sync() 311 WRITE_ONCE(x, prandom_u32_state(&prng)); in bench_sync() 316 pr_debug("%s: %lu random evaluations, %lluns/prng\n", in bench_sync() [all …]
|
D | selftest_rc6.c | 160 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-6.12.1/drivers/gpu/drm/i915/selftests/ |
D | intel_memory_region.c | 165 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 …]
|
D | scatterlist.c | 282 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()
|
D | i915_gem.c | 49 u32 prng = 0x12345678; in trash_stolen() local 67 prng = next_pseudo_random32(prng); in trash_stolen() 68 iowrite32(prng, &s[x]); in trash_stolen()
|
/linux-6.12.1/crypto/ |
D | ansi_cprng.c | 3 * 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-6.12.1/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_client_blt.c | 296 struct rnd_state *prng) in tiled_blits_create_buffers() argument 325 i915_prandom_u32_max_state(CLIENT_NUM_TILING_TYPES, prng); in tiled_blits_create_buffers() 416 struct rnd_state *prng) in verify_buffer() argument 422 x = i915_prandom_u32_max_state(t->width, prng); in verify_buffer() 423 y = i915_prandom_u32_max_state(t->height, prng); in verify_buffer() 532 tiled_blits_create(struct intel_engine_cs *engine, struct rnd_state *prng) in tiled_blits_create() argument 575 err = tiled_blits_create_buffers(t, WIDTH, HEIGHT, prng); in tiled_blits_create() 597 struct rnd_state *prng) in tiled_blits_prepare() argument 610 fill_scratch(t, map, prandom_u32_state(prng)); in tiled_blits_prepare() 611 GEM_BUG_ON(verify_buffer(t, &t->scratch, prng)); in tiled_blits_prepare() [all …]
|
D | i915_gem_coherency.c | 289 random_engine(struct drm_i915_private *i915, struct rnd_state *prng) in random_engine() argument 298 count = i915_prandom_u32_max_state(count, prng); in random_engine() 313 I915_RND_STATE(prng); in igt_gem_coherency() 332 ctx.engine = random_engine(i915, &prng); in igt_gem_coherency() 368 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency() 370 values[n] = prandom_u32_state(&prng); in igt_gem_coherency()
|
/linux-6.12.1/Documentation/devicetree/bindings/crypto/ |
D | qcom,prng.yaml | 4 $id: http://devicetree.org/schemas/crypto/qcom,prng.yaml# 16 - qcom,prng # 8916 etc. 17 - qcom,prng-ee # 8996 and later using EE 59 compatible = "qcom,prng";
|
/linux-6.12.1/arch/s390/boot/ |
D | kaslr.c | 35 boot_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-6.12.1/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-prng.c | 3 * 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()
|
/linux-6.12.1/drivers/gpu/drm/tests/ |
D | drm_buddy_test.c | 27 DRM_RND_STATE(prng, random_seed); in drm_test_buddy_alloc_range_bias() 35 ps = roundup_pow_of_two(prandom_u32_state(&prng) % bias_size); in drm_test_buddy_alloc_range_bias() 45 order = drm_random_order(count, &prng); in drm_test_buddy_alloc_range_bias() 121 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 143 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 180 bias_start = round_up(prandom_u32_state(&prng) % (mm_size - ps), ps); in drm_test_buddy_alloc_range_bias() 181 bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps); in drm_test_buddy_alloc_range_bias() 186 u32 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 206 bias_start -= round_up(prandom_u32_state(&prng) % bias_start, ps); in drm_test_buddy_alloc_range_bias() 208 bias_end += round_up(prandom_u32_state(&prng) % (mm_size - bias_end), ps); in drm_test_buddy_alloc_range_bias() [all …]
|
/linux-6.12.1/arch/s390/crypto/ |
D | prng.c | 9 #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-6.12.1/drivers/crypto/caam/ |
D | caamprng.c | 3 * 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",
|
/linux-6.12.1/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-prng.c | 3 * sun8i-ss-prng.c - hardware cryptographic offloader for 8 * This file handle the PRNG found in the SS 76 dev_err(ss->dev, "The PRNG is not seeded\n"); in sun8i_ss_prng_generate() 129 /* the PRNG act badly (failing rngtest) without SS_KEY_ADR_REG set */ in sun8i_ss_prng_generate() 144 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate()
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z13/ |
D | crypto.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z10/ |
D | crypto.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z14/ |
D | crypto.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z196/ |
D | crypto.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_zec12/ |
D | crypto.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/net/sched/ |
D | sch_netem.c | 108 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() 458 if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor, &q->prng)) in netem_enqueue() 493 if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor, &q->prng)) { in netem_enqueue() [all …]
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z15/ |
D | crypto6.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/tools/perf/pmu-events/arch/s390/cf_z16/ |
D | crypto6.json | 6 "BriefDescription": "PRNG Function Count", 13 "BriefDescription": "PRNG Cycle Count", 20 "BriefDescription": "PRNG Blocked Function Count", 27 "BriefDescription": "PRNG Blocked Cycle Count",
|
/linux-6.12.1/drivers/crypto/allwinner/ |
D | Kconfig | 28 bool "Support for Allwinner Security System PRNG" 82 bool "Support for Allwinner Crypto Engine PRNG" 125 bool "Support for Allwinner Security System PRNG"
|