Lines Matching refs:hash

128 	unsigned long hash = (unsigned long)addr;
130 hash ^= hash >> 16;
131 hash ^= hash >> 8;
132 hash %= UNIX_HASH_SIZE;
133 return &unix_socket_table[UNIX_HASH_SIZE + hash];
136 #define UNIX_ABSTRACT(sk) (unix_sk(sk)->addr->hash < UNIX_HASH_SIZE)
168 * hash table is protected with spinlock unix_table_lock
174 unsigned int hash = (__force unsigned int)csum_fold(n);
176 hash ^= hash>>8;
177 return hash&(UNIX_HASH_SIZE-1);
281 int len, int type, unsigned int hash)
285 sk_for_each(s, &unix_socket_table[hash ^ type]) {
301 unsigned int hash)
306 s = __unix_find_socket_byname(net, sunname, len, type, hash);
915 addr->hash = unix_hash_fold(csum_partial(addr->name, addr->len, 0));
921 addr->hash)) {
936 addr->hash ^= sk->sk_type;
940 __unix_insert_socket(&unix_socket_table[addr->hash], sk);
950 int type, unsigned int hash, int *error)
985 u = unix_find_socket_byname(net, sunname, len, type, hash);
1009 * Get the parent directory, calculate the hash for last
1040 unsigned int hash;
1055 err = unix_mkname(sunaddr, addr_len, &hash);
1086 addr->hash = hash ^ sk->sk_type;
1090 addr->hash = UNIX_HASH_SIZE;
1091 hash = d_backing_inode(path.dentry)->i_ino & (UNIX_HASH_SIZE - 1);
1094 list = &unix_socket_table[hash];
1099 sk->sk_type, hash)) {
1104 list = &unix_socket_table[addr->hash];
1153 unsigned int hash;
1161 err = unix_mkname(sunaddr, alen, &hash);
1171 other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err);
1258 unsigned int hash;
1263 err = unix_mkname(sunaddr, addr_len, &hash);
1293 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err);
1383 * otheru in hash under unix_table_lock. Insertion
1384 * into the hash chain we'd found it in had been done
1692 unsigned int hash;
1709 err = unix_mkname(sunaddr, msg->msg_namelen, &hash);
1764 hash, &err);