Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/mtd/ubi/
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.6.21/drivers/mtd/tests/
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()
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.6.21/include/linux/
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.6.21/drivers/infiniband/hw/cxgb4/
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.6.21/net/netfilter/ipvs/
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.6.21/arch/powerpc/crypto/
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.6.21/drivers/media/test-drivers/vidtv/
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.6.21/lib/
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()
Dtest_list_sort.c74 el->value = get_random_u32_below(TEST_LIST_LEN / 3); in list_sort_test()
Dtest_rhashtable.c371 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/
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.6.21/drivers/net/wireguard/
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.6.21/drivers/net/team/
Dteam_mode_random.c19 port_index = get_random_u32_below(team->en_port_count); in rnd_transmit()
/linux-6.6.21/arch/x86/mm/pat/
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.6.21/lib/reed_solomon/
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.6.21/drivers/media/test-drivers/vivid/
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.6.21/net/ipv4/
Dtcp_plb.c100 pause += get_random_u32_below(pause); in tcp_plb_update_state_upon_rto()
/linux-6.6.21/arch/parisc/kernel/
Dvdso.c78 map_base -= get_random_u32_below(0x20) * PAGE_SIZE; in arch_setup_additional_pages()
/linux-6.6.21/drivers/gpu/drm/i915/
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.6.21/arch/mips/kernel/
Dvdso.c82 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
/linux-6.6.21/fs/ubifs/
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.6.21/arch/loongarch/kernel/
Dvdso.c156 base += get_random_u32_below(VDSO_RANDOMIZE_SIZE); in vdso_base()
/linux-6.6.21/net/core/
Dstream.c126 current_timeo = vm_wait = get_random_u32_below(HZ / 5) + 2; in sk_stream_wait_memory()
/linux-6.6.21/arch/s390/kernel/
Dprocess.c225 sp -= get_random_u32_below(PAGE_SIZE); in arch_align_stack()

12345