Lines Matching refs:hash

58 				       struct cache_head *key, int hash)  in sunrpc_cache_lookup()  argument
63 head = &detail->hash_table[hash]; in sunrpc_cache_lookup()
145 struct cache_head *new, struct cache_head *old, int hash) in sunrpc_cache_update() argument
181 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update()
537 hlist_del_init(&dreq->hash); in __unhash_deferred_req()
546 int hash = DFR_HASH(item); in __hash_deferred_req() local
549 hlist_add_head(&dreq->hash, &cache_defer_hash[hash]); in __hash_deferred_req()
601 if (!hlist_unhashed(&sleeper.handle.hash)) { in cache_wait_req()
672 int hash = DFR_HASH(item); in cache_revisit_request() local
677 hlist_for_each_entry_safe(dreq, tmp, &cache_defer_hash[hash], hash) in cache_revisit_request()
1284 unsigned int hash, entry; in cache_seq_start() local
1291 hash = n >> 32; in cache_seq_start()
1294 hlist_for_each_entry(ch, &cd->hash_table[hash], cache_list) in cache_seq_start()
1299 hash++; in cache_seq_start()
1301 } while(hash < cd->hash_size && in cache_seq_start()
1302 hlist_empty(&cd->hash_table[hash])); in cache_seq_start()
1303 if (hash >= cd->hash_size) in cache_seq_start()
1306 return hlist_entry_safe(cd->hash_table[hash].first, in cache_seq_start()
1314 int hash = (*pos >> 32); in cache_seq_next() local
1318 hash = 0; in cache_seq_next()
1320 hash++; in cache_seq_next()
1328 while (hash < cd->hash_size && in cache_seq_next()
1329 hlist_empty(&cd->hash_table[hash])) { in cache_seq_next()
1330 hash++; in cache_seq_next()
1333 if (hash >= cd->hash_size) in cache_seq_next()
1336 return hlist_entry_safe(cd->hash_table[hash].first, in cache_seq_next()