Lines Matching refs:curr_nr
27 const int nr = pool->curr_nr; in poison_error()
123 BUG_ON(pool->curr_nr >= pool->min_nr); in add_element()
126 pool->elements[pool->curr_nr++] = element; in add_element()
131 void *element = pool->elements[--pool->curr_nr]; in remove_element()
133 BUG_ON(pool->curr_nr < 0); in remove_element()
152 while (pool->curr_nr) { in mempool_exit()
198 while (pool->curr_nr < pool->min_nr) { in mempool_init_node()
309 while (new_min_nr < pool->curr_nr) { in mempool_resize()
334 pool->curr_nr * sizeof(*new_elements)); in mempool_resize()
339 while (pool->curr_nr < pool->min_nr) { in mempool_resize()
345 if (pool->curr_nr < pool->min_nr) { in mempool_resize()
397 if (likely(pool->curr_nr)) { in mempool_alloc()
491 if (unlikely(READ_ONCE(pool->curr_nr) < pool->min_nr)) { in mempool_free()
493 if (likely(pool->curr_nr < pool->min_nr)) { in mempool_free()