Home
last modified time | relevance | path

Searched refs:hash_rnd (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/include/net/
Dndisc.h147 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() argument
151 return (((p32[0] ^ hash32_ptr(dev)) * hash_rnd[0]) + in ndisc_hashfn()
152 (p32[1] * hash_rnd[1]) + in ndisc_hashfn()
153 (p32[2] * hash_rnd[2]) + in ndisc_hashfn()
154 (p32[3] * hash_rnd[3])); in ndisc_hashfn()
Darp.h12 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn() argument
17 return val * hash_rnd[0]; in arp_hashfn()
Dflowcache.h12 u32 hash_rnd; member
Dneighbour.h184 __u32 hash_rnd[NEIGH_NUM_HASH_RND]; member
196 __u32 *hash_rnd);
274 __u32 *hash_rnd), in ___neigh_lookup_noref() argument
282 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_lookup_noref()
Drequest_sock.h133 u32 hash_rnd; member
/linux-4.1.27/include/linux/
Drhashtable.h70 u32 hash_rnd; member
218 hash = ht->p.hashfn(key, ht->key_len, tbl->hash_rnd); in rht_key_hashfn()
223 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
225 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
228 tbl->hash_rnd); in rht_key_hashfn()
233 hash = params.hashfn(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
235 hash = jhash(key, key_len, tbl->hash_rnd); in rht_key_hashfn()
250 tbl->hash_rnd)) : in rht_head_hashfn()
/linux-4.1.27/net/core/
Drequest_sock.c60 get_random_bytes(&lopt->hash_rnd, sizeof(lopt->hash_rnd)); in reqsk_queue_alloc()
Dflow.c153 get_random_bytes(&fcp->hash_rnd, sizeof(u32)); in flow_new_hash_rnd()
166 return jhash2(k, length, fcp->hash_rnd) in flow_hash_code()
Dneighbour.c336 neigh_get_hash_rnd(&ret->hash_rnd[i]); in neigh_hash_alloc()
377 new_nht->hash_rnd); in neigh_hash_grow()
428 hash_val = tbl->hash(pkey, NULL, nht->hash_rnd) >> (32 - nht->hash_shift); in neigh_lookup_nodev()
495 hash_val = tbl->hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in __neigh_create()
1821 ndc.ndtc_hash_rnd = nht->hash_rnd[0]; in neightbl_fill_info()
/linux-4.1.27/net/netfilter/
Dxt_recent.c112 static u_int32_t hash_rnd __read_mostly;
117 return jhash_1word((__force u32)addr->ip, hash_rnd) & in recent_entry_hash4()
123 return jhash2((u32 *)addr->ip6, ARRAY_SIZE(addr->ip6), hash_rnd) & in recent_entry_hash6()
344 get_random_bytes(&hash_rnd, sizeof(hash_rnd)); in recent_mt_check()
/linux-4.1.27/net/ipv6/
Dinet6_connection_sock.c126 u32 hash = inet6_synq_hash(raddr, rport, lopt->hash_rnd, in inet6_csk_search_req()
157 lopt->hash_rnd, lopt->nr_table_entries); in inet6_csk_reqsk_queue_hash_add()
Dndisc.c86 __u32 *hash_rnd);
295 __u32 *hash_rnd) in ndisc_hash() argument
297 return ndisc_hashfn(pkey, dev, hash_rnd); in ndisc_hash()
/linux-4.1.27/net/decnet/
Ddn_neigh.c67 __u32 *hash_rnd) in dn_neigh_hash() argument
69 return jhash_2words(*(__u16 *)pkey, 0, hash_rnd[0]); in dn_neigh_hash()
/linux-4.1.27/lib/
Drhashtable.c137 get_random_bytes(&tbl->hash_rnd, sizeof(tbl->hash_rnd)); in bucket_table_alloc()
/linux-4.1.27/net/mac80211/
Dmesh_pathtbl.c109 get_random_bytes(&newtbl->hash_rnd, in mesh_table_alloc()
110 sizeof(newtbl->hash_rnd)); in mesh_table_alloc()
193 tbl->hash_rnd) & tbl->hash_mask; in mesh_table_hash()
Dmesh.h152 __u32 hash_rnd; /* Used for hash generation */ member
Dsta_info.h566 rht_bucket_index(_tbl, sta_addr_hash(_a, ETH_ALEN, (_tbl)->hash_rnd))
/linux-4.1.27/net/ipv4/
Darp.c124 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd);
212 __u32 *hash_rnd) in arp_hash() argument
214 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash()
Dinet_connection_sock.c495 u32 hash = inet_synq_hash(raddr, rport, lopt->hash_rnd, in inet_csk_search_req()
524 lopt->hash_rnd, lopt->nr_table_entries); in inet_csk_reqsk_queue_hash_add()