/Linux-v5.4/drivers/mtd/ubi/ |
D | debug.h | 76 return !(prandom_u32() % 200); in ubi_dbg_is_bitflip() 90 return !(prandom_u32() % 500); in ubi_dbg_is_write_failure() 104 return !(prandom_u32() % 400); in ubi_dbg_is_erase_failure()
|
/Linux-v5.4/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 50 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit()
|
D | stresstest.c | 48 eb = prandom_u32(); in rand_eb() 60 offs = prandom_u32(); in rand_offs() 69 len = prandom_u32(); in rand_len() 130 if (prandom_u32() & 1) in do_operation()
|
/Linux-v5.4/lib/reed_solomon/ |
D | test_rslib.c | 167 c[i] = prandom_u32() & nn; in get_rcw_we() 181 errval = prandom_u32() & nn; in get_rcw_we() 186 errloc = prandom_u32() % len; in get_rcw_we() 197 errloc = prandom_u32() % len; in get_rcw_we() 202 if (ewsc && (prandom_u32() & 1)) { in get_rcw_we() 209 errval = prandom_u32() & nn; in get_rcw_we()
|
/Linux-v5.4/drivers/infiniband/hw/cxgb4/ |
D | id_table.c | 57 alloc->last += prandom_u32() % RANDOM_SKIP; in c4iw_id_alloc() 90 alloc->last = prandom_u32() % RANDOM_SKIP; in c4iw_id_table_alloc()
|
/Linux-v5.4/crypto/ |
D | testmgr.c | 748 unsigned int len = prandom_u32() % (max_len + 1); in generate_random_length() 750 switch (prandom_u32() % 4) { in generate_random_length() 770 if (prandom_u32() % 4 == 0) { in mutate_buffer() 771 num_flips = min_t(size_t, 1 << (prandom_u32() % 8), count * 8); in mutate_buffer() 773 pos = prandom_u32() % (count * 8); in mutate_buffer() 779 if (prandom_u32() % 4 == 0) { in mutate_buffer() 780 num_flips = min_t(size_t, 1 << (prandom_u32() % 8), count); in mutate_buffer() 782 buf[prandom_u32() % count] ^= 0xff; in mutate_buffer() 796 switch (prandom_u32() % 8) { /* Choose a generation strategy */ in generate_random_bytes() 800 switch (prandom_u32() % 4) { in generate_random_bytes() [all …]
|
/Linux-v5.4/lib/ |
D | find_bit_benchmark.c | 140 __set_bit(prandom_u32() % BITMAP_LEN, bitmap); in find_bit_test() 141 __set_bit(prandom_u32() % BITMAP_LEN, bitmap2); in find_bit_test()
|
D | random32.c | 79 u32 prandom_u32(void) in prandom_u32() function 89 EXPORT_SYMBOL(prandom_u32);
|
D | sbitmap.c | 387 *per_cpu_ptr(sbq->alloc_hint, i) = prandom_u32() % depth; in sbitmap_queue_init_node() 446 hint = depth ? prandom_u32() % depth : 0; in __sbitmap_queue_get() 477 hint = depth ? prandom_u32() % depth : 0; in __sbitmap_queue_get_shallow()
|
D | test_list_sort.c | 89 el->value = prandom_u32() % (TEST_LIST_LEN / 3); in list_sort_test()
|
D | test_rhashtable.c | 294 k = prandom_u32(); in test_rhltable() 372 u32 prand = prandom_u32(); in test_rhltable() 377 prand = prandom_u32(); in test_rhltable()
|
D | fault-inject.c | 137 if (attr->probability <= prandom_u32() % 100) in should_fail()
|
/Linux-v5.4/include/linux/ |
D | random.h | 111 u32 prandom_u32(void); 141 return (u32)(((u64) prandom_u32() * ep_ro) >> 32); in prandom_u32_max()
|
/Linux-v5.4/net/sched/ |
D | sch_netem.c | 174 state->last = prandom_u32(); in init_crandom() 187 return prandom_u32(); in get_crandom() 189 value = prandom_u32(); in get_crandom() 203 u32 rnd = prandom_u32(); in loss_4state() 271 if (prandom_u32() < clg->a1) in loss_gilb_ell() 273 if (prandom_u32() < clg->a4) in loss_gilb_ell() 277 if (prandom_u32() < clg->a2) in loss_gilb_ell() 279 if (prandom_u32() > clg->a3) in loss_gilb_ell() 516 skb->data[prandom_u32() % skb_headlen(skb)] ^= in netem_enqueue() 517 1<<(prandom_u32() % 8); in netem_enqueue() [all …]
|
/Linux-v5.4/tools/lib/lockdep/ |
D | lockdep.c | 12 u32 prandom_u32(void) in prandom_u32() function
|
/Linux-v5.4/arch/x86/mm/ |
D | pageattr-test.c | 140 unsigned long pfn = prandom_u32() % max_pfn_mapped; in pageattr_test() 143 len[i] = prandom_u32() % NPAGES; in pageattr_test()
|
/Linux-v5.4/net/netfilter/ |
D | xt_statistic.c | 37 if ((prandom_u32() & 0x7FFFFFFF) < info->u.random.probability) in statistic_mt()
|
/Linux-v5.4/drivers/infiniband/hw/cxgb3/ |
D | cxio_resource.c | 65 random_bytes = prandom_u32(); in __cxio_init_resource_fifo() 71 random_bytes = prandom_u32(); in __cxio_init_resource_fifo()
|
/Linux-v5.4/net/ipv4/ |
D | datagram.c | 76 inet->inet_id = prandom_u32(); in __ip4_datagram_connect()
|
/Linux-v5.4/include/net/netfilter/ |
D | nf_queue.h | 43 *jhash_initval = prandom_u32(); in init_hashrandom()
|
/Linux-v5.4/net/core/ |
D | pktgen.c | 2219 flow = prandom_u32() % pkt_dev->cflows; in f_pick() 2275 t = prandom_u32() % in set_cur_queue_map() 2307 mc = prandom_u32() % pkt_dev->src_mac_count; in mod_cur_headers() 2333 mc = prandom_u32() % pkt_dev->dst_mac_count; in mod_cur_headers() 2360 ((__force __be32)prandom_u32() & in mod_cur_headers() 2365 pkt_dev->vlan_id = prandom_u32() & (4096 - 1); in mod_cur_headers() 2369 pkt_dev->svlan_id = prandom_u32() & (4096 - 1); in mod_cur_headers() 2374 pkt_dev->cur_udp_src = prandom_u32() % in mod_cur_headers() 2387 pkt_dev->cur_udp_dst = prandom_u32() % in mod_cur_headers() 2404 t = prandom_u32() % (imx - imn) + imn; in mod_cur_headers() [all …]
|
D | stream.c | 126 current_timeo = vm_wait = (prandom_u32() % (HZ / 5)) + 2; in sk_stream_wait_memory()
|
/Linux-v5.4/fs/ubifs/ |
D | lpt_commit.c | 1973 if (prandom_u32() & 3) in dbg_populate_lsave() 1980 c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum; in dbg_populate_lsave() 1982 c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum; in dbg_populate_lsave() 1984 c->lsave[prandom_u32() % c->lsave_cnt] = lprops->lnum; in dbg_populate_lsave() 1988 c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; in dbg_populate_lsave() 1991 c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; in dbg_populate_lsave() 1994 c->lsave[prandom_u32() % c->lsave_cnt] = heap->arr[i]->lnum; in dbg_populate_lsave()
|
/Linux-v5.4/kernel/ |
D | test_kprobes.c | 279 rand1 = prandom_u32(); in init_test_probes()
|
/Linux-v5.4/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 133 i = prandom_u32(); in gss_krb5_make_confounder() 134 i = (i << 32) | prandom_u32(); in gss_krb5_make_confounder()
|