Lines Matching refs:hash
62 * The bindhash mutex for snum's hash chain must be held here.
298 u32 hash;
302 hash = ipv6_portaddr_hash(sock_net(sk),
307 hash = ipv4_portaddr_hash(sock_net(sk),
310 return inet_lhash2_bucket(h, hash);
346 * @ehashfn: hash function used to generate the fallback hash.
504 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport);
505 unsigned int slot = hash & hashinfo->ehash_mask;
510 if (sk->sk_hash != hash)
551 unsigned int hash = inet_ehashfn(net, daddr, lport,
553 struct inet_ehash_bucket *head = inet_ehash_bucket(hinfo, hash);
554 spinlock_t *lock = inet_ehash_lockp(hinfo, hash);
562 if (sk2->sk_hash != hash)
577 * in hash table socket with a funny identity.
581 sk->sk_hash = hash;
594 /* Silly. Should hash-dance instead... */
865 u32 hash;
869 hash = ipv6_portaddr_hash(net, &in6addr_any, port);
872 hash = ipv4_portaddr_hash(net, 0, port);
874 return &hinfo->bhash2[hash & (hinfo->bhash_size - 1)];
1164 * Bind a port for a connect operation and hash it.
1239 /* no more locks than number of hash buckets */