Home
last modified time | relevance | path

Searched refs:hash_sz (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c466 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()
[all …]
H A Ddevinfo_devlink.h127 uint_t hash_sz; /* number of hash chains */ member
/titanic_44/usr/src/uts/common/os/
H A Dsunddi.c6226 int hash_sz; in ddi_soft_state_bystr_init() local
6233 hash_sz = n_items / SS_N_ITEMS_PER_HASH; in ddi_soft_state_bystr_init()
6234 if (hash_sz < SS_MIN_HASH_SZ) in ddi_soft_state_bystr_init()
6235 hash_sz = SS_MIN_HASH_SZ; in ddi_soft_state_bystr_init()
6236 else if (hash_sz > SS_MAX_HASH_SZ) in ddi_soft_state_bystr_init()
6237 hash_sz = SS_MAX_HASH_SZ; in ddi_soft_state_bystr_init()
6243 hash_sz, mod_hash_null_valdtor); in ddi_soft_state_bystr_init()
6335 int hash_sz; in ddi_strid_init() local
6341 hash_sz = n_items / SS_N_ITEMS_PER_HASH; in ddi_strid_init()
6342 if (hash_sz < SS_MIN_HASH_SZ) in ddi_strid_init()
[all …]
H A Dlwp.c68 #define TIDHASH(tid, hash_sz) ((tid) & ((hash_sz) - 1)) argument