rnd 11815 arch/m68k/ifpsp060/src/fpsp.S # if the rnd mode is anything but RZ, then we have to re-do the above rnd 8246 arch/m68k/ifpsp060/src/pfpsp.S # if the rnd mode is anything but RZ, then we have to re-do the above rnd 102 arch/m68k/include/asm/math-emu.h unsigned short rnd; rnd 83 arch/m68k/math-emu/fp_arith.c if (FPDATA->rnd == FPCR_ROUND_RM) rnd 636 arch/m68k/math-emu/fp_arith.c fp_roundint(dest, FPDATA->rnd); rnd 681 arch/m68k/math-emu/fp_arith.c oldround = FPDATA->rnd; rnd 682 arch/m68k/math-emu/fp_arith.c FPDATA->rnd = FPCR_ROUND_RZ; rnd 684 arch/m68k/math-emu/fp_arith.c FPDATA->rnd = oldround; rnd 572 arch/mips/include/asm/octeon/cvmx-pow-defs.h uint64_t rnd:8; rnd 574 arch/mips/include/asm/octeon/cvmx-pow-defs.h uint64_t rnd:8; rnd 125 arch/parisc/kernel/module.c #define lrsel(v,a) (((v)+rnd(a))>>11) rnd 127 arch/parisc/kernel/module.c #define rrsel(v,a) ((((v)+rnd(a))&0x7ff)+((a)-rnd(a))) rnd 219 arch/parisc/kernel/sys_parisc.c unsigned long rnd = 0; rnd 222 arch/parisc/kernel/sys_parisc.c rnd = get_random_int() & MMAP_RND_MASK; rnd 224 arch/parisc/kernel/sys_parisc.c return rnd << PAGE_SHIFT; rnd 2154 arch/powerpc/kernel/process.c unsigned long rnd = 0; rnd 2158 arch/powerpc/kernel/process.c rnd = (get_random_long() % (1UL<<(23-PAGE_SHIFT))); rnd 2160 arch/powerpc/kernel/process.c rnd = (get_random_long() % (1UL<<(30-PAGE_SHIFT))); rnd 2162 arch/powerpc/kernel/process.c return rnd << PAGE_SHIFT; rnd 41 arch/powerpc/mm/mmap.c unsigned long shift, rnd; rnd 48 arch/powerpc/mm/mmap.c rnd = get_random_long() % (1ul << shift); rnd 50 arch/powerpc/mm/mmap.c return rnd << PAGE_SHIFT; rnd 65 arch/powerpc/mm/mmap.c static inline unsigned long mmap_base(unsigned long rnd, rnd 80 arch/powerpc/mm/mmap.c return PAGE_ALIGN(DEFAULT_MAP_WINDOW - gap - rnd); rnd 44 arch/s390/mm/mmap.c static unsigned long mmap_base_legacy(unsigned long rnd) rnd 46 arch/s390/mm/mmap.c return TASK_UNMAPPED_BASE + rnd; rnd 49 arch/s390/mm/mmap.c static inline unsigned long mmap_base(unsigned long rnd, rnd 72 arch/s390/mm/mmap.c return PAGE_ALIGN(STACK_TOP - gap - rnd); rnd 268 arch/sparc/kernel/sys_sparc_64.c unsigned long rnd = 0UL; rnd 273 arch/sparc/kernel/sys_sparc_64.c rnd = (val % (1UL << (23UL-PAGE_SHIFT))); rnd 275 arch/sparc/kernel/sys_sparc_64.c rnd = (val % (1UL << (30UL-PAGE_SHIFT))); rnd 277 arch/sparc/kernel/sys_sparc_64.c return rnd << PAGE_SHIFT; rnd 80 arch/x86/mm/mmap.c static unsigned long mmap_base(unsigned long rnd, unsigned long task_size, rnd 103 arch/x86/mm/mmap.c return PAGE_ALIGN(task_size - gap - rnd); rnd 106 arch/x86/mm/mmap.c static unsigned long mmap_legacy_base(unsigned long rnd, rnd 109 arch/x86/mm/mmap.c return __TASK_UNMAPPED_BASE(task_size) + rnd; rnd 1063 drivers/crypto/ccp/ccp-dev-v5.c u32 rnd; rnd 1070 drivers/crypto/ccp/ccp-dev-v5.c rnd = ioread32(ccp->io_regs + TRNG_OUT_REG); rnd 1071 drivers/crypto/ccp/ccp-dev-v5.c iowrite32(rnd, ccp->io_regs + CMD5_AES_MASK_OFFSET); rnd 250 drivers/firmware/efi/libstub/arm-stub.c u32 rnd; rnd 252 drivers/firmware/efi/libstub/arm-stub.c status = efi_get_random_bytes(sys_table, sizeof(rnd), rnd 253 drivers/firmware/efi/libstub/arm-stub.c (u8 *)&rnd); rnd 256 drivers/firmware/efi/libstub/arm-stub.c (((headroom >> 21) * rnd) >> (32 - 21)); rnd 43 drivers/gpio/gpio-menz127.c unsigned int rnd; rnd 53 drivers/gpio/gpio-menz127.c rnd = fls(debounce) - 1; rnd 55 drivers/gpio/gpio-menz127.c if (rnd && (debounce & BIT(rnd - 1))) rnd 1408 drivers/gpu/drm/i915/gt/selftest_lrc.c static int random_range(struct rnd_state *rnd, int min, int max) rnd 1410 drivers/gpu/drm/i915/gt/selftest_lrc.c return i915_prandom_u32_max_state(max - min, rnd) + min; rnd 1413 drivers/gpu/drm/i915/gt/selftest_lrc.c static int random_priority(struct rnd_state *rnd) rnd 1415 drivers/gpu/drm/i915/gt/selftest_lrc.c return random_range(rnd, I915_PRIORITY_MIN, I915_PRIORITY_MAX); rnd 244 drivers/gpu/drm/i915/gt/selftest_timeline.c static unsigned int random_engine(struct rnd_state *rnd) rnd 246 drivers/gpu/drm/i915/gt/selftest_timeline.c return i915_prandom_u32_max_state(I915_NUM_ENGINES, rnd); rnd 33 drivers/gpu/drm/i915/selftests/i915_random.c u64 i915_prandom_u64_state(struct rnd_state *rnd) rnd 37 drivers/gpu/drm/i915/selftests/i915_random.c x = prandom_u32_state(rnd); rnd 39 drivers/gpu/drm/i915/selftests/i915_random.c x |= prandom_u32_state(rnd); rnd 45 drivers/gpu/drm/i915/selftests/i915_random.h u64 i915_prandom_u64_state(struct rnd_state *rnd); rnd 39 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd); rnd 43 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd, rnd 53 drivers/gpu/drm/i915/selftests/scatterlist.c unsigned int npages = npages_fn(n, pt->st.nents, rnd); rnd 144 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd, rnd 150 drivers/gpu/drm/i915/selftests/scatterlist.c err = expect_pfn_sg(pt, npages_fn, rnd, who, timeout); rnd 167 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd) rnd 174 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd) rnd 181 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd) rnd 188 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd) rnd 190 drivers/gpu/drm/i915/selftests/scatterlist.c return 1 + (prandom_u32_state(rnd) % 1024); rnd 195 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd) rnd 204 drivers/gpu/drm/i915/selftests/scatterlist.c return page_count[(prandom_u32_state(rnd) % 3)]; rnd 217 drivers/gpu/drm/i915/selftests/scatterlist.c struct rnd_state *rnd, rnd 238 drivers/gpu/drm/i915/selftests/scatterlist.c unsigned long npages = npages_fn(n, count, rnd); rnd 202 drivers/gpu/drm/sti/sti_tvout.c static void tvout_vip_set_rnd(struct sti_tvout *tvout, int reg, u32 rnd) rnd 207 drivers/gpu/drm/sti/sti_tvout.c val |= rnd << TVO_VIP_RND_SHIFT; rnd 400 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c unsigned int rnd = 0U; rnd 403 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c get_random_bytes(&rnd, sizeof(unsigned int)); rnd 405 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c ucp_0x370 = 0x02020202U | (0xFEFEFEFEU & rnd); rnd 658 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c unsigned int rnd = 0; rnd 661 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c get_random_bytes(&rnd, sizeof(unsigned int)); rnd 663 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c ucp_0x370 = 0x02020202 | (0xFEFEFEFE & rnd); rnd 267 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c unsigned int rnd = 0; rnd 269 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c get_random_bytes(&rnd, sizeof(unsigned int)); rnd 271 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c l = 0xE3000000U | (0xFFFFU & rnd) | (0x00 << 16); rnd 130 drivers/net/ethernet/rocker/rocker_main.c u64 rnd; rnd 132 drivers/net/ethernet/rocker/rocker_main.c rnd = prandom_u32(); rnd 133 drivers/net/ethernet/rocker/rocker_main.c rnd >>= 1; rnd 134 drivers/net/ethernet/rocker/rocker_main.c rocker_write32(rocker, TEST_REG, rnd); rnd 136 drivers/net/ethernet/rocker/rocker_main.c if (test_reg != rnd * 2) { rnd 138 drivers/net/ethernet/rocker/rocker_main.c test_reg, rnd * 2); rnd 142 drivers/net/ethernet/rocker/rocker_main.c rnd = prandom_u32(); rnd 143 drivers/net/ethernet/rocker/rocker_main.c rnd <<= 31; rnd 144 drivers/net/ethernet/rocker/rocker_main.c rnd |= prandom_u32(); rnd 145 drivers/net/ethernet/rocker/rocker_main.c rocker_write64(rocker, TEST_REG64, rnd); rnd 147 drivers/net/ethernet/rocker/rocker_main.c if (test_reg != rnd * 2) { rnd 149 drivers/net/ethernet/rocker/rocker_main.c test_reg, rnd * 2); rnd 317 kernel/acct.c int exp, rnd; rnd 319 kernel/acct.c exp = rnd = 0; rnd 321 kernel/acct.c rnd = value & (1 << (EXPSIZE - 1)); /* Round up? */ rnd 329 kernel/acct.c if (rnd && (++value > MAXFRACT)) { rnd 359 kernel/acct.c int exp, rnd; rnd 362 kernel/acct.c rnd = 0; rnd 364 kernel/acct.c rnd = value & 1; rnd 372 kernel/acct.c if (rnd && (++value > MAXFRACT2)) { rnd 36 kernel/time/clockevents.c u64 rnd; rnd 40 kernel/time/clockevents.c rnd = (u64) evt->mult - 1; rnd 68 kernel/time/clockevents.c if ((~0ULL - clc > rnd) && rnd 70 kernel/time/clockevents.c clc += rnd; rnd 27 lib/interval_tree_test.c static struct rnd_state rnd; rnd 46 lib/interval_tree_test.c u32 b = (prandom_u32_state(&rnd) >> 4) % max_endpoint; rnd 47 lib/interval_tree_test.c u32 a = (prandom_u32_state(&rnd) >> 4) % b; rnd 59 lib/interval_tree_test.c queries[i] = (prandom_u32_state(&rnd) >> 4) % max_endpoint; rnd 81 lib/interval_tree_test.c prandom_seed_state(&rnd, 3141592653589793238ULL); rnd 30 lib/rbtree_test.c static struct rnd_state rnd; rnd 153 lib/rbtree_test.c nodes[i].key = prandom_u32_state(&rnd); rnd 154 lib/rbtree_test.c nodes[i].val = prandom_u32_state(&rnd); rnd 254 lib/rbtree_test.c prandom_seed_state(&rnd, 3141592653589793238ULL); rnd 130 lib/test_bpf.c struct rnd_state rnd; rnd 137 lib/test_bpf.c prandom_seed_state(&rnd, 3141592653589793238ULL); rnd 140 lib/test_bpf.c __u32 k = prandom_u32_state(&rnd); rnd 83 lib/test_parman.c struct rnd_state rnd; rnd 134 lib/test_parman.c prandom_seed_state(&test_parman->rnd, 3141592653589793238ULL); rnd 139 lib/test_parman.c return prandom_u32_state(&test_parman->rnd); rnd 77 lib/test_vmalloc.c unsigned long size, align, rnd; rnd 82 lib/test_vmalloc.c get_random_bytes(&rnd, sizeof(rnd)); rnd 87 lib/test_vmalloc.c align = 1 << (rnd % 23); rnd 92 lib/test_vmalloc.c size = ((rnd % 10) + 1) * PAGE_SIZE; rnd 367 lib/test_vmalloc.c unsigned int rnd; rnd 371 lib/test_vmalloc.c get_random_bytes(&rnd, sizeof(rnd)); rnd 374 lib/test_vmalloc.c j = rnd % i; rnd 335 mm/util.c unsigned long rnd; rnd 339 mm/util.c rnd = get_random_long() & ((1UL << mmap_rnd_compat_bits) - 1); rnd 342 mm/util.c rnd = get_random_long() & ((1UL << mmap_rnd_bits) - 1); rnd 344 mm/util.c return rnd << PAGE_SHIFT; rnd 365 mm/util.c static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) rnd 383 mm/util.c return PAGE_ALIGN(STACK_TOP - gap - rnd); rnd 868 mm/vmalloc.c unsigned int rnd; rnd 870 mm/vmalloc.c get_random_bytes(&rnd, sizeof(rnd)); rnd 871 mm/vmalloc.c vstart = VMALLOC_START + rnd; rnd 456 net/mac80211/rc80211_minstrel.c u8 rnd[8]; rnd 463 net/mac80211/rc80211_minstrel.c prandom_bytes(rnd, sizeof(rnd)); rnd 465 net/mac80211/rc80211_minstrel.c new_idx = (i + rnd[i & 7]) % mi->n_rates; rnd 1737 net/mac80211/rc80211_minstrel_ht.c u8 rnd[MCS_GROUP_RATES]; rnd 1741 net/mac80211/rc80211_minstrel_ht.c prandom_bytes(rnd, sizeof(rnd)); rnd 1743 net/mac80211/rc80211_minstrel_ht.c new_idx = (i + rnd[i]) % MCS_GROUP_RATES; rnd 126 net/netfilter/xt_hashlimit.c u_int32_t rnd; /* random seed for hash */ rnd 188 net/netfilter/xt_hashlimit.c ht->rnd); rnd 237 net/netfilter/xt_hashlimit.c get_random_bytes(&ht->rnd, sizeof(ht->rnd)); rnd 203 net/sched/sch_netem.c u32 rnd = prandom_u32(); rnd 217 net/sched/sch_netem.c if (rnd < clg->a4) { rnd 220 net/sched/sch_netem.c } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { rnd 223 net/sched/sch_netem.c } else if (clg->a1 + clg->a4 < rnd) { rnd 229 net/sched/sch_netem.c if (rnd < clg->a5) { rnd 238 net/sched/sch_netem.c if (rnd < clg->a3) rnd 240 net/sched/sch_netem.c else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { rnd 242 net/sched/sch_netem.c } else if (clg->a2 + clg->a3 < rnd) { rnd 324 net/sched/sch_netem.c u32 rnd; rnd 329 net/sched/sch_netem.c rnd = get_crandom(state); rnd 333 net/sched/sch_netem.c return ((rnd % (2 * sigma)) + mu) - sigma; rnd 335 net/sched/sch_netem.c t = dist->table[rnd % dist->size]; rnd 95 net/sched/sch_pie.c u64 rnd; rnd 141 net/sched/sch_pie.c prandom_bytes(&rnd, 8); rnd 142 net/sched/sch_pie.c if (rnd < local_prob) { rnd 7 tools/testing/selftests/bpf/prog_tests/map_lock.c int vars[17], i, j, rnd, key = 0; rnd 19 tools/testing/selftests/bpf/prog_tests/map_lock.c rnd = vars[1]; rnd 21 tools/testing/selftests/bpf/prog_tests/map_lock.c if (vars[j] == rnd) rnd 24 tools/testing/selftests/bpf/prog_tests/map_lock.c i, rnd, j, vars[j]); rnd 25 tools/testing/selftests/bpf/prog_tests/map_lock.c CHECK_FAIL(vars[j] != rnd); rnd 37 tools/testing/selftests/bpf/progs/test_map_lock.c int rnd = bpf_get_prandom_u32(); rnd 47 tools/testing/selftests/bpf/progs/test_map_lock.c val->var[i] = rnd; rnd 56 tools/testing/selftests/bpf/progs/test_map_lock.c q->var[i] = rnd;