Lines Matching refs:hash
102 char hash = 0;
107 hash ^= addr[i] >> ( j * PPTP_HASH_BITS );
112 hash ^= ipaddr >> (i*PPTP_HASH_BITS);
114 return hash & ( PPTP_HASH_SIZE - 1 );
127 int hash = hash_item(ipaddr, addr);
130 ret = item_hash_table[hash];
140 int hash = hash_item(po->pptp_pa.srcaddr, po->pptp_pa.remote);
143 ret = item_hash_table[hash];
151 po->next = item_hash_table[hash];
152 item_hash_table[hash] = po;
159 int hash = hash_item(ipaddr, addr);
162 ret = item_hash_table[hash];
163 src = &item_hash_table[hash];
231 int hash;
235 for (hash = 0; hash < PPTP_HASH_SIZE; hash++) {
236 struct pppox_sock *po = item_hash_table[hash];
270 /* Restart scan at the beginning of this hash chain.
275 po = item_hash_table[hash];
619 /* Write lock on hash lock protects the entire "po" struct from
621 * be considered part of the hash table contents, thus protected
622 * by the hash table lock */