• Home
  • Raw
  • Download

Lines Matching refs:hash

275 	int hash = item->ek_fsidtype;  in svc_expkey_lookup()  local
279 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_lookup()
280 hash ^= hash_ptr(item->ek_client, EXPKEY_HASHBITS); in svc_expkey_lookup()
281 hash &= EXPKEY_HASHMASK; in svc_expkey_lookup()
284 hash); in svc_expkey_lookup()
295 int hash = new->ek_fsidtype; in svc_expkey_update() local
299 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_update()
300 hash ^= hash_ptr(new->ek_client, EXPKEY_HASHBITS); in svc_expkey_update()
301 hash &= EXPKEY_HASHMASK; in svc_expkey_update()
304 &old->h, hash); in svc_expkey_update()
745 int hash; in svc_export_lookup() local
746 hash = hash_ptr(exp->ex_client, EXPORT_HASHBITS); in svc_export_lookup()
747 hash ^= hash_ptr(exp->ex_path.dentry, EXPORT_HASHBITS); in svc_export_lookup()
748 hash ^= hash_ptr(exp->ex_path.mnt, EXPORT_HASHBITS); in svc_export_lookup()
751 hash); in svc_export_lookup()
762 int hash; in svc_export_update() local
763 hash = hash_ptr(old->ex_client, EXPORT_HASHBITS); in svc_export_update()
764 hash ^= hash_ptr(old->ex_path.dentry, EXPORT_HASHBITS); in svc_export_update()
765 hash ^= hash_ptr(old->ex_path.mnt, EXPORT_HASHBITS); in svc_export_update()
769 hash); in svc_export_update()
1364 unsigned hash, export; in e_start() local
1371 hash = n >> 32; in e_start()
1375 for (ch=export_table[hash]; ch; ch=ch->next) in e_start()
1380 hash++; in e_start()
1382 } while(hash < EXPORT_HASHMAX && export_table[hash]==NULL); in e_start()
1383 if (hash >= EXPORT_HASHMAX) in e_start()
1386 return export_table[hash]; in e_start()
1392 int hash = (*pos >> 32); in e_next() local
1395 hash = 0; in e_next()
1397 hash++; in e_next()
1404 while (hash < EXPORT_HASHMAX && export_table[hash] == NULL) { in e_next()
1405 hash++; in e_next()
1408 if (hash >= EXPORT_HASHMAX) in e_next()
1411 return export_table[hash]; in e_next()