Lines Matching defs:hash
127 * hash table is protected with spinlock.
133 unsigned long hash = (unsigned long)sk;
135 hash ^= hash >> 16;
136 hash ^= hash >> 8;
137 hash ^= sk->sk_type;
139 return hash & UNIX_HASH_MOD;
151 unsigned int hash;
153 hash = (__force unsigned int)csum_fold(csum);
154 hash ^= hash >> 8;
155 hash ^= type;
157 return UNIX_HASH_MOD + 1 + (hash & UNIX_HASH_MOD);
327 struct unix_address *addr, unsigned int hash)
332 sk->sk_hash = hash;
370 int len, unsigned int hash)
374 sk_for_each(s, &net->unx.table.buckets[hash]) {
386 int len, unsigned int hash)
390 spin_lock(&net->unx.table.locks[hash]);
391 s = __unix_find_socket_byname(net, sunname, len, hash);
394 spin_unlock(&net->unx.table.locks[hash]);
400 unsigned int hash = unix_bsd_hash(i);
403 spin_lock(&bsd_socket_locks[hash]);
404 sk_for_each_bound(s, &bsd_socket_buckets[hash]) {
409 spin_unlock(&bsd_socket_locks[hash]);
413 spin_unlock(&bsd_socket_locks[hash]);
1117 unsigned int hash = unix_abstract_hash(sunaddr, addr_len, type);
1121 sk = unix_find_socket_byname(net, sunaddr, addr_len, hash);
1227 * Get the parent directory, calculate the hash for last
1613 * otheru in hash under its lock. Insertion into the
1614 * hash chain we'd found it in had been done in an
3280 if (u->addr) { // under a hash table lock here