Home
last modified time | relevance | path

Searched refs:ih_nbuckets (Results 1 – 2 of 2) sorted by relevance

/titanic_50/usr/src/lib/libipmi/common/
H A Dipmi_hash.c100 ihp->ih_nbuckets = IPMI_HASHMINSIZE; in ipmi_hash_create()
107 ihp->ih_nbuckets * sizeof (void *))) == NULL) { in ipmi_hash_create()
166 return (ihp->ih_compute(ihp->ih_convert(elem)) % ihp->ih_nbuckets); in ipmi_hash_compute()
172 size_t osize = ihp->ih_nbuckets; in ipmi_hash_resize()
192 ihp->ih_nbuckets = nsize; in ipmi_hash_resize()
219 ulong_t idx = ihp->ih_compute(search) % ihp->ih_nbuckets; in ipmi_hash_lookup()
267 if (++ihp->ih_nelements > ihp->ih_nbuckets / 2) in ipmi_hash_insert()
268 ipmi_hash_resize(ihp, ipmi_hash_double(ihp->ih_nbuckets)); in ipmi_hash_insert()
290 if (--ihp->ih_nelements < ihp->ih_nbuckets / 4) in ipmi_hash_remove()
291 ipmi_hash_resize(ihp, ipmi_hash_half(ihp->ih_nbuckets)); in ipmi_hash_remove()
H A Dipmi_impl.h50 size_t ih_nbuckets; /* number of buckets */ member