Home
last modified time | relevance | path

Searched refs:get_random_u32_below (Results 1 – 25 of 122) sorted by relevance

12345

/linux-6.3-rc2/drivers/mtd/ubi/
A Ddebug.h76 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 Dmtd_nandecctest.c50 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 Dstresstest.c49 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 Drandom.h60 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 Did_table.c57 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 Dip_vs_twos.c74 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 Dcrc-vpmsum_test.c80 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 Dvidtv_demod.c191 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 Dtestmgr.c868 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 Dfind_bit_benchmark.c177 __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 Dtest_list_sort.c74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test()
/linux-6.3-rc2/drivers/net/wireguard/selftest/
A Dallowedips.c289 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 Dtimers.c150 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 Dteam_mode_random.c19 port_index = get_random_u32_below(team->en_port_count); in rnd_transmit()
/linux-6.3-rc2/arch/x86/mm/pat/
A Dcpa-test.c139 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 Dtest_rslib.c186 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 Dvivid-radio-rx.c97 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 Dtcp_plb.c100 pause += get_random_u32_below(pause); in tcp_plb_update_state_upon_rto()
/linux-6.3-rc2/arch/parisc/kernel/
A Dvdso.c78 map_base -= get_random_u32_below(0x20) * PAGE_SIZE; in arch_setup_additional_pages()
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Dintel_memory_region.c41 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 Dvdso.c81 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
/linux-6.3-rc2/arch/mips/kernel/
A Dvdso.c82 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
/linux-6.3-rc2/fs/ubifs/
A Dlpt_commit.c1973 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 Dstream.c126 current_timeo = vm_wait = get_random_u32_below(HZ / 5) + 2; in sk_stream_wait_memory()
/linux-6.3-rc2/arch/s390/kernel/
A Dprocess.c227 sp -= get_random_u32_below(PAGE_SIZE); in arch_align_stack()

Completed in 41 milliseconds

12345