Lines Matching refs:curr_nr
28 const int nr = pool->curr_nr; in poison_error()
124 BUG_ON(pool->curr_nr >= pool->min_nr); in add_element()
127 pool->elements[pool->curr_nr++] = element; in add_element()
132 void *element = pool->elements[--pool->curr_nr]; in remove_element()
134 BUG_ON(pool->curr_nr < 0); in remove_element()
153 while (pool->curr_nr) { in mempool_exit()
199 while (pool->curr_nr < pool->min_nr) { in mempool_init_node()
310 while (new_min_nr < pool->curr_nr) { in mempool_resize()
335 pool->curr_nr * sizeof(*new_elements)); in mempool_resize()
340 while (pool->curr_nr < pool->min_nr) { in mempool_resize()
346 if (pool->curr_nr < pool->min_nr) { in mempool_resize()
398 if (likely(pool->curr_nr)) { in mempool_alloc()
492 if (unlikely(pool->curr_nr < pool->min_nr)) { in mempool_free()
494 if (likely(pool->curr_nr < pool->min_nr)) { in mempool_free()