/linux-6.3-rc2/drivers/mtd/ubi/ |
A 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.3-rc2/drivers/mtd/tests/ |
A 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()
|
A 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.3-rc2/include/linux/ |
A 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.3-rc2/drivers/infiniband/hw/cxgb4/ |
A 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.3-rc2/net/netfilter/ipvs/ |
A 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.3-rc2/arch/powerpc/crypto/ |
A 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.3-rc2/drivers/media/test-drivers/vidtv/ |
A 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.3-rc2/crypto/ |
A D | testmgr.c | 868 switch (get_random_u32_below(4)) { in generate_random_length() 976 if (get_random_u32_below(4) == 0) in generate_random_sgl_divisions() 982 if (get_random_u32_below(8) == 0) in generate_random_sgl_divisions() 999 get_random_u32_below(2) == 0) in generate_random_sgl_divisions() 1046 switch (get_random_u32_below(4)) { in generate_random_testvec_config() 1066 switch (get_random_u32_below(4)) { in generate_random_testvec_config() 1663 if (get_random_u32_below(4) == 0) in generate_random_hash_testvec() 2332 if (get_random_u32_below(4) == 0) in generate_random_aead_testvec() 2342 if (get_random_u32_below(4) == 0) in generate_random_aead_testvec() 2353 if (get_random_u32_below(4) == 0) in generate_random_aead_testvec() [all …]
|
/linux-6.3-rc2/lib/ |
A 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()
|
A D | test_list_sort.c | 74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test()
|
/linux-6.3-rc2/drivers/net/wireguard/selftest/ |
A 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.3-rc2/drivers/net/wireguard/ |
A 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.3-rc2/drivers/net/team/ |
A D | team_mode_random.c | 19 port_index = get_random_u32_below(team->en_port_count); in rnd_transmit()
|
/linux-6.3-rc2/arch/x86/mm/pat/ |
A 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.3-rc2/lib/reed_solomon/ |
A 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.3-rc2/drivers/media/test-drivers/vivid/ |
A 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.3-rc2/net/ipv4/ |
A D | tcp_plb.c | 100 pause += get_random_u32_below(pause); in tcp_plb_update_state_upon_rto()
|
/linux-6.3-rc2/arch/parisc/kernel/ |
A D | vdso.c | 78 map_base -= get_random_u32_below(0x20) * PAGE_SIZE; in arch_setup_additional_pages()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/ |
A 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.3-rc2/arch/loongarch/kernel/ |
A D | vdso.c | 81 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | vdso.c | 82 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
|
/linux-6.3-rc2/fs/ubifs/ |
A 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.3-rc2/net/core/ |
A D | stream.c | 126 current_timeo = vm_wait = get_random_u32_below(HZ / 5) + 2; in sk_stream_wait_memory()
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | process.c | 227 sp -= get_random_u32_below(PAGE_SIZE); in arch_align_stack()
|