Searched refs:rnd (Results 1 – 12 of 12) sorted by relevance
/net/sched/ |
D | sch_netem.c | 213 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 …]
|
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 | 420 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()
|
D | rc80211_minstrel_ht.c | 1168 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/ |
D | inet6_connection_sock.c | 102 const u32 rnd, const u32 synq_hsize) in inet6_synq_hash() argument 109 rnd); in inet6_synq_hash()
|
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/ieee802154/ |
D | reassembly.c | 55 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/ |
D | nf_conntrack_reasm.c | 159 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/ |
D | xt_hashlimit.c | 105 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/ |
D | ip_fragment.c | 105 net_get_random_once(&ip4_frags.rnd, sizeof(ip4_frags.rnd)); in ipqhashfn() 108 ip4_frags.rnd); in ipqhashfn()
|
D | inet_connection_sock.c | 471 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()
|
D | inet_fragment.c | 76 get_random_bytes(&f->rnd, sizeof(u32)); in inet_frag_secret_rebuild()
|