Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireguard/selftest/
A Dallowedips.c288 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 …]
/linux/drivers/media/test-drivers/vivid/
A 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()
A Dvivid-kthread-out.c53 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_vid_out_tick()
A Dvivid-sdr-cap.c92 prandom_u32_max(100) < dev->perc_dropped_buffers) in vivid_thread_sdr_cap_tick()
/linux/kernel/kcsan/
A Dselftest.c36 size_t size = prandom_u32_max(MAX_ENCODABLE_SIZE) + 1; in test_encode_decode()
37 bool is_write = !!prandom_u32_max(2); in test_encode_decode()
/linux/arch/powerpc/crypto/
A 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/drivers/media/test-drivers/vidtv/
A 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/drivers/net/wireguard/
A 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/mm/damon/
A Dprmtv-common.h12 #define damon_rand(l, r) (l + prandom_u32_max(r - l))
/linux/drivers/net/team/
A Dteam_mode_random.c19 port_index = prandom_u32_max(team->en_port_count); in rnd_transmit()
/linux/drivers/dma-buf/
A Dst-dma-fence-chain.c399 seqno = prandom_u32_max(data->fc.chain_length) + 1; in __find_race()
428 seqno = prandom_u32_max(data->fc.chain_length - 1); in __find_race()
636 swp = prandom_u32_max(count + 1); in randomise_fences()
/linux/include/linux/
A Dprandom.h94 static inline u32 prandom_u32_max(u32 ep_ro) in prandom_u32_max() function
/linux/mm/kfence/
A Dcore.c409 if (prandom_u32_max(2)) { in kfence_guarded_alloc()
448 if (CONFIG_KFENCE_STRESS_TEST_FAULTS && !prandom_u32_max(CONFIG_KFENCE_STRESS_TEST_FAULTS)) in kfence_guarded_alloc()
A Dkfence_test.c536 const size_t size = setup_test_cache(test, 8 + prandom_u32_max(300), 0, in test_free_bulk()
/linux/lib/
A Dtest_rhashtable.c371 u32 i = prandom_u32_max(entries); in test_rhltable()
414 i = prandom_u32_max(entries); in test_rhltable()
A Drandom32.c547 expires = round_jiffies(jiffies + 40 * HZ + prandom_u32_max(40 * HZ)); in prandom_reseed()
A Dtest_printf.c118 rand = 1 + prandom_u32_max(elen+1); in __test()
/linux/net/batman-adv/
A Dbat_v_ogm.c93 msecs += prandom_u32_max(msecs / 5) - (msecs / 10); in batadv_v_ogm_start_queue_timer()
112 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_ogm_start_timer()
A Dbat_v_elp.c54 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_elp_start_timer()
/linux/drivers/media/common/v4l2-tpg/
A 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/net/sched/
A Dsch_choke.c187 *pidx = (q->head + prandom_u32_max(choke_len(q))) & q->tab_mask; in choke_peek_random()
/linux/drivers/bus/mhi/core/
A Dinternal.h471 #define MHI_RANDOM_U32_NONZERO(bmsk) (prandom_u32_max(bmsk) + 1)
/linux/drivers/pci/
A Dp2pdma.c676 pdev = pci_dev_get(closest_pdevs[prandom_u32_max(dev_cnt)]); in pci_p2pmem_find_many()
/linux/crypto/
A Drsa-pkcs1pad.c256 req_ctx->in_buf[i] = 1 + prandom_u32_max(255); in pkcs1pad_encrypt()
/linux/net/sctp/
A Dtransport.c202 expires + prandom_u32_max(transport->rto))) in sctp_transport_reset_hb_timer()

Completed in 165 milliseconds

12