Lines Matching defs:hash
50 uint32_t hash;
66 uint32_t (*hash)(const void *key);
98 util_cache_create(uint32_t (*hash)(const void *key),
109 cache->hash = hash;
130 * Try to find a cache entry, given the key and hash of the key.
134 uint32_t hash,
138 uint32_t index = hash % cache->size;
153 if (current->hash == hash &&
200 uint32_t hash;
205 hash = cache->hash(key);
206 entry = util_cache_entry_get(cache, hash, key);
220 entry->hash = hash;
239 uint32_t hash;
244 hash = cache->hash(key);
245 entry = util_cache_entry_get(cache, hash, key);
300 * the hash function is a poor one */
321 uint32_t hash;
327 hash = cache->hash(key);
329 entry = util_cache_entry_get(cache, hash, key);
356 assert(header->hash == cache->hash(header->key));