Home
last modified time | relevance | path

Searched refs:prandom_u32_max (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v5.10/drivers/net/wireguard/selftest/
Dallowedips.c305 cidr = prandom_u32_max(32) + 1; in randomized_test()
306 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test()
320 mutate_amount = prandom_u32_max(32); in randomized_test()
330 prandom_u32_max(256)); in randomized_test()
331 cidr = prandom_u32_max(32) + 1; in randomized_test()
332 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test()
349 cidr = prandom_u32_max(128) + 1; in randomized_test()
350 peer = peers[prandom_u32_max(NUM_PEERS)]; in randomized_test()
364 mutate_amount = prandom_u32_max(128); in randomized_test()
374 prandom_u32_max(256)); in randomized_test()
[all …]
/Linux-v5.10/kernel/kcsan/
Dselftest.c31 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()
/Linux-v5.10/drivers/media/test-drivers/vivid/
Dvivid-radio-rx.c97 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()
Dvivid-kthread-out.c53 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_vid_out_tick()
Dvivid-sdr-cap.c92 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_sdr_cap_tick()
/Linux-v5.10/arch/powerpc/crypto/
Dcrc-vpmsum_test.c80 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-v5.10/drivers/media/test-drivers/vidtv/
Dvidtv_demod.c191 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-v5.10/drivers/net/wireguard/
Dtimers.c150 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-v5.10/drivers/net/team/
Dteam_mode_random.c19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
/Linux-v5.10/drivers/dma-buf/
Dst-dma-fence-chain.c407 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()
/Linux-v5.10/include/linux/
Dprandom.h94 static inline u32 prandom_u32_max(u32 ep_ro) in prandom_u32_max() function
/Linux-v5.10/lib/
Dtest_rhashtable.c371 u32 i = prandom_u32_max(entries); in test_rhltable()
414 i = prandom_u32_max(entries); in test_rhltable()
Drandom32.c546 expires = round_jiffies(jiffies + 40 * HZ + prandom_u32_max(40 * HZ)); in prandom_reseed()
Dtest_printf.c116 rand = 1 + prandom_u32_max(elen+1); in __test()
/Linux-v5.10/net/batman-adv/
Dbat_v_ogm.c92 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()
Dbat_v_elp.c53 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_elp_start_timer()
Dbat_iv_ogm.c284 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()
/Linux-v5.10/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c869 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()
/Linux-v5.10/net/sctp/
Dtransport.c198 expires + prandom_u32_max(transport->rto))) in sctp_transport_reset_hb_timer()
/Linux-v5.10/net/sched/
Dsch_choke.c187 *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; in choke_peek_random()
/Linux-v5.10/drivers/pci/
Dp2pdma.c666 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()
/Linux-v5.10/drivers/bus/mhi/core/
Dinternal.h457 #define MHI_RANDOM_U32_NONZERO(bmsk) (prandom_u32_max(bmsk) + 1)
/Linux-v5.10/crypto/
Drsa-pkcs1pad.c256 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
/Linux-v5.10/net/ipv4/
Dtcp_bbr.c619 bbr->cycle_idx = CYCLE_LEN - 1 - prandom_u32_max(bbr_cycle_rand); in bbr_reset_probe_bw_mode()
Dicmp.c273 credit = max_t(int, credit - prandom_u32_max(3), 0); in icmp_global_allow()

12