Lines Matching refs:nvp_nbuckets
261 ASSERT0(priv->nvp_nbuckets); in nvt_tab_alloc()
269 priv->nvp_nbuckets = buckets; in nvt_tab_alloc()
278 ASSERT0(priv->nvp_nbuckets); in nvt_tab_free()
283 nv_mem_free(priv, tab, priv->nvp_nbuckets * sizeof (i_nvp_t *)); in nvt_tab_free()
286 priv->nvp_nbuckets = 0; in nvt_tab_free()
330 ASSERT0(priv->nvp_nbuckets); in nvt_lookup_name_type()
334 ASSERT(priv->nvp_nbuckets != 0); in nvt_lookup_name_type()
338 uint64_t index = hash & (priv->nvp_nbuckets - 1); in nvt_lookup_name_type()
340 ASSERT3U(index, <, priv->nvp_nbuckets); in nvt_lookup_name_type()
368 uint32_t size = priv->nvp_nbuckets; in nvt_resize()
399 priv->nvp_nbuckets = new_size; in nvt_resize()
412 return (priv->nvp_nentries > priv->nvp_nbuckets && in nvt_needs_togrow()
413 (UINT32_MAX >> 1) >= priv->nvp_nbuckets); in nvt_needs_togrow()
424 uint32_t current_size = priv->nvp_nbuckets; in nvt_grow()
438 ASSERT3U(priv->nvp_nbuckets, >=, nvlist_hashtable_init_size); in nvt_needs_toshrink()
439 if (priv->nvp_nbuckets == nvlist_hashtable_init_size) in nvt_needs_toshrink()
441 return (priv->nvp_nentries <= (priv->nvp_nbuckets >> 2)); in nvt_needs_toshrink()
452 uint32_t current_size = priv->nvp_nbuckets; in nvt_shrink()
472 uint64_t index = hash & (priv->nvp_nbuckets - 1); in nvt_remove_nvpair()
474 ASSERT3U(index, <, priv->nvp_nbuckets); in nvt_remove_nvpair()
527 uint64_t index = hash & (priv->nvp_nbuckets - 1); in nvt_add_nvpair()
529 ASSERT3U(index, <, priv->nvp_nbuckets); in nvt_add_nvpair()