Searched refs:rnd (Results 1 – 10 of 10) sorted by relevance
/net/sched/ |
D | sch_netem.c | 200 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 …]
|
D | sch_pie.c | 101 u32 rnd; in drop_early() local 130 rnd = prandom_u32(); in drop_early() 131 if (rnd < local_prob) in drop_early()
|
/net/mac80211/ |
D | rc80211_minstrel.c | 459 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()
|
D | rc80211_minstrel_ht.c | 1428 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/ |
D | reassembly.c | 44 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/ |
D | nf_conntrack_reasm.c | 158 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/ |
D | reassembly.c | 89 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/ |
D | xt_hashlimit.c | 106 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/ |
D | ip_fragment.c | 107 net_get_random_once(&ip4_frags.rnd, sizeof(ip4_frags.rnd)); in ipqhashfn() 110 ip4_frags.rnd); in ipqhashfn()
|
D | inet_fragment.c | 76 get_random_bytes(&f->rnd, sizeof(u32)); in inet_frag_secret_rebuild()
|