Lines Matching refs:hash
55 struct cache_head *key, int hash) in sunrpc_cache_lookup() argument
60 head = &detail->hash_table[hash]; in sunrpc_cache_lookup()
140 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument
171 head = &detail->hash_table[hash]; in sunrpc_cache_update()
530 hlist_del_init(&dreq->hash); in __unhash_deferred_req()
539 int hash = DFR_HASH(item); in __hash_deferred_req() local
542 hlist_add_head(&dreq->hash, &cache_defer_hash[hash]); in __hash_deferred_req()
594 if (!hlist_unhashed(&sleeper.handle.hash)) { in cache_wait_req()
665 int hash = DFR_HASH(item); in cache_revisit_request() local
670 hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) in cache_revisit_request()
1281 unsigned int hash, entry; in c_start() local
1289 hash = n >> 32; in c_start()
1292 for (ch=cd->hash_table[hash]; ch; ch=ch->next) in c_start()
1297 hash++; in c_start()
1299 } while(hash < cd->hash_size && in c_start()
1300 cd->hash_table[hash]==NULL); in c_start()
1301 if (hash >= cd->hash_size) in c_start()
1304 return cd->hash_table[hash]; in c_start()
1310 int hash = (*pos >> 32); in c_next() local
1314 hash = 0; in c_next()
1316 hash++; in c_next()
1323 while (hash < cd->hash_size && in c_next()
1324 cd->hash_table[hash] == NULL) { in c_next()
1325 hash++; in c_next()
1328 if (hash >= cd->hash_size) in c_next()
1331 return cd->hash_table[hash]; in c_next()