Lines Matching refs:hash
96 * we could use _single_ hash table for all
97 * nets by injecting net id into the hash but
98 * it would increase hash chains and add
141 unsigned char hash = 0;
145 hash ^= addr[i];
147 hash ^= (__force __u32)sid >> i;
149 hash ^= hash >> i;
151 return hash & PPPOE_HASH_MASK;
162 int hash = hash_item(sid, addr);
165 ret = pn->hash_table[hash];
179 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote);
182 ret = pn->hash_table[hash];
191 po->next = pn->hash_table[hash];
192 pn->hash_table[hash] = po;
200 int hash = hash_item(sid, addr);
203 ret = pn->hash_table[hash];
204 src = &pn->hash_table[hash];
318 * hash chain. We dropped locks so the world may have
1072 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote);
1075 while (++hash < PPPOE_HASH_SIZE) {
1076 po = pn->hash_table[hash];