Home
last modified time | relevance | path

Searched full:random (Results 1 – 25 of 3107) sorted by relevance

12345678910>>...125

/kernel/linux/linux-5.10/drivers/char/hw_random/
DKconfig3 # Hardware Random Number Generator (RNG) configuration
7 tristate "Hardware Random Number Generator Core support"
10 Hardware Random Number Generator Core infrastructure.
15 of possibly several hardware random number generators.
17 These hardware random number generators do feed into the
18 kernel's random number generator entropy pool.
25 tristate "Timer IOMEM HW Random Number Generator support"
28 This driver provides kernel-side support for a generic Random
39 tristate "Intel HW Random Number Generator support"
43 This driver provides kernel-side support for the Random Number
[all …]
/kernel/linux/linux-6.6/drivers/char/hw_random/
DKconfig3 # Hardware Random Number Generator (RNG) configuration
7 tristate "Hardware Random Number Generator Core support"
10 Hardware Random Number Generator Core infrastructure.
15 of possibly several hardware random number generators.
17 These hardware random number generators do feed into the
18 kernel's random number generator entropy pool.
25 tristate "Timer IOMEM HW Random Number Generator support"
28 This driver provides kernel-side support for a generic Random
39 tristate "Intel HW Random Number Generator support"
43 This driver provides kernel-side support for the Random Number
[all …]
/kernel/linux/linux-5.10/include/crypto/
Drng.h3 * RNG: Random Number Generator algorithms under the crypto API
17 * struct rng_alg - random number generator definition
20 * random number. The random number generator transform
21 * must generate the random number out of the context
24 * @seed: Seed or reseed the random number generator. With the
25 * invocation of this function call, the random number
27 * random number generator requires a seed for setting
33 * @seedsize: The seed size required for a random number generator
35 * random number generators does not require a seed
64 * DOC: Random number generator API
[all …]
/kernel/linux/linux-6.6/include/crypto/
Drng.h3 * RNG: Random Number Generator algorithms under the crypto API
33 * struct rng_alg - random number generator definition
36 * random number. The random number generator transform
37 * must generate the random number out of the context
40 * @seed: Seed or reseed the random number generator. With the
41 * invocation of this function call, the random number
43 * random number generator requires a seed for setting
50 * @seedsize: The seed size required for a random number generator
52 * random number generators does not require a seed
85 * DOC: Random number generator API
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/
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/
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/Documentation/admin-guide/
Dhw_random.rst2 Hardware random number generators
10 a Random Number Generator (RNG). The software has two parts:
24 /dev/random special files.
30 and read() system calls, you can read random data from
36 data before assuming it is truly random.
54 Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)
62 The Firmware Hub integrates a Random Number Generator (RNG)
63 using thermal noise generated from inherently random quantum
64 mechanical properties of silicon. When not generating new random
97 Random Number Generator
[all …]
/kernel/linux/linux-5.10/arch/x86/lib/
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-5.10/Documentation/admin-guide/
Dhw_random.rst2 Linux support for random number generator in i8xx chipsets
10 a Random Number Generator (RNG). The software has two parts:
24 /dev/random special files.
30 and read() system calls, you can read random data from
36 data before assuming it is truly random.
54 Hardware driver for Intel/AMD/VIA Random Number Generators (RNG)
62 The Firmware Hub integrates a Random Number Generator (RNG)
63 using thermal noise generated from inherently random quantum
64 mechanical properties of silicon. When not generating new random
97 Random Number Generator
[all …]
/kernel/linux/linux-6.6/arch/x86/lib/
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-6.6/tools/testing/selftests/powerpc/stringloops/
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() & 0xff; in testcase()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/stringloops/
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() & 0xff; in testcase()
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Drandom.c29 * efi_get_random_bytes() - fill a buffer with random bytes
31 * @out: caller allocated buffer to receive the random bytes
34 * EFI_RNG_PROTOCOL or there are not enough random bytes available to fill
53 * efi_random_get_seed() - provide random seed as configuration table
55 * The EFI_RNG_PROTOCOL is used to read random bytes. These random bytes are
57 * for the initialization of its pseudo random number generator.
59 * If the EFI_RNG_PROTOCOL is not available or there are not enough random bytes
/kernel/linux/linux-5.10/arch/s390/boot/
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 % limit; in get_random()
115 * addresses we generate random value just once. For that we need to build a
/kernel/linux/linux-6.6/arch/s390/boot/
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 % limit; in get_random()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/verifier/
Dld_dw.c2 "ld_dw: xor semi-random 64 bit imms, test 1",
11 "ld_dw: xor semi-random 64 bit imms, test 2",
20 "ld_dw: xor semi-random 64 bit imms, test 3",
29 "ld_dw: xor semi-random 64 bit imms, test 4",
38 "ld_dw: xor semi-random 64 bit imms, test 5",
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/
Dld_dw.c2 "ld_dw: xor semi-random 64 bit imms, test 1",
11 "ld_dw: xor semi-random 64 bit imms, test 2",
20 "ld_dw: xor semi-random 64 bit imms, test 3",
29 "ld_dw: xor semi-random 64 bit imms, test 4",
38 "ld_dw: xor semi-random 64 bit imms, test 5",
/kernel/liteos_a/drivers/char/random/
DKconfig2 bool "Enable random"
6 Answer Y to support random.
9 bool "Select hw random"
12 Answer Y to select hw random.
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
Drandom.c29 * efi_get_random_bytes() - fill a buffer with random bytes
31 * @out: caller allocated buffer to receive the random bytes
34 * EFI_RNG_PROTOCOL or there are not enough random bytes available to fill
53 * efi_random_get_seed() - provide random seed as configuration table
55 * The EFI_RNG_PROTOCOL is used to read random bytes. These random bytes are
57 * for the initialization of its pseudo random number generator.
59 * If the EFI_RNG_PROTOCOL is not available or there are not enough random bytes
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py6 import random
16 objects, pool, tcbind and portpool. Provide an interface to get random
19 - random size
22 - random pool number
23 - random threshold
26 - random threshold
49 th = random.randint(3, 16)
67 return arr[random.randint(0, len(arr) - 1)]
223 # For each pool, set random size and static threshold type
296 # Bind each port and unicast TC (TCs < 8) to a random pool and a random
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py6 import random
16 objects, pool, tcbind and portpool. Provide an interface to get random
19 - random size
22 - random pool number
23 - random threshold
26 - random threshold
49 th = random.randint(3, 16)
67 return arr[random.randint(0, len(arr) - 1)]
223 # For each pool, set random size and static threshold type
296 # Bind each port and unicast TC (TCs < 8) to a random pool and a random
[all …]
/kernel/linux/linux-5.10/lib/
Duuid.c14 #include <linux/random.h>
25 * generate_random_uuid - generate a random UUID
28 * Random UUID interface
36 /* Set UUID version to 4 --- truly random generation */ in generate_random_uuid()
46 /* Set GUID version to 4 --- truly random generation */ in generate_random_guid()
63 /* version 4 : random generation */ in guid_gen()
71 /* version 4 : random generation */ in uuid_gen()
/kernel/linux/linux-6.6/lib/
Duuid.c14 #include <linux/random.h>
25 * generate_random_uuid - generate a random UUID
28 * Random UUID interface
36 /* Set UUID version to 4 --- truly random generation */ in generate_random_uuid()
46 /* Set GUID version to 4 --- truly random generation */ in generate_random_guid()
63 /* version 4 : random generation */ in guid_gen()
71 /* version 4 : random generation */ in uuid_gen()
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/
Ddm-zoned.rst11 device-side performance degradation due to excessive random writes on
53 zones of the device may be used also for buffering user random writes.
56 reused for buffering incoming random writes.
75 zone used to buffer random modification to the data zone.
95 chunk, resulting in native random write performance similar to a regular
177 0 <size> zoned <nr_zones> zones <nr_unmap_rnd>/<nr_rnd> random <nr_unmap_seq>/<nr_seq> sequential
180 of unmapped (ie free) random zones, <nr_rnd> the total number of zones,
185 percent free random zones. In order to start the reclaim process manually
193 will start the reclaim process and random zones will be moved to sequential
/kernel/linux/linux-6.6/Documentation/admin-guide/device-mapper/
Ddm-zoned.rst11 device-side performance degradation due to excessive random writes on
53 zones of the device may be used also for buffering user random writes.
56 reused for buffering incoming random writes.
75 zone used to buffer random modification to the data zone.
95 chunk, resulting in native random write performance similar to a regular
177 0 <size> zoned <nr_zones> zones <nr_unmap_rnd>/<nr_rnd> random <nr_unmap_seq>/<nr_seq> sequential
180 of unmapped (ie free) random zones, <nr_rnd> the total number of zones,
185 percent free random zones. In order to start the reclaim process manually
193 will start the reclaim process and random zones will be moved to sequential

12345678910>>...125