/linux-6.3-rc2/lib/ |
A D | test_hexdump.c | 152 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 D | test_vmalloc.c | 157 n = get_random_u32_inclusive(1, 100); in random_size_alloc_test() 300 size = get_random_u32_inclusive(1, PAGE_SIZE / 4); in pcpu_alloc_test() 305 align = 1 << get_random_u32_inclusive(1, 11); in pcpu_alloc_test()
|
A D | test_printf.c | 129 rand = get_random_u32_inclusive(1, elen + 1); in __test()
|
/linux-6.3-rc2/drivers/net/wireguard/selftest/ |
A D | allowedips.c | 288 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-6.3-rc2/drivers/infiniband/hw/hns/ |
A D | hns_roce_ah.c | 44 sport = get_random_u32_inclusive(IB_ROCE_UDP_ENCAP_VALID_PORT_MIN, in get_ah_udp_sport()
|
/linux-6.3-rc2/include/linux/ |
A D | random.h | 110 static inline u32 get_random_u32_inclusive(u32 floor, u32 ceil) in get_random_u32_inclusive() function
|
/linux-6.3-rc2/kernel/kcsan/ |
A D | selftest.c | 34 size_t size = get_random_u32_inclusive(1, MAX_ENCODABLE_SIZE); in test_encode_decode()
|
/linux-6.3-rc2/mm/kasan/ |
A D | kasan_test.c | 1441 size = get_random_u32_inclusive(1, 1024); in match_all_not_assigned() 1450 order = get_random_u32_inclusive(1, 4); in match_all_not_assigned() 1463 size = get_random_u32_inclusive(1, 1024); in match_all_not_assigned()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | module.c | 56 get_random_u32_inclusive(1, 1024) * PAGE_SIZE; in get_module_load_offset()
|
/linux-6.3-rc2/drivers/bus/mhi/host/ |
A D | internal.h | 132 #define MHI_RANDOM_U32_NONZERO(bmsk) (get_random_u32_inclusive(1, bmsk))
|
/linux-6.3-rc2/net/core/ |
A D | pktgen.c | 2383 t = get_random_u32_inclusive(pkt_dev->queue_map_min, in set_cur_queue_map() 2480 pkt_dev->cur_udp_src = get_random_u32_inclusive(pkt_dev->udp_src_min, in mod_cur_headers() 2492 pkt_dev->cur_udp_dst = get_random_u32_inclusive(pkt_dev->udp_dst_min, in mod_cur_headers() 2508 t = get_random_u32_inclusive(imn, imx - 1); in mod_cur_headers() 2530 t = get_random_u32_inclusive(imn, imx - 1); in mod_cur_headers() 2577 t = get_random_u32_inclusive(pkt_dev->min_pkt_size, in mod_cur_headers()
|
/linux-6.3-rc2/drivers/dma-buf/ |
A D | st-dma-fence-chain.c | 403 seqno = get_random_u32_inclusive(1, data->fc.chain_length); in __find_race()
|
/linux-6.3-rc2/crypto/ |
A D | rsa-pkcs1pad.c | 253 req_ctx->in_buf[i] = get_random_u32_inclusive(1, 255); in pkcs1pad_encrypt()
|
A D | testmgr.c | 973 this_len = get_random_u32_inclusive(1, remaining); in generate_random_sgl_divisions() 977 div->offset = get_random_u32_inclusive(PAGE_SIZE - 128, PAGE_SIZE - 1); in generate_random_sgl_divisions() 1105 cfg->iv_offset = get_random_u32_inclusive(1, MAX_ALGAPI_ALIGNMASK); in generate_random_testvec_config() 1110 cfg->key_offset = get_random_u32_inclusive(1, MAX_ALGAPI_ALIGNMASK); in generate_random_testvec_config() 1664 vec->ksize = get_random_u32_inclusive(1, maxkeysize); in generate_random_hash_testvec()
|
/linux-6.3-rc2/mm/kfence/ |
A D | kfence_test.c | 535 const size_t size = setup_test_cache(test, get_random_u32_inclusive(8, 307), in test_free_bulk()
|
/linux-6.3-rc2/mm/ |
A D | swapfile.c | 775 next = get_random_u32_inclusive(si->lowest_bit, si->highest_bit); in set_cluster_next() 3099 get_random_u32_inclusive(1, p->highest_bit); in SYSCALL_DEFINE2()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | mac-ctxt.c | 1146 u32 rand = get_random_u32_inclusive(36, 63); in iwl_mvm_mac_ctxt_cmd_fill_ap()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | segment.c | 2618 get_random_u32_inclusive(1, sbi->max_fragment_chunk); in new_curseg() 3218 get_random_u32_inclusive(1, sbi->max_fragment_chunk); in f2fs_randomize_chunk() 3220 get_random_u32_inclusive(1, sbi->max_fragment_hole); in f2fs_randomize_chunk()
|
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | p2p.c | 1131 100 * get_random_u32_inclusive(1, 3)); in brcmf_p2p_afx_handler()
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A D | nandsim.c | 1408 flips = get_random_u32_inclusive(1, bitflips); in ns_do_bit_flips()
|
/linux-6.3-rc2/net/ipv6/ |
A D | addrconf.c | 107 u64 tmp = get_random_u32_inclusive(900000, 1100000) * (u64)irt; in rfc3315_s14_backoff_init() 115 u64 tmp = get_random_u32_inclusive(1900000, 2100000) * (u64)rt; in rfc3315_s14_backoff_update() 119 tmp = get_random_u32_inclusive(900000, 1100000) * (u64)mrt; in rfc3315_s14_backoff_update()
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_state.c | 2238 spi = get_random_u32_inclusive(low, high); in xfrm_alloc_spi()
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | cma.c | 3706 rover = get_random_u32_inclusive(low, remaining + low - 1); in cma_alloc_any_port()
|
/linux-6.3-rc2/net/ipv4/ |
A D | tcp_input.c | 3650 get_random_u32_inclusive(half, ack_limit + half - 1)); in tcp_send_challenge_ack()
|
/linux-6.3-rc2/net/bluetooth/ |
A D | mgmt.c | 7388 conn_info_age = get_random_u32_inclusive(hdev->conn_info_min_age, in get_conn_info()
|