Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 12 of 12) sorted by relevance

/net/sched/
Dsch_netem.c213 u32 rnd = prandom_u32(); in loss_4state() local
227 if (rnd < clg->a4) { in loss_4state()
230 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { in loss_4state()
233 } else if (clg->a1 + clg->a4 < rnd) { in loss_4state()
239 if (rnd < clg->a5) { in loss_4state()
248 if (rnd < clg->a3) in loss_4state()
250 else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { in loss_4state()
252 } else if (clg->a2 + clg->a3 < rnd) { in loss_4state()
334 u32 rnd; in tabledist() local
339 rnd = get_crandom(state); in tabledist()
[all …]
Dsch_pie.c101 u32 rnd; in drop_early() local
130 rnd = prandom_u32(); in drop_early()
131 if (rnd < local_prob) in drop_early()
/net/mac80211/
Drc80211_minstrel.c420 u8 rnd[8]; in init_sample_table() local
427 prandom_bytes(rnd, sizeof(rnd)); in init_sample_table()
429 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
Drc80211_minstrel_ht.c1168 u8 rnd[MCS_GROUP_RATES]; in init_sample_table() local
1172 prandom_bytes(rnd, sizeof(rnd)); in init_sample_table()
1174 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
/net/ipv6/
Dinet6_connection_sock.c102 const u32 rnd, const u32 synq_hsize) in inet6_synq_hash() argument
109 rnd); in inet6_synq_hash()
Dreassembly.c89 net_get_random_once(&ip6_frags.rnd, sizeof(ip6_frags.rnd)); in inet6_hash_frag()
91 (__force u32)id, ip6_frags.rnd); in inet6_hash_frag()
/net/ieee802154/
Dreassembly.c55 net_get_random_once(&lowpan_frags.rnd, sizeof(lowpan_frags.rnd)); in lowpan_hash_frag()
59 lowpan_frags.rnd); in lowpan_hash_frag()
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c159 net_get_random_once(&nf_frags.rnd, sizeof(nf_frags.rnd)); in nf_hash_frag()
161 (__force u32)id, nf_frags.rnd); in nf_hash_frag()
/net/netfilter/
Dxt_hashlimit.c105 u_int32_t rnd; /* random seed for hash */ member
131 ht->rnd); in hash_dst()
180 get_random_bytes(&ht->rnd, sizeof(ht->rnd)); in dsthash_alloc_init()
/net/ipv4/
Dip_fragment.c105 net_get_random_once(&ip4_frags.rnd, sizeof(ip4_frags.rnd)); in ipqhashfn()
108 ip4_frags.rnd); in ipqhashfn()
Dinet_connection_sock.c471 const u32 rnd, const u32 synq_hsize) in inet_synq_hash() argument
473 return jhash_2words((__force u32)raddr, (__force u32)rport, rnd) & (synq_hsize - 1); in inet_synq_hash()
Dinet_fragment.c76 get_random_bytes(&f->rnd, sizeof(u32)); in inet_frag_secret_rebuild()