/kernel/linux/linux-5.10/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() 313 prandom_u32_max(256)); 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() 357 prandom_u32_max(256)); in randomized_test() [all …]
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | selftest.c | 31 size_t size = prandom_u32_max(MAX_ENCODABLE_SIZE) + 1; in test_encode_decode() 32 bool is_write = !!prandom_u32_max(2); in test_encode_decode()
|
/kernel/linux/linux-5.10/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() 107 rds.lsb = prandom_u32_max(256); in vivid_radio_rx_read() 108 rds.msb = prandom_u32_max(256); in vivid_radio_rx_read()
|
D | vivid-kthread-out.c | 53 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_vid_out_tick()
|
D | vivid-sdr-cap.c | 92 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_sdr_cap_tick()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/team/ |
D | team_mode_random.c | 19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
|
/kernel/linux/linux-5.10/include/linux/ |
D | prandom.h | 85 static inline u32 prandom_u32_max(u32 ep_ro) in prandom_u32_max() function
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
D | st-dma-fence-chain.c | 407 seqno = prandom_u32_max(data->fc.chain_length) + 1; in __find_race() 436 seqno = prandom_u32_max(data->fc.chain_length - 1); in __find_race() 644 swp = prandom_u32_max(count + 1); in randomise_fences()
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | bat_v_ogm.c | 92 msecs += prandom_u32_max(msecs / 5) - (msecs / 10); in batadv_v_ogm_start_queue_timer() 111 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_ogm_start_timer()
|
D | bat_v_elp.c | 53 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_elp_start_timer()
|
D | bat_iv_ogm.c | 284 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_iv_ogm_emit_send_time() 292 return jiffies + msecs_to_jiffies(prandom_u32_max(BATADV_JITTER / 2)); in batadv_iv_ogm_fwd_send_time()
|
/kernel/linux/linux-5.10/lib/ |
D | test_rhashtable.c | 371 u32 i = prandom_u32_max(entries); in test_rhltable() 414 i = prandom_u32_max(entries); in test_rhltable()
|
D | random32.c | 546 expires = round_jiffies(jiffies + 40 * HZ + prandom_u32_max(40 * HZ)); in prandom_reseed()
|
D | test_printf.c | 116 rand = 1 + prandom_u32_max(elen+1); in __test()
|
/kernel/linux/linux-5.10/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 869 r = g = b = prandom_u32_max(256); in precalculate_color() 871 r = g = b = tpg->qual_offset + prandom_u32_max(196); in precalculate_color() 2283 params->twopixsize * prandom_u32_max(tpg->src_width / 2); in tpg_fill_params_extras() 2454 twopixsize * prandom_u32_max(tpg->src_width / 2); in tpg_fill_plane_pattern() 2456 twopixsize * prandom_u32_max(tpg->src_width / 2); in tpg_fill_plane_pattern()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | transport.c | 198 expires + prandom_u32_max(transport->rto))) in sctp_transport_reset_hb_timer()
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_choke.c | 187 *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; in choke_peek_random()
|
/kernel/linux/linux-5.10/drivers/bus/mhi/host/ |
D | internal.h | 457 #define MHI_RANDOM_U32_NONZERO(bmsk) (prandom_u32_max(bmsk) + 1)
|
/kernel/linux/linux-5.10/drivers/pci/ |
D | p2pdma.c | 696 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()
|
/kernel/linux/linux-5.10/crypto/ |
D | rsa-pkcs1pad.c | 254 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_bbr.c | 619 bbr->cycle_idx = CYCLE_LEN - 1 - prandom_u32_max(bbr_cycle_rand); in bbr_reset_probe_bw_mode()
|
D | icmp.c | 274 credit = max_t(int, credit - prandom_u32_max(3), 0); in icmp_global_allow()
|