Searched refs:hash_sz (Results 1 – 4 of 4) sorted by path
467 size_t hash_sz = 0; in cache_alloc() local472 hash_sz = DB_NUM(hdp, DB_LINK) / AVG_CHAIN_SIZE; in cache_alloc()474 hash_sz = (hash_sz >= MIN_HASH_SIZE) ? hash_sz : MIN_HASH_SIZE; in cache_alloc()476 CACHE(hdp)->hash = calloc(hash_sz, sizeof (cache_link_t *)); in cache_alloc()480 CACHE(hdp)->hash_sz = hash_sz; in cache_alloc()1075 CACHE(hdp)->hash_sz = 0; in cache_free()1931 for (hval = 0; hval < CACHE(hdp)->hash_sz; hval++) { in synchronize_db()2165 CACHE(hdp)->hash_sz = sz; in cache_dev()3052 assert(CACHE(hdp)->hash_sz >= MIN_HASH_SIZE); in hashfn()3058 return (hval % CACHE(hdp)->hash_sz); in hashfn()[all …]
127 uint_t hash_sz; /* number of hash chains */ member
67 #define TIDHASH(tid, hash_sz) ((tid) & ((hash_sz) - 1)) argument
6145 int hash_sz; in ddi_soft_state_bystr_init() local6153 if (hash_sz < SS_MIN_HASH_SZ) in ddi_soft_state_bystr_init()6154 hash_sz = SS_MIN_HASH_SZ; in ddi_soft_state_bystr_init()6155 else if (hash_sz > SS_MAX_HASH_SZ) in ddi_soft_state_bystr_init()6156 hash_sz = SS_MAX_HASH_SZ; in ddi_soft_state_bystr_init()6162 hash_sz, mod_hash_null_valdtor); in ddi_soft_state_bystr_init()6254 int hash_sz; in ddi_strid_init() local6261 if (hash_sz < SS_MIN_HASH_SZ) in ddi_strid_init()6262 hash_sz = SS_MIN_HASH_SZ; in ddi_strid_init()6263 else if (hash_sz > SS_MAX_HASH_SZ) in ddi_strid_init()[all …]