Lines Matching refs:hash
107 * we could use _single_ hash table for all
108 * nets by injecting net id into the hash but
109 * it would increase hash chains and add
154 unsigned char hash = 0;
158 hash ^= addr[i];
160 hash ^= (__force __u32)sid >> i;
162 hash ^= hash >> i;
164 return hash & PPPOE_HASH_MASK;
175 int hash = hash_item(sid, addr);
178 ret = pn->hash_table[hash];
192 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote);
195 ret = pn->hash_table[hash];
204 po->next = pn->hash_table[hash];
205 pn->hash_table[hash] = po;
213 int hash = hash_item(sid, addr);
216 ret = pn->hash_table[hash];
217 src = &pn->hash_table[hash];
338 * hash chain. We dropped locks so the world may have
1108 int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote);
1111 while (++hash < PPPOE_HASH_SIZE) {
1112 po = pn->hash_table[hash];