/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_map_lock.c | 37 int rnd = bpf_get_prandom_u32(); local 47 val->var[i] = rnd; 56 q->var[i] = rnd;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | map_lock.c | 24 int vars[17], i, j, rnd, key = 0; local 36 rnd = vars[1]; 38 if (vars[j] == rnd) 41 i, rnd, j, vars[j]); 42 CHECK_FAIL(vars[j] != rnd);
|
/linux-master/drivers/gpu/drm/i915/selftests/ |
H A D | scatterlist.c | 39 struct rnd_state *rnd); 43 struct rnd_state *rnd, 53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); 144 struct rnd_state *rnd, 150 err = expect_pfn_sg(pt, npages_fn, rnd, who, timeout); 167 struct rnd_state *rnd) 174 struct rnd_state *rnd) 181 struct rnd_state *rnd) 188 struct rnd_state *rnd) 190 return 1 + (prandom_u32_state(rnd) 41 expect_pfn_sg(struct pfn_table *pt, npages_fn_t npages_fn, struct rnd_state *rnd, const char *who, unsigned long timeout) argument 142 expect_pfn_sgtable(struct pfn_table *pt, npages_fn_t npages_fn, struct rnd_state *rnd, const char *who, unsigned long timeout) argument 165 one(unsigned long n, unsigned long count, struct rnd_state *rnd) argument 172 grow(unsigned long n, unsigned long count, struct rnd_state *rnd) argument 179 shrink(unsigned long n, unsigned long count, struct rnd_state *rnd) argument 186 random(unsigned long n, unsigned long count, struct rnd_state *rnd) argument 193 random_page_size_pages(unsigned long n, unsigned long count, struct rnd_state *rnd) argument 214 alloc_table(struct pfn_table *pt, unsigned long count, unsigned long max, npages_fn_t npages_fn, struct rnd_state *rnd, int alloc_error) argument [all...] |
H A D | i915_random.c | 34 u64 i915_prandom_u64_state(struct rnd_state *rnd) argument 38 x = prandom_u32_state(rnd); 40 x |= prandom_u32_state(rnd);
|
H A D | i915_random.h | 45 u64 i915_prandom_u64_state(struct rnd_state *rnd);
|
/linux-master/lib/ |
H A D | interval_tree_test.c | 27 static struct rnd_state rnd; variable in typeref:struct:rnd_state 46 u32 b = (prandom_u32_state(&rnd) >> 4) % max_endpoint; 47 u32 a = (prandom_u32_state(&rnd) >> 4) % b; 59 queries[i] = (prandom_u32_state(&rnd) >> 4) % max_endpoint; 81 prandom_seed_state(&rnd, 3141592653589793238ULL);
|
H A D | test_parman.c | 83 struct rnd_state rnd; member in struct:test_parman 134 prandom_seed_state(&test_parman->rnd, 3141592653589793238ULL); 139 return prandom_u32_state(&test_parman->rnd);
|
H A D | rbtree_test.c | 30 static struct rnd_state rnd; variable in typeref:struct:rnd_state 153 nodes[i].key = prandom_u32_state(&rnd); 154 nodes[i].val = prandom_u32_state(&rnd); 254 prandom_seed_state(&rnd, 3141592653589793238ULL);
|
H A D | test_vmalloc.c | 82 unsigned int rnd; local 87 rnd = get_random_u8(); 92 align = 1 << (rnd % 23); 97 size = ((rnd % 10) + 1) * PAGE_SIZE;
|
/linux-master/arch/x86/mm/ |
H A D | mmap.c | 82 static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, argument 105 return PAGE_ALIGN(task_size - gap - rnd); 108 static unsigned long mmap_legacy_base(unsigned long rnd, argument 111 return __TASK_UNMAPPED_BASE(task_size) + rnd;
|
/linux-master/tools/testing/selftests/netfilter/ |
H A D | nft_synproxy.sh | 9 rnd=$(mktemp -u XXXXXXXX) 10 nsr="nsr-$rnd" # synproxy machine 11 ns1="ns1-$rnd" # iperf client 12 ns2="ns2-$rnd" # iperf server
|
H A D | ipip-conntrack-mtu.sh | 26 rnd=$(mktemp -u XXXXXXXX) 29 r_a="ns-ra-$rnd" 30 r_b="ns-rb-$rnd" 31 r_w="ns-rw-$rnd" 32 c_a="ns-ca-$rnd" 33 c_b="ns-cb-$rnd"
|
/linux-master/kernel/ |
H A D | acct.c | 336 int exp, rnd; local 338 exp = rnd = 0; 340 rnd = value & (1 << (EXPSIZE - 1)); /* Round up? */ 348 if (rnd && (++value > MAXFRACT)) { 380 int exp, rnd; local 383 rnd = 0; 385 rnd = value & 1; 393 if (rnd && (++value > MAXFRACT2)) {
|
/linux-master/drivers/gpio/ |
H A D | gpio-menz127.c | 43 unsigned int rnd; local 53 rnd = fls(debounce) - 1; 55 if (rnd && (debounce & BIT(rnd - 1)))
|
/linux-master/arch/s390/mm/ |
H A D | mmap.c | 43 static unsigned long mmap_base_legacy(unsigned long rnd) argument 45 return TASK_UNMAPPED_BASE + rnd; 48 static inline unsigned long mmap_base(unsigned long rnd, argument 71 return PAGE_ALIGN(STACK_TOP - gap - rnd);
|
/linux-master/arch/x86/crypto/ |
H A D | sha512-ssse3-asm.S | 115 .macro SHA512_Round rnd 125 idx = \rnd 150 .macro SHA512_2Sched_2Round_sse rnd 171 idx = \rnd -2 177 idx = \rnd 179 idx = \rnd - 15 223 idx = \rnd + 1 244 idx = \rnd - 7 251 idx =\rnd-16 256 movdqa %xmm0, W_t(\rnd) # Stor [all...] |
H A D | sha512-avx-asm.S | 122 .macro SHA512_Round rnd 131 idx = \rnd 156 .macro SHA512_2Sched_2Round_avx rnd 172 idx = \rnd - 2 174 idx = \rnd - 15 187 idx = \rnd 227 idx = \rnd - 16 229 idx = \rnd - 7 236 idx = \rnd + 1 248 idx = \rnd [all...] |
/linux-master/arch/m68k/math-emu/ |
H A D | fp_arith.c | 80 if (FPDATA->rnd == FPCR_ROUND_RM) 623 fp_roundint(dest, FPDATA->rnd); 666 oldround = FPDATA->rnd; 667 FPDATA->rnd = FPCR_ROUND_RZ; 669 FPDATA->rnd = oldround;
|
/linux-master/lib/kunit/ |
H A D | string-stream-test.c | 230 struct rnd_state rnd; local 243 prandom_seed_state(&rnd, 3141592653589793238ULL); 246 offset = prandom_u32_state(&rnd) % (sizeof(line) - 1); 260 prandom_seed_state(&rnd, 3141592653589793238ULL); 269 offset = prandom_u32_state(&rnd) % (sizeof(line) - 1);
|
/linux-master/mm/ |
H A D | util.c | 399 unsigned long rnd; local 403 rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); 406 rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); 408 return rnd << PAGE_SHIFT; 432 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) argument 441 return PAGE_ALIGN_DOWN(mmap_upper_limit(rlim_stack) - rnd); 459 return PAGE_ALIGN(STACK_TOP - gap - rnd);
|
/linux-master/net/sched/ |
H A D | sch_netem.c | 210 u32 rnd = prandom_u32_state(&q->prng.prng_state); local 213 * Makes a comparison between rnd and the transition 224 if (rnd < clg->a4) { 227 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { 230 } else if (clg->a1 + clg->a4 < rnd) { 236 if (rnd < clg->a5) { 245 if (rnd < clg->a3) 247 else if (clg->a3 < rnd && rnd < cl 333 u32 rnd; local [all...] |
/linux-master/kernel/time/ |
H A D | clockevents.c | 36 u64 rnd; local 40 rnd = (u64) evt->mult - 1; 68 if ((~0ULL - clc > rnd) && 70 clc += rnd;
|
/linux-master/arch/sparc/kernel/ |
H A D | sys_sparc_64.c | 268 unsigned long rnd = 0UL; local 273 rnd = (val % (1UL << (23UL-PAGE_SHIFT))); 275 rnd = (val % (1UL << (30UL-PAGE_SHIFT))); 277 return rnd << PAGE_SHIFT;
|
/linux-master/drivers/md/ |
H A D | dm-flakey.c | 529 u64 rnd = get_random_u64(); local 530 u32 rem = do_div(rnd, PROBABILITY_BASE); 573 u64 rnd = get_random_u64(); local 574 u32 rem = do_div(rnd, PROBABILITY_BASE);
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_utils.c | 479 unsigned int rnd = 0U; local 482 get_random_bytes(&rnd, sizeof(unsigned int)); 484 ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd); 753 unsigned int rnd = 0; local 755 get_random_bytes(&rnd, sizeof(unsigned int)); 757 ucp_0x370 = 0x02020202 | (0xFEFEFEFE & rnd);
|