Home
last modified time | relevance | path

Searched refs:random (Results 1 - 25 of 1046) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/
H A Dsigfuz.c14 * test depends on random numbers, and, based on them, it sets different TM
18 * to the sigreturn system call with random data, in order to make sure that
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
155 ucp->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
157 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
159 ucp->uc_link->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
161 ucp->uc_mcontext.gp_regs[PT_TRAP] = random(); in trap_signal_handler()
162 ucp->uc_mcontext.gp_regs[PT_DSISR] = random(); in trap_signal_handler()
163 ucp->uc_mcontext.gp_regs[PT_DAR] = random(); in trap_signal_handler()
164 ucp->uc_mcontext.gp_regs[PT_ORIG_R3] = random(); in trap_signal_handler()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/signal/
H A Dsigfuz.c14 * test depends on random numbers, and, based on them, it sets different TM
18 * to the sigreturn system call with random data, in order to make sure that
153 ucp->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
155 ucp->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
157 ucp->uc_link->uc_mcontext.gp_regs[PT_MSR] = random(); in trap_signal_handler()
159 ucp->uc_link->uc_mcontext.gp_regs[PT_NIP] = random(); in trap_signal_handler()
161 ucp->uc_mcontext.gp_regs[PT_TRAP] = random(); in trap_signal_handler()
162 ucp->uc_mcontext.gp_regs[PT_DSISR] = random(); in trap_signal_handler()
163 ucp->uc_mcontext.gp_regs[PT_DAR] = random(); in trap_signal_handler()
164 ucp->uc_mcontext.gp_regs[PT_ORIG_R3] = random(); in trap_signal_handler()
[all...]
/kernel/linux/linux-5.10/arch/x86/lib/
H A Dkaslr.c56 unsigned long raw, random = get_boot_seed(); in kaslr_get_random_long() local
65 random ^= raw; in kaslr_get_random_long()
74 random ^= raw; in kaslr_get_random_long()
80 random ^= i8254(); in kaslr_get_random_long()
85 : "=a" (random), "=d" (raw) in kaslr_get_random_long()
86 : "a" (random), "rm" (mix_const)); in kaslr_get_random_long()
87 random += raw; in kaslr_get_random_long()
91 return random; in kaslr_get_random_long()
/kernel/linux/linux-6.6/arch/x86/lib/
H A Dkaslr.c56 unsigned long raw, random = get_boot_seed(); in kaslr_get_random_long() local
68 random ^= raw; in kaslr_get_random_long()
78 random ^= raw; in kaslr_get_random_long()
85 random ^= i8254(); in kaslr_get_random_long()
90 : "=a" (random), "=d" (raw) in kaslr_get_random_long()
91 : "a" (random), "rm" (mix_const)); in kaslr_get_random_long()
92 random += raw; in kaslr_get_random_long()
97 return random; in kaslr_get_random_long()
/kernel/linux/linux-5.10/arch/s390/boot/
H A Dkaslr.c56 unsigned long seed, random; in get_random() local
65 cpacf_trng(NULL, 0, (u8 *) &random, sizeof(random)); in get_random()
70 cpacf_prno(CPACF_PRNO_SHA512_DRNG_GEN, &prno, (u8 *) &random, in get_random()
71 sizeof(random), NULL, 0); in get_random()
82 random = seed; in get_random()
83 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, (u8 *) &random, in get_random()
84 (u8 *) &random, sizeof(random)); in get_random()
89 *value = random in get_random()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/
H A Dmemcmp.c105 s1[j] = random(); in testcase()
107 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
108 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
112 change = random() % comp_size; in testcase()
113 rand_s2[change] = random() & 0xff; in testcase()
131 s1[j] = random(); in testcase()
133 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
134 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
139 change = random() % comp_size; in testcase()
140 s2[change] = random() in testcase()
[all...]
H A Dstrlen.c69 c = random() & 0x7f; in testcase()
82 c = random() & 0x7f; in testcase()
96 c = random() & 0x7f; in testcase()
/kernel/linux/linux-6.6/arch/s390/boot/
H A Dkaslr.c57 unsigned long seed, random; in get_random() local
66 cpacf_trng(NULL, 0, (u8 *) &random, sizeof(random)); in get_random()
71 cpacf_prno(CPACF_PRNO_SHA512_DRNG_GEN, &prno, (u8 *) &random, in get_random()
72 sizeof(random), NULL, 0); in get_random()
83 random = seed; in get_random()
84 cpacf_kmc(CPACF_KMC_PRNG, prng.parm_block, (u8 *) &random, in get_random()
85 (u8 *) &random, sizeof(random)); in get_random()
90 *value = random in get_random()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/stringloops/
H A Dmemcmp.c105 s1[j] = random(); in testcase()
107 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
108 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
112 change = random() % comp_size; in testcase()
113 rand_s2[change] = random() & 0xff; in testcase()
131 s1[j] = random(); in testcase()
133 rand_s1 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
134 rand_s2 += random() % MAX_OFFSET_DIFF_S1_S2; in testcase()
139 change = random() % comp_size; in testcase()
140 s2[change] = random() in testcase()
[all...]
H A Dstrlen.c69 c = random() & 0x7f; in testcase()
82 c = random() & 0x7f; in testcase()
96 c = random() & 0x7f; in testcase()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c288 unsigned long offset, random; in kaslr_choose_location() local
297 random = get_boot_seed(dt_ptr); in kaslr_choose_location()
301 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
308 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
338 * Only use the low 8 bits of the random seed in kaslr_choose_location()
340 index = random & 0xFF; in kaslr_choose_location()
344 offset = random % (SZ_64M - kernel_sz); in kaslr_choose_location()
351 * To see if we need to relocate the kernel to a random offse
[all...]
/kernel/linux/linux-6.6/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c286 unsigned long offset, random; in kaslr_choose_location() local
295 random = get_boot_seed(dt_ptr); in kaslr_choose_location()
299 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
306 random = rotate_xor(random, &seed, sizeof(seed)); in kaslr_choose_location()
336 * Only use the low 8 bits of the random seed in kaslr_choose_location()
338 index = random & 0xFF; in kaslr_choose_location()
342 offset = random % (SZ_64M - kernel_sz); in kaslr_choose_location()
349 * To see if we need to relocate the kernel to a random offse
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-gpr.c99 r = random(); in rand_reg()
107 result |= random() << (__LONG_WIDTH__ - 31); in rand_reg()
112 result ^= random() << 16; in rand_reg()
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh16 random=
31 echo "-r: test random lines as well as fence posts"
284 # If the $random flag is set then a random line in the middle of the
303 if [ "$random" -a $width -gt 2 ]; then
319 random=true
/kernel/linux/linux-5.10/arch/xtensa/platforms/iss/
H A Dnetwork.c130 goto random; in setup_etheraddr()
135 goto random; in setup_etheraddr()
140 goto random; in setup_etheraddr()
145 goto random; in setup_etheraddr()
152 random: in setup_etheraddr()
153 pr_info("%s: choosing a random ethernet address\n", in setup_etheraddr()
/kernel/linux/linux-6.6/arch/xtensa/platforms/iss/
H A Dnetwork.c126 goto random; in setup_etheraddr()
131 goto random; in setup_etheraddr()
136 goto random; in setup_etheraddr()
141 goto random; in setup_etheraddr()
149 random: in setup_etheraddr()
150 pr_info("%s: choosing a random ethernet address\n", in setup_etheraddr()
/kernel/linux/linux-5.10/include/linux/
H A Dstackprotector.h7 #include <linux/random.h>
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
H A Dstackprotector.h17 #include <linux/random.h>
32 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/csky/include/asm/
H A Dstackprotector.h5 #include <linux/random.h>
20 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dstackprotector.h16 #include <linux/random.h>
31 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dstackprotector.h18 #include <linux/random.h>
33 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/sh/include/asm/
H A Dstackprotector.h5 #include <linux/random.h>
20 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/riscv/include/asm/
H A Dstackprotector.h6 #include <linux/random.h>
21 /* Try to get a semi random initial value. */ in boot_init_stack_canary()
/kernel/linux/linux-5.10/arch/s390/crypto/
H A Darch_random.c3 * s390 arch random implementation.
11 #include <linux/random.h>
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dstackprotector.h15 #include <linux/random.h>
30 /* Try to get a semi random initial value. */ in boot_init_stack_canary()

Completed in 9 milliseconds

12345678910>>...42