Lines Matching refs:hash
319 static int cache_entry_hash(const void *data, int size, unsigned int *hash)
335 *hash = h % CACHE_HTABLE_SIZE;
480 unsigned int hash;
490 rc = cache_entry_hash(refs[0].path_name, strlen(refs[0].path_name), &hash);
501 hlist_add_head(&ce->hlist, &cache_htable[hash]);
535 static struct cache_entry *__lookup_cache_entry(const char *path, unsigned int hash, int len)
539 hlist_for_each_entry(ce, &cache_htable[hash], hlist) {
549 * Find a DFS cache entry in hash table and optionally check prefix path against normalized @path.
563 unsigned int hash;
570 rc = cache_entry_hash(path, strlen(path), &hash);
573 return __lookup_cache_entry(path, hash, strlen(path));
592 rc = cache_entry_hash(path, len, &hash);
595 ce = __lookup_cache_entry(path, hash, len);