Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 25 of 49) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dscatterlist.c39 struct rnd_state *rnd);
43 struct rnd_state *rnd, in expect_pfn_sg() argument
53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); in expect_pfn_sg()
144 struct rnd_state *rnd, in expect_pfn_sgtable() argument
150 err = expect_pfn_sg(pt, npages_fn, rnd, who, timeout); in expect_pfn_sgtable()
167 struct rnd_state *rnd) in one() argument
174 struct rnd_state *rnd) in grow() argument
181 struct rnd_state *rnd) in shrink() argument
188 struct rnd_state *rnd) in random() argument
190 return 1 + (prandom_u32_state(rnd) % 1024); in random()
[all …]
Di915_random.c34 u64 i915_prandom_u64_state(struct rnd_state *rnd) in i915_prandom_u64_state() argument
38 x = prandom_u32_state(rnd); in i915_prandom_u64_state()
40 x |= prandom_u32_state(rnd); in i915_prandom_u64_state()
Di915_random.h45 u64 i915_prandom_u64_state(struct rnd_state *rnd);
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dmap_lock.c21 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local
33 rnd = vars[1]; in parallel_map_access()
35 if (vars[j] == rnd) in parallel_map_access()
38 i, rnd, j, vars[j]); in parallel_map_access()
39 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()
/kernel/linux/linux-5.10/lib/
Dinterval_tree_test.c27 static struct rnd_state rnd; variable
46 u32 b = (prandom_u32_state(&rnd) >> 4) % max_endpoint; in init()
47 u32 a = (prandom_u32_state(&rnd) >> 4) % b; in init()
59 queries[i] = (prandom_u32_state(&rnd) >> 4) % max_endpoint; in init()
81 prandom_seed_state(&rnd, 3141592653589793238ULL); in interval_tree_test_init()
Dtest_vmalloc.c83 unsigned long size, align, rnd; in random_size_align_alloc_test() local
88 get_random_bytes(&rnd, sizeof(rnd)); in random_size_align_alloc_test()
93 align = 1 << (rnd % 23); in random_size_align_alloc_test()
98 size = ((rnd % 10) + 1) * PAGE_SIZE; in random_size_align_alloc_test()
442 unsigned int rnd; in shuffle_array() local
446 get_random_bytes(&rnd, sizeof(rnd)); in shuffle_array()
449 j = rnd % i; in shuffle_array()
Dtest_parman.c83 struct rnd_state rnd; member
134 prandom_seed_state(&test_parman->rnd, 3141592653589793238ULL); in test_parman_rnd_init()
139 return prandom_u32_state(&test_parman->rnd); in test_parman_rnd_get()
Drbtree_test.c30 static struct rnd_state rnd; variable
153 nodes[i].key = prandom_u32_state(&rnd); in init()
154 nodes[i].val = prandom_u32_state(&rnd); in init()
254 prandom_seed_state(&rnd, 3141592653589793238ULL); in rbtree_test_init()
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dmmap.c41 unsigned long shift, rnd; in arch_mmap_rnd() local
48 rnd = get_random_long() % (1ul << shift); in arch_mmap_rnd()
50 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
65 static inline unsigned long mmap_base(unsigned long rnd, in mmap_base() argument
80 return PAGE_ALIGN(DEFAULT_MAP_WINDOW - gap - rnd); in mmap_base()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_map_lock.c37 int rnd = bpf_get_prandom_u32(); in bpf_map_lock_test() local
47 val->var[i] = rnd; in bpf_map_lock_test()
56 q->var[i] = rnd; in bpf_map_lock_test()
/kernel/linux/linux-5.10/arch/x86/mm/
Dmmap.c82 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, in mmap_base() argument
105 return PAGE_ALIGN(task_size - gap - rnd); in mmap_base()
108 static unsigned long mmap_legacy_base(unsigned long rnd, in mmap_legacy_base() argument
111 return __TASK_UNMAPPED_BASE(task_size) + rnd; in mmap_legacy_base()
/kernel/linux/linux-5.10/arch/s390/mm/
Dmmap.c43 static unsigned long mmap_base_legacy(unsigned long rnd) in mmap_base_legacy() argument
45 return TASK_UNMAPPED_BASE + rnd; in mmap_base_legacy()
48 static inline unsigned long mmap_base(unsigned long rnd, in mmap_base() argument
71 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-menz127.c43 unsigned int rnd; in men_z127_debounce() local
53 rnd = fls(debounce) - 1; in men_z127_debounce()
55 if (rnd && (debounce & BIT(rnd - 1))) in men_z127_debounce()
/kernel/linux/linux-5.10/kernel/
Dacct.c317 int exp, rnd; in encode_comp_t() local
319 exp = rnd = 0; in encode_comp_t()
321 rnd = value & (1 << (EXPSIZE - 1)); /* Round up? */ in encode_comp_t()
329 if (rnd && (++value > MAXFRACT)) { in encode_comp_t()
361 int exp, rnd; in encode_comp2_t() local
364 rnd = 0; in encode_comp2_t()
366 rnd = value & 1; in encode_comp2_t()
374 if (rnd && (++value > MAXFRACT2)) { in encode_comp2_t()
/kernel/linux/linux-5.10/arch/x86/crypto/
Dsha512-ssse3-asm.S118 .macro SHA512_Round rnd argument
128 idx = \rnd
153 .macro SHA512_2Sched_2Round_sse rnd argument
174 idx = \rnd -2
180 idx = \rnd
182 idx = \rnd - 15
226 idx = \rnd + 1
247 idx = \rnd - 7
254 idx =\rnd-16
259 movdqa %xmm0, W_t(\rnd) # Store scheduled qwords
[all …]
Dsha512-avx-asm.S125 .macro SHA512_Round rnd argument
134 idx = \rnd
159 .macro SHA512_2Sched_2Round_avx rnd argument
175 idx = \rnd - 2
177 idx = \rnd - 15
190 idx = \rnd
230 idx = \rnd - 16
232 idx = \rnd - 7
239 idx = \rnd + 1
251 idx = \rnd
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Defi-stub.c280 u32 rnd; in efi_pe_entry() local
282 status = efi_get_random_bytes(sizeof(rnd), (u8 *)&rnd); in efi_pe_entry()
285 (((headroom >> 21) * rnd) >> (32 - 21)); in efi_pe_entry()
/kernel/linux/linux-5.10/net/sched/
Dsch_netem.c203 u32 rnd = prandom_u32(); in loss_4state() local
217 if (rnd < clg->a4) { in loss_4state()
220 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { in loss_4state()
223 } else if (clg->a1 + clg->a4 < rnd) { in loss_4state()
229 if (rnd < clg->a5) { in loss_4state()
238 if (rnd < clg->a3) in loss_4state()
240 else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { in loss_4state()
242 } else if (clg->a2 + clg->a3 < rnd) { in loss_4state()
324 u32 rnd; in tabledist() local
329 rnd = get_crandom(state); in tabledist()
[all …]
/kernel/linux/linux-5.10/mm/
Dutil.c378 unsigned long rnd; in arch_mmap_rnd() local
382 rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); in arch_mmap_rnd()
385 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); in arch_mmap_rnd()
387 return rnd << PAGE_SHIFT; in arch_mmap_rnd()
408 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) in mmap_base() argument
426 return PAGE_ALIGN(STACK_TOP - gap - rnd); in mmap_base()
/kernel/linux/linux-5.10/arch/m68k/math-emu/
Dfp_arith.c83 if (FPDATA->rnd == FPCR_ROUND_RM) in fp_fadd()
636 fp_roundint(dest, FPDATA->rnd); in fp_fint()
681 oldround = FPDATA->rnd; in fp_fscale()
682 FPDATA->rnd = FPCR_ROUND_RZ; in fp_fscale()
684 FPDATA->rnd = oldround; in fp_fscale()
/kernel/uniproton/src/security/
DCMakeLists.txt2 add_subdirectory(rnd)
DKconfig4 bool "Whether support user set rnd or not"
/kernel/linux/linux-5.10/kernel/time/
Dclockevents.c36 u64 rnd; in cev_delta2ns() local
40 rnd = (u64) evt->mult - 1; in cev_delta2ns()
68 if ((~0ULL - clc > rnd) && in cev_delta2ns()
70 clc += rnd; in cev_delta2ns()
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_utils.c479 unsigned int rnd = 0U; in hw_atl_utils_init_ucp() local
482 get_random_bytes(&rnd, sizeof(unsigned int)); in hw_atl_utils_init_ucp()
484 ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd); in hw_atl_utils_init_ucp()
753 unsigned int rnd = 0; in hw_atl_utils_get_mac_permanent() local
755 get_random_bytes(&rnd, sizeof(unsigned int)); in hw_atl_utils_get_mac_permanent()
757 ucp_0x370 = 0x02020202 | (0xFEFEFEFE & rnd); in hw_atl_utils_get_mac_permanent()
/kernel/uniproton/doc/design/
Darchitecture_design.md38 | | security | rnd | 随机化功能 |

12