Lines Matching refs:hash_sz
466 size_t hash_sz = 0; in cache_alloc() local
471 hash_sz = DB_NUM(hdp, DB_LINK) / AVG_CHAIN_SIZE; in cache_alloc()
473 hash_sz = (hash_sz >= MIN_HASH_SIZE) ? hash_sz : MIN_HASH_SIZE; in cache_alloc()
475 CACHE(hdp)->hash = calloc(hash_sz, sizeof (cache_link_t *)); in cache_alloc()
479 CACHE(hdp)->hash_sz = hash_sz; in cache_alloc()
1070 assert((CACHE(hdp)->hash == NULL) ^ (CACHE(hdp)->hash_sz != 0)); in cache_free()
1074 CACHE(hdp)->hash_sz = 0; in cache_free()
1930 for (hval = 0; hval < CACHE(hdp)->hash_sz; hval++) { in synchronize_db()
2164 CACHE(hdp)->hash_sz = sz; in cache_dev()
3051 assert(CACHE(hdp)->hash_sz >= MIN_HASH_SIZE); in hashfn()
3057 return (hval % CACHE(hdp)->hash_sz); in hashfn()
3666 for (i = 0; i < CACHE(hdp)->hash_sz; i++) { in walk_all_cache()