Home
last modified time | relevance | path

Searched refs:get_random_u32_inclusive (Results 1 – 25 of 26) sorted by relevance

12

/linux/lib/
A Dtest_hexdump.c152 size_t len = get_random_u32_inclusive(1, d); in test_hexdump_set()
211 int rs = get_random_u32_inclusive(1, 2) * 16; in test_hexdump_overflow_set()
226 rowsize = get_random_u32_inclusive(1, 2) * 16; in test_hexdump_init()
230 rowsize = get_random_u32_inclusive(1, 2) * 16; in test_hexdump_init()
A Dtest_vmalloc.c158 n = get_random_u32_inclusive(1, 100); in random_size_alloc_test()
301 size = get_random_u32_inclusive(1, PAGE_SIZE / 4); in pcpu_alloc_test()
306 align = 1 << get_random_u32_inclusive(1, 11); in pcpu_alloc_test()
A Dtest_printf.c128 rand = get_random_u32_inclusive(1, elen + 1); in __test()
/linux/drivers/net/wireguard/selftest/
A Dallowedips.c288 cidr = get_random_u32_inclusive(1, 32); in randomized_test()
314 cidr = get_random_u32_inclusive(1, 32); in randomized_test()
332 cidr = get_random_u32_inclusive(1, 128); in randomized_test()
358 cidr = get_random_u32_inclusive(1, 128); in randomized_test()
/linux/include/linux/
A Drandom.h110 static inline u32 get_random_u32_inclusive(u32 floor, u32 ceil) in get_random_u32_inclusive() function
/linux/drivers/infiniband/hw/hns/
A Dhns_roce_ah.c46 sport = get_random_u32_inclusive(IB_ROCE_UDP_ENCAP_VALID_PORT_MIN, in get_ah_udp_sport()
/linux/arch/s390/mm/
A Dinit.c312 module_load_offset = get_random_u32_inclusive(1, 1024) * PAGE_SIZE; in execmem_arch_setup()
/linux/kernel/kcsan/
A Dselftest.c34 size_t size = get_random_u32_inclusive(1, MAX_ENCODABLE_SIZE); in test_encode_decode()
/linux/arch/arm64/mm/
A Dinit.c458 pgoff = get_random_u32_inclusive(0, max_pgoff); in random_bounding_box()
/linux/drivers/bus/mhi/host/
A Dinternal.h172 #define MHI_RANDOM_U32_NONZERO(bmsk) (get_random_u32_inclusive(1, bmsk))
/linux/mm/kasan/
A Dkasan_test_c.c1827 size = get_random_u32_inclusive(1, 1024); in match_all_not_assigned()
1836 order = get_random_u32_inclusive(1, 4); in match_all_not_assigned()
1849 size = get_random_u32_inclusive(1, 1024); in match_all_not_assigned()
/linux/net/core/
A Dpktgen.c2404 t = get_random_u32_inclusive(pkt_dev->queue_map_min, in set_cur_queue_map()
2501 pkt_dev->cur_udp_src = get_random_u32_inclusive(pkt_dev->udp_src_min, in mod_cur_headers()
2513 pkt_dev->cur_udp_dst = get_random_u32_inclusive(pkt_dev->udp_dst_min, in mod_cur_headers()
2529 t = get_random_u32_inclusive(imn, imx - 1); in mod_cur_headers()
2551 t = get_random_u32_inclusive(imn, imx - 1); in mod_cur_headers()
2598 t = get_random_u32_inclusive(pkt_dev->min_pkt_size, in mod_cur_headers()
/linux/drivers/dma-buf/
A Dst-dma-fence-chain.c403 seqno = get_random_u32_inclusive(1, data->fc.chain_length); in __find_race()
/linux/arch/x86/mm/
A Dinit.c1061 offset = get_random_u32_inclusive(1, 1024) * PAGE_SIZE; in execmem_arch_setup()
/linux/crypto/
A Drsa-pkcs1pad.c276 req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255); in pkcs1pad_encrypt()
/linux/mm/kfence/
A Dkfence_test.c537 const size_t size = setup_test_cache(test, get_random_u32_inclusive(8, 307), in test_free_bulk()
/linux/fs/f2fs/
A Dsegment.c2831 return get_random_u32_inclusive(curseg->segno + 1, in __get_next_segno()
2886 get_random_u32_inclusive(1, sbi->max_fragment_chunk); in new_curseg()
3624 get_random_u32_inclusive(1, sbi->max_fragment_chunk); in f2fs_randomize_chunk()
3626 get_random_u32_inclusive(1, sbi->max_fragment_hole); in f2fs_randomize_chunk()
/linux/mm/
A Dswapfile.c1025 next = get_random_u32_inclusive(si->lowest_bit, si->highest_bit); in set_cluster_next()
3303 get_random_u32_inclusive(1, si->highest_bit); in setup_clusters()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
A Dmac-ctxt.c1325 u32 rand = get_random_u32_inclusive(36, 63); in iwl_mvm_mac_ctxt_cmd_fill_ap()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dp2p.c1131 100 * get_random_u32_inclusive(1, 3)); in brcmf_p2p_afx_handler()
/linux/drivers/mtd/nand/raw/
A Dnandsim.c1408 flips = get_random_u32_inclusive(1, bitflips); in ns_do_bit_flips()
/linux/net/ipv6/
A Daddrconf.c106 u64 tmp = get_random_u32_inclusive(900000, 1100000) * (u64)irt; in rfc3315_s14_backoff_init()
114 u64 tmp = get_random_u32_inclusive(1900000, 2100000) * (u64)rt; in rfc3315_s14_backoff_update()
118 tmp = get_random_u32_inclusive(900000, 1100000) * (u64)mrt; in rfc3315_s14_backoff_update()
/linux/net/xfrm/
A Dxfrm_state.c2315 spi = get_random_u32_inclusive(low, high); in xfrm_alloc_spi()
/linux/drivers/infiniband/core/
A Dcma.c3727 rover = get_random_u32_inclusive(low, remaining + low - 1); in cma_alloc_any_port()
/linux/net/ipv4/
A Dtcp_input.c3794 get_random_u32_inclusive(half, ack_limit + half - 1)); in tcp_send_challenge_ack()

Completed in 1045 milliseconds

12