| /linux/drivers/gpu/drm/i915/gt/ |
| H A 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 …]
|
| H A 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 …]
|
| /linux/arch/s390/boot/ |
| H A D | kaslr.c | 35 boot_warn("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/drivers/crypto/caam/ |
| H A 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/drivers/crypto/allwinner/sun8i-ss/ |
| H A 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()
|
| H A D | Makefile | 3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
|
| /linux/tools/perf/pmu-events/arch/s390/cf_z14/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_z13/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_z10/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_zec12/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_z196/ |
| H A 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/net/sched/ |
| H A D | sch_netem.c | 111 struct prng { struct 114 } prng; member 190 static u32 get_crandom(struct crndstate *state, struct prng *p) in get_crandom() 213 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state() 278 struct rnd_state *s = &q->prng.prng_state; in loss_gilb_ell() 302 return q->loss && q->loss >= get_crandom(&q->loss_cor, &q->prng); in loss_event() 331 struct prng *prng, in tabledist() argument 341 rnd = get_crandom(state, prng); in tabledist() 463 if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor, &q->prng)) in netem_enqueue() 498 if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor, &q->prng)) { in netem_enqueue() [all …]
|
| /linux/tools/perf/pmu-events/arch/s390/cf_z16/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_z15/ |
| H A 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/tools/perf/pmu-events/arch/s390/cf_z17/ |
| H A 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/drivers/gpu/drm/i915/gem/selftests/ |
| H A 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/drivers/crypto/allwinner/ |
| H A 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"
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_syncmap.c | 204 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/Documentation/devicetree/bindings/crypto/ |
| H A D | samsung-sss.yaml | 18 -- SHA-1/SHA-256/MD5/HMAC (SHA-1/SHA-256/MD5)/PRNG 19 -- PRNG: Pseudo Random Number Generator
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_bo.c | 429 kunit_info(test, "Looks like PRNG is out of sync.\n"); in shrink_test_verify() 454 struct rnd_state prng; in shrink_test_run_device() local 459 prandom_seed_state(&prng, rand_seed); in shrink_test_run_device() 527 int ret = shrink_test_fill_random(bo, &prng, link); in shrink_test_run_device() 559 prandom_seed_state(&prng, rand_seed); in shrink_test_run_device() 581 failed = shrink_test_verify(test, bo, count, &prng, link); in shrink_test_run_device()
|
| /linux/drivers/crypto/ |
| H A D | qcom-rng.c | 132 /* Enable PRNG only if it is not already enabled */ in qcom_rng_enable() 256 { .compatible = "qcom,prng", .data = &qcom_prng_match_data }, 257 { .compatible = "qcom,prng-ee", .data = &qcom_prng_ee_match_data },
|
| /linux/mm/kasan/ |
| H A D | sw_tags.c | 61 * and we did an intentional trade-off to use a PRNG. This non-atomic RMW 63 * PRNG at unpredictable points do only good.
|
| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | Makefile | 4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
|
| /linux/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | Makefile | 4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5.dtsi | 213 prng: rng@10830400 { label 214 compatible = "samsung,exynos5250-prng";
|