Lines Matching refs:hash
251 int hash = item->ek_fsidtype; in svc_expkey_hash() local
255 hash ^= hash_mem(cp, len, EXPKEY_HASHBITS); in svc_expkey_hash()
256 hash ^= hash_ptr(item->ek_client, EXPKEY_HASHBITS); in svc_expkey_hash()
257 hash &= EXPKEY_HASHMASK; in svc_expkey_hash()
258 return hash; in svc_expkey_hash()
265 int hash = svc_expkey_hash(item); in svc_expkey_lookup() local
267 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup()
279 int hash = svc_expkey_hash(new); in svc_expkey_update() local
281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
767 int hash; in svc_export_hash() local
769 hash = hash_ptr(exp->ex_client, EXPORT_HASHBITS); in svc_export_hash()
770 hash ^= hash_ptr(exp->ex_path.dentry, EXPORT_HASHBITS); in svc_export_hash()
771 hash ^= hash_ptr(exp->ex_path.mnt, EXPORT_HASHBITS); in svc_export_hash()
772 return hash; in svc_export_hash()
779 int hash = svc_export_hash(exp); in svc_export_lookup() local
781 ch = sunrpc_cache_lookup(exp->cd, &exp->h, hash); in svc_export_lookup()
792 int hash = svc_export_hash(old); in svc_export_update() local
794 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()
1084 unsigned hash, export; in e_start() local
1092 hash = n >> 32; in e_start()
1096 for (ch=export_table[hash]; ch; ch=ch->next) in e_start()
1101 hash++; in e_start()
1103 } while(hash < EXPORT_HASHMAX && export_table[hash]==NULL); in e_start()
1104 if (hash >= EXPORT_HASHMAX) in e_start()
1107 return export_table[hash]; in e_start()
1113 int hash = (*pos >> 32); in e_next() local
1118 hash = 0; in e_next()
1120 hash++; in e_next()
1127 while (hash < EXPORT_HASHMAX && export_table[hash] == NULL) { in e_next()
1128 hash++; in e_next()
1131 if (hash >= EXPORT_HASHMAX) in e_next()
1134 return export_table[hash]; in e_next()