/linux-6.6.21/drivers/mtd/ubi/ |
D | debug.h | 76 return !get_random_u32_below(200); in ubi_dbg_is_bitflip() 90 return !get_random_u32_below(500); in ubi_dbg_is_write_failure() 104 return !get_random_u32_below(400); in ubi_dbg_is_erase_failure()
|
/linux-6.6.21/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 50 unsigned int offset = get_random_u32_below(size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = get_random_u32_below(size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = get_random_u32_below(3 * BITS_PER_BYTE); in random_ecc_bit()
|
D | stresstest.c | 49 eb = get_random_u32_below(ebcnt - 1); in rand_eb() 57 return get_random_u32_below(bufsize); in rand_offs() 62 return get_random_u32_below(bufsize - offs); in rand_len() 121 if (get_random_u32_below(2)) in do_operation()
|
/linux-6.6.21/include/linux/ |
D | random.h | 60 static inline u32 get_random_u32_below(u32 ceil) in get_random_u32_below() function 102 return floor + 1 + get_random_u32_below(U32_MAX - floor); in get_random_u32_above() 115 return floor + get_random_u32_below(ceil - floor + 1); in get_random_u32_inclusive()
|
/linux-6.6.21/drivers/infiniband/hw/cxgb4/ |
D | id_table.c | 57 alloc->last += get_random_u32_below(RANDOM_SKIP); in c4iw_id_alloc() 88 alloc->last = get_random_u32_below(RANDOM_SKIP); in c4iw_id_table_alloc()
|
/linux-6.6.21/net/netfilter/ipvs/ |
D | ip_vs_twos.c | 74 rweight1 = get_random_u32_below(total_weight); in ip_vs_twos_schedule() 75 rweight2 = get_random_u32_below(total_weight); in ip_vs_twos_schedule()
|
/linux-6.6.21/arch/powerpc/crypto/ |
D | crc-vpmsum_test.c | 80 size_t offset = get_random_u32_below(16); in crc_test_init() 81 size_t len = get_random_u32_below(MAX_CRC_LENGTH); in crc_test_init()
|
/linux-6.6.21/drivers/media/test-drivers/vidtv/ |
D | vidtv_demod.c | 191 c->strength.stat[0].svalue -= get_random_u32_below(state->tuner_cnr / 50); in vidtv_demod_update_stats() 195 c->cnr.stat[0].svalue -= get_random_u32_below(state->tuner_cnr / 50); in vidtv_demod_update_stats() 216 if (get_random_u32_below(100) < config->drop_tslock_prob_on_low_snr) in vidtv_demod_read_status() 220 if (get_random_u32_below(100) < in vidtv_demod_read_status()
|
/linux-6.6.21/lib/ |
D | find_bit_benchmark.c | 177 __set_bit(get_random_u32_below(BITMAP_LEN), bitmap); in find_bit_test() 178 __set_bit(get_random_u32_below(BITMAP_LEN), bitmap2); in find_bit_test()
|
D | test_list_sort.c | 74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test()
|
D | test_rhashtable.c | 371 u32 i = get_random_u32_below(entries); in test_rhltable() 372 u32 prand = get_random_u32_below(4); in test_rhltable() 399 i = get_random_u32_below(entries); in test_rhltable()
|
/linux-6.6.21/drivers/net/wireguard/selftest/ |
D | allowedips.c | 289 peer = peers[get_random_u32_below(NUM_PEERS)]; in randomized_test() 303 mutate_amount = get_random_u32_below(32); in randomized_test() 315 peer = peers[get_random_u32_below(NUM_PEERS)]; in randomized_test() 333 peer = peers[get_random_u32_below(NUM_PEERS)]; in randomized_test() 347 mutate_amount = get_random_u32_below(128); in randomized_test() 359 peer = peers[get_random_u32_below(NUM_PEERS)]; in randomized_test()
|
/linux-6.6.21/drivers/net/wireguard/ |
D | timers.c | 150 get_random_u32_below(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); in wg_timers_data_sent() 186 get_random_u32_below(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); in wg_timers_handshake_initiated()
|
/linux-6.6.21/drivers/net/team/ |
D | team_mode_random.c | 19 port_index = get_random_u32_below(team->en_port_count); in rnd_transmit()
|
/linux-6.6.21/arch/x86/mm/pat/ |
D | cpa-test.c | 139 unsigned long pfn = get_random_u32_below(max_pfn_mapped); in pageattr_test() 142 len[i] = get_random_u32_below(NPAGES); in pageattr_test()
|
/linux-6.6.21/lib/reed_solomon/ |
D | test_rslib.c | 186 errloc = get_random_u32_below(len); in get_rcw_we() 197 errloc = get_random_u32_below(len); in get_rcw_we() 202 if (ewsc && get_random_u32_below(2)) { in get_rcw_we()
|
/linux-6.6.21/drivers/media/test-drivers/vivid/ |
D | vivid-radio-rx.c | 97 if (perc && get_random_u32_below(100) < perc) { in vivid_radio_rx_read() 98 switch (get_random_u32_below(4)) { in vivid_radio_rx_read()
|
/linux-6.6.21/net/ipv4/ |
D | tcp_plb.c | 100 pause += get_random_u32_below(pause); in tcp_plb_update_state_upon_rto()
|
/linux-6.6.21/arch/parisc/kernel/ |
D | vdso.c | 78 map_base -= get_random_u32_below(0x20) * PAGE_SIZE; in arch_setup_additional_pages()
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | intel_memory_region.c | 41 int byte = get_random_u32_below(pagesize); in __iopagetest() 95 return get_random_u32_below(last >> PAGE_SHIFT) << PAGE_SHIFT; in random_page()
|
/linux-6.6.21/arch/mips/kernel/ |
D | vdso.c | 82 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
|
/linux-6.6.21/fs/ubifs/ |
D | lpt_commit.c | 1973 if (get_random_u32_below(4)) in dbg_populate_lsave() 1980 c->lsave[get_random_u32_below(c->lsave_cnt)] = lprops->lnum; in dbg_populate_lsave() 1982 c->lsave[get_random_u32_below(c->lsave_cnt)] = lprops->lnum; in dbg_populate_lsave() 1984 c->lsave[get_random_u32_below(c->lsave_cnt)] = lprops->lnum; in dbg_populate_lsave() 1988 c->lsave[get_random_u32_below(c->lsave_cnt)] = heap->arr[i]->lnum; in dbg_populate_lsave() 1991 c->lsave[get_random_u32_below(c->lsave_cnt)] = heap->arr[i]->lnum; in dbg_populate_lsave() 1994 c->lsave[get_random_u32_below(c->lsave_cnt)] = heap->arr[i]->lnum; in dbg_populate_lsave()
|
/linux-6.6.21/arch/loongarch/kernel/ |
D | vdso.c | 156 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
|
/linux-6.6.21/net/core/ |
D | stream.c | 126 current_timeo = vm_wait = get_random_u32_below(HZ / 5) + 2; in sk_stream_wait_memory()
|
/linux-6.6.21/arch/s390/kernel/ |
D | process.c | 225 sp -= get_random_u32_below(PAGE_SIZE); in arch_align_stack()
|