/Linux-v6.1/lib/ |
D | test_hexdump.c | 152 size_t len = prandom_u32_max(d) + 1; in test_hexdump_set() 211 int rs = (prandom_u32_max(2) + 1) * 16; in test_hexdump_overflow_set() 215 size_t len = prandom_u32_max(rs) + gs; in test_hexdump_overflow_set() 226 rowsize = (prandom_u32_max(2) + 1) * 16; in test_hexdump_init() 230 rowsize = (prandom_u32_max(2) + 1) * 16; in test_hexdump_init()
|
D | test_vmalloc.c | 154 n = prandom_u32_max(100) + 1; in random_size_alloc_test() 294 size = prandom_u32_max(PAGE_SIZE / 4) + 1; in pcpu_alloc_test() 299 align = 1 << (prandom_u32_max(11) + 1); in pcpu_alloc_test() 394 j = prandom_u32_max(i); in shuffle_array()
|
D | find_bit_benchmark.c | 177 __set_bit(prandom_u32_max(BITMAP_LEN), bitmap); in find_bit_test() 178 __set_bit(prandom_u32_max(BITMAP_LEN), bitmap2); in find_bit_test()
|
D | test_list_sort.c | 74 el->value = prandom_u32_max(TEST_LIST_LEN / 3); in list_sort_test()
|
/Linux-v6.1/drivers/mtd/ubi/ |
D | debug.h | 76 return !prandom_u32_max(200); in ubi_dbg_is_bitflip() 90 return !prandom_u32_max(500); in ubi_dbg_is_write_failure() 104 return !prandom_u32_max(400); in ubi_dbg_is_erase_failure()
|
/Linux-v6.1/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 50 unsigned int offset = prandom_u32_max(size * BITS_PER_BYTE); in single_bit_error_data() 61 offset[0] = prandom_u32_max(size * BITS_PER_BYTE); in double_bit_error_data() 63 offset[1] = prandom_u32_max(size * BITS_PER_BYTE); in double_bit_error_data() 74 unsigned int offset = prandom_u32_max(3 * BITS_PER_BYTE); in random_ecc_bit() 82 offset = prandom_u32_max(3 * BITS_PER_BYTE); in random_ecc_bit()
|
D | stresstest.c | 49 eb = prandom_u32_max(ebcnt - 1); in rand_eb() 57 return prandom_u32_max(bufsize); in rand_offs() 62 return prandom_u32_max(bufsize - offs); in rand_len() 121 if (prandom_u32_max(2)) in do_operation()
|
/Linux-v6.1/drivers/net/wireguard/selftest/ |
D | allowedips.c | 288 cidr = prandom_u32_max(32) + 1; in randomized_test() 289 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test() 303 mutate_amount = prandom_u32_max(32); in randomized_test() 314 cidr = prandom_u32_max(32) + 1; in randomized_test() 315 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test() 332 cidr = prandom_u32_max(128) + 1; in randomized_test() 333 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test() 347 mutate_amount = prandom_u32_max(128); in randomized_test() 358 cidr = prandom_u32_max(128) + 1; in randomized_test() 359 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test()
|
/Linux-v6.1/drivers/infiniband/hw/cxgb4/ |
D | id_table.c | 57 alloc->last += prandom_u32_max(RANDOM_SKIP); in c4iw_id_alloc() 88 alloc->last = prandom_u32_max(RANDOM_SKIP); in c4iw_id_table_alloc()
|
/Linux-v6.1/net/netfilter/ipvs/ |
D | ip_vs_twos.c | 74 rweight1 = prandom_u32_max(total_weight); in ip_vs_twos_schedule() 75 rweight2 = prandom_u32_max(total_weight); in ip_vs_twos_schedule()
|
/Linux-v6.1/arch/powerpc/crypto/ |
D | crc-vpmsum_test.c | 80 size_t offset = prandom_u32_max(16); in crc_test_init() 81 size_t len = prandom_u32_max(MAX_CRC_LENGTH); in crc_test_init()
|
/Linux-v6.1/crypto/ |
D | testmgr.c | 858 unsigned int len = prandom_u32_max(max_len + 1); in generate_random_length() 860 switch (prandom_u32_max(4)) { in generate_random_length() 877 bitpos = prandom_u32_max(size * 8); in flip_random_bit() 884 buf[prandom_u32_max(size)] ^= 0xff; in flip_random_byte() 894 if (prandom_u32_max(4) == 0) { in mutate_buffer() 895 num_flips = min_t(size_t, 1 << prandom_u32_max(8), size * 8); in mutate_buffer() 901 if (prandom_u32_max(4) == 0) { in mutate_buffer() 902 num_flips = min_t(size_t, 1 << prandom_u32_max(8), size); in mutate_buffer() 918 switch (prandom_u32_max(8)) { /* Choose a generation strategy */ in generate_random_bytes() 922 switch (prandom_u32_max(4)) { in generate_random_bytes() [all …]
|
/Linux-v6.1/drivers/media/test-drivers/vidtv/ |
D | vidtv_demod.c | 191 c->strength.stat[0].svalue -= prandom_u32_max(state->tuner_cnr / 50); in vidtv_demod_update_stats() 195 c->cnr.stat[0].svalue -= prandom_u32_max(state->tuner_cnr / 50); in vidtv_demod_update_stats() 216 if (prandom_u32_max(100) < config->drop_tslock_prob_on_low_snr) in vidtv_demod_read_status() 220 if (prandom_u32_max(100) < in vidtv_demod_read_status()
|
/Linux-v6.1/drivers/net/wireguard/ |
D | timers.c | 150 prandom_u32_max(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); in wg_timers_data_sent() 186 prandom_u32_max(REKEY_TIMEOUT_JITTER_MAX_JIFFIES)); in wg_timers_handshake_initiated()
|
/Linux-v6.1/drivers/net/team/ |
D | team_mode_random.c | 19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
|
/Linux-v6.1/include/linux/ |
D | prandom.h | 37 static inline u32 prandom_u32_max(u32 ep_ro) in prandom_u32_max() function
|
/Linux-v6.1/arch/x86/mm/pat/ |
D | cpa-test.c | 139 unsigned long pfn = prandom_u32_max(max_pfn_mapped); in pageattr_test() 142 len[i] = prandom_u32_max(NPAGES); in pageattr_test()
|
/Linux-v6.1/kernel/kcsan/ |
D | selftest.c | 41 size_t size = prandom_u32_max(MAX_ENCODABLE_SIZE) + 1; in test_encode_decode() 42 bool is_write = !!prandom_u32_max(2); in test_encode_decode()
|
/Linux-v6.1/lib/reed_solomon/ |
D | test_rslib.c | 186 errloc = prandom_u32_max(len); in get_rcw_we() 197 errloc = prandom_u32_max(len); in get_rcw_we() 202 if (ewsc && prandom_u32_max(2)) { in get_rcw_we()
|
/Linux-v6.1/drivers/media/test-drivers/vivid/ |
D | vivid-radio-rx.c | 97 if (perc && prandom_u32_max(100) < perc) { in vivid_radio_rx_read() 98 switch (prandom_u32_max(4)) { in vivid_radio_rx_read()
|
/Linux-v6.1/arch/parisc/kernel/ |
D | vdso.c | 78 map_base -= prandom_u32_max(0x20) * PAGE_SIZE; in arch_setup_additional_pages()
|
/Linux-v6.1/drivers/gpu/drm/i915/ |
D | intel_memory_region.c | 41 int byte = prandom_u32_max(pagesize); in __iopagetest() 95 return prandom_u32_max(last >> PAGE_SHIFT) << PAGE_SHIFT; in random_page()
|
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 44 sport = prandom_u32_max(IB_ROCE_UDP_ENCAP_VALID_PORT_MAX + 1 - in get_ah_udp_sport()
|
/Linux-v6.1/drivers/dma-buf/ |
D | st-dma-fence-chain.c | 403 seqno = prandom_u32_max(data->fc.chain_length) + 1; in __find_race() 432 seqno = prandom_u32_max(data->fc.chain_length - 1); in __find_race() 640 swp = prandom_u32_max(count + 1); in randomise_fences()
|
/Linux-v6.1/arch/loongarch/kernel/ |
D | vdso.c | 81 base += prandom_u32_max(VDSO_RANDOMIZE_SIZE); in vdso_base()
|