Home
last modified time | relevance | path

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

/net/sched/
Dsch_netem.c200 u32 rnd = prandom_u32(); in loss_4state() local
214 if (rnd < clg->a4) { in loss_4state()
217 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { in loss_4state()
220 } else if (clg->a1 + clg->a4 < rnd) { in loss_4state()
226 if (rnd < clg->a5) { in loss_4state()
235 if (rnd < clg->a3) in loss_4state()
237 else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { in loss_4state()
239 } else if (clg->a2 + clg->a3 < rnd) { in loss_4state()
321 u32 rnd; in tabledist() local
326 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.c459 u8 rnd[8]; in init_sample_table() local
466 prandom_bytes(rnd, sizeof(rnd)); in init_sample_table()
468 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
Drc80211_minstrel_ht.c1428 u8 rnd[MCS_GROUP_RATES]; in init_sample_table() local
1432 prandom_bytes(rnd, sizeof(rnd)); in init_sample_table()
1434 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
/net/ieee802154/6lowpan/
Dreassembly.c44 net_get_random_once(&lowpan_frags.rnd, sizeof(lowpan_frags.rnd)); in lowpan_hash_frag()
48 lowpan_frags.rnd); in lowpan_hash_frag()
/net/ipv6/netfilter/
Dnf_conntrack_reasm.c158 net_get_random_once(&nf_frags.rnd, sizeof(nf_frags.rnd)); in nf_hash_frag()
160 (__force u32)id, nf_frags.rnd); in nf_hash_frag()
/net/ipv6/
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/netfilter/
Dxt_hashlimit.c106 u_int32_t rnd; /* random seed for hash */ member
156 ht->rnd); in hash_dst()
205 get_random_bytes(&ht->rnd, sizeof(ht->rnd)); in dsthash_alloc_init()
/net/ipv4/
Dip_fragment.c107 net_get_random_once(&ip4_frags.rnd, sizeof(ip4_frags.rnd)); in ipqhashfn()
110 ip4_frags.rnd); in ipqhashfn()
Dinet_fragment.c76 get_random_bytes(&f->rnd, sizeof(u32)); in inet_frag_secret_rebuild()