Searched refs:ih_nbuckets (Results 1 – 2 of 2) sorted by relevance
98 ihp->ih_nbuckets = IPMI_HASHMINSIZE; in ipmi_hash_create()105 ihp->ih_nbuckets * sizeof (void *))) == NULL) { in ipmi_hash_create()164 return (ihp->ih_compute(ihp->ih_convert(elem)) % ihp->ih_nbuckets); in ipmi_hash_compute()170 size_t osize = ihp->ih_nbuckets; in ipmi_hash_resize()190 ihp->ih_nbuckets = nsize; in ipmi_hash_resize()217 ulong_t idx = ihp->ih_compute(search) % ihp->ih_nbuckets; in ipmi_hash_lookup()265 if (++ihp->ih_nelements > ihp->ih_nbuckets / 2) in ipmi_hash_insert()266 ipmi_hash_resize(ihp, ipmi_hash_double(ihp->ih_nbuckets)); in ipmi_hash_insert()288 if (--ihp->ih_nelements < ihp->ih_nbuckets / 4) in ipmi_hash_remove()289 ipmi_hash_resize(ihp, ipmi_hash_half(ihp->ih_nbuckets)); in ipmi_hash_remove()
50 size_t ih_nbuckets; /* number of buckets */ member