/arch/arm64/kernel/ |
D | kaslr.c | 76 u64 seed, offset, mask, module_range; in kaslr_early_init() local 100 seed = get_kaslr_seed(fdt); in kaslr_early_init() 101 if (!seed) in kaslr_early_init() 124 offset = BIT(VA_BITS_MIN - 3) + (seed & mask); in kaslr_early_init() 127 memstart_offset_seed = seed >> 48; in kaslr_early_init() 165 module_alloc_base += (module_range * (seed & ((1 << 21) - 1))) >> 21; in kaslr_early_init()
|
D | machine_kexec_file.c | 98 u64 seed = get_random_u64(); in setup_dtb() local 99 ret = fdt_setprop_u64(dtb, off, FDT_PROP_KASLR_SEED, seed); in setup_dtb()
|
/arch/s390/crypto/ |
D | arch_random.c | 83 u8 seed[ARCH_PRNG_SEED_SIZE]; in arch_rng_refill_buffer() local 86 cpacf_trng(NULL, 0, seed, sizeof(seed)); in arch_rng_refill_buffer() 90 &prng_wa, NULL, 0, seed, sizeof(seed)); in arch_rng_refill_buffer()
|
D | prng.c | 261 static const u8 seed[] __initconst = { in prng_sha512_selftest() local 339 &ws, NULL, 0, seed, sizeof(seed)); in prng_sha512_selftest() 371 u8 seed[128 + 16]; in prng_sha512_instantiate() local 402 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_instantiate() 411 ret = generate_entropy(seed, seedlen); in prng_sha512_instantiate() 417 get_tod_clock_ext(seed + seedlen); in prng_sha512_instantiate() 422 &prng_data->prnows, NULL, 0, seed, seedlen); in prng_sha512_instantiate() 423 memzero_explicit(seed, sizeof(seed)); in prng_sha512_instantiate() 452 u8 seed[64]; in prng_sha512_reseed() local 458 cpacf_trng(NULL, 0, seed, seedlen); in prng_sha512_reseed() [all …]
|
/arch/s390/boot/ |
D | kaslr.c | 56 unsigned long seed, random; in get_random() local 62 seed = get_tod_clock_fast(); in get_random() 69 (u8 *) &seed, sizeof(seed)); in get_random() 75 *(unsigned long *) prng.parm_block ^= seed; in get_random() 82 random = seed; in get_random()
|
/arch/x86/tools/ |
D | insn_sanity.c | 37 static unsigned int seed; /* Random seed */ variable 105 fprintf(fp, " $ %s -s 0x%x,%lu\n", prog, seed, nr_iter); in dump_stream() 117 if (read(fd, &seed, sizeof(seed)) != sizeof(seed)) in init_random_seed() 189 seed = (unsigned int)strtoul(optarg, &tmp, 0); in parse_args() 219 srand(seed); in parse_args() 266 seed); in main()
|
/arch/ia64/lib/ |
D | carta_random.S | 20 #define seed r32 macro 25 pmpyshr2.u t0 = a, seed, 0 26 pmpyshr2.u t1 = a, seed, 16
|
/arch/s390/include/asm/ |
D | cpacf.h | 418 const u8 *seed, unsigned long seed_len) in cpacf_prno() argument 424 register unsigned long r4 asm("4") = (unsigned long) seed; in cpacf_prno() 432 [seed] "a" (r4), [slen] "d" (r5), [opc] "i" (CPACF_PRNO) in cpacf_prno()
|
/arch/alpha/lib/ |
D | ev6-memcpy.S | 202 ldq_u $3, 0($17) # L : seed (rotating load) of 8 bytes
|
/arch/ia64/kernel/ |
D | perfmon.c | 257 unsigned long seed; /* seed for random-number generator */ member 2663 unsigned long new_seed, old_seed = reg->seed, mask = reg->mask; in pfm_new_counter_value() 2664 extern unsigned long carta_random32 (unsigned long seed); in pfm_new_counter_value() 2672 reg->seed = new_seed; in pfm_new_counter_value() 3105 ctx->ctx_pmds[cnum].seed = req->reg_random_seed; in pfm_write_pmds() 3168 ctx->ctx_pmds[cnum].seed, in pfm_write_pmds()
|
/arch/arm64/crypto/ |
D | sha512-core.S_shipped | 94 eor x28,x21,x22 // magic seed
|
D | sha256-core.S_shipped | 108 eor w28,w21,w22 // magic seed
|
/arch/arm64/ |
D | Kconfig | 1554 random u64 value in /chosen/kaslr-seed at kernel entry.
|