Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/i915/gt/
H A 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 …]
H A 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
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 Dkaslr.c35 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 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",
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c3 * 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 DMakefile3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o
/linux/tools/perf/pmu-events/arch/s390/cf_z14/
H A Dcrypto.json6 "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 Dcrypto.json6 "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 Dcrypto.json6 "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 Dcrypto.json6 "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 Dcrypto.json6 "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 Dsch_netem.c111 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 Dcrypto6.json6 "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 Dcrypto6.json6 "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 Dcrypto6.json6 "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 Di915_gem_coherency.c289 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 DKconfig28 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 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/Documentation/devicetree/bindings/crypto/
H A Dsamsung-sss.yaml18 -- 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 Dxe_bo.c429 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 Dqcom-rng.c132 /* 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/drivers/crypto/allwinner/sun4i-ss/
H A DMakefile4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
/linux/mm/kasan/
H A Dsw_tags.c61 * 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/sun8i-ce/
H A DMakefile4 sun8i-ce-$(CONFIG_CRYPTO_DEV_SUN8I_CE_PRNG) += sun8i-ce-prng.o
/linux/arch/arm/boot/dts/samsung/
H A Dexynos5.dtsi213 prng: rng@10830400 { label
214 compatible = "samsung,exynos5250-prng";

12