Lines Matching refs:cap_new
158 uint_t cap_old, cap_new; in group_grow_set() local
167 if ((cap_new = (cap_old << 1)) == 0) { in group_grow_set()
172 cap_new = GRP_SET_SIZE_DEFAULT; in group_grow_set()
173 g->grp_set = kmem_zalloc(cap_new * sizeof (void *), KM_SLEEP); in group_grow_set()
174 g->grp_capacity = cap_new; in group_grow_set()
180 set_new = kmem_zalloc(cap_new * sizeof (void *), KM_SLEEP); in group_grow_set()
183 g->grp_capacity = cap_new; in group_grow_set()
189 ASSERT(((cap_new - 1) & cap_new) == 0); in group_grow_set()
198 uint_t cap_old, cap_new; in group_shrink_set() local
209 cap_new = cap_old >> 1; in group_shrink_set()
214 if (cap_new < GRP_SET_SIZE_DEFAULT) in group_shrink_set()
217 set_new = kmem_zalloc(cap_new * sizeof (void *), KM_SLEEP); in group_shrink_set()
218 (void) kcopy(set_old, set_new, cap_new * sizeof (void *)); in group_shrink_set()
219 g->grp_capacity = cap_new; in group_shrink_set()
222 ASSERT(((cap_new - 1) & cap_new) == 0); in group_shrink_set()