Lines Matching full:elements
127 pool->elements[pool->curr_nr++] = element; in add_element()
132 void *element = pool->elements[--pool->curr_nr]; in remove_element()
145 * Free all reserved elements in @pool and @pool itself. This function
157 kfree(pool->elements); in mempool_exit()
158 pool->elements = NULL; in mempool_exit()
167 * Free all reserved elements in @pool and @pool itself. This function
191 pool->elements = kmalloc_array_node(min_nr, sizeof(void *), in mempool_init_node()
193 if (!pool->elements) in mempool_init_node()
217 * @min_nr: the minimum number of elements guaranteed to be
239 * @min_nr: the minimum number of elements guaranteed to be
285 * @new_min_nr: the new minimum number of elements guaranteed to be
334 memcpy(new_elements, pool->elements, in mempool_resize()
336 kfree(pool->elements); in mempool_resize()
337 pool->elements = new_elements; in mempool_resize()
485 * to min_nr after the allocation of @element, the elements in mempool_free()
489 * ensures that there will be frees which return elements to the in mempool_free()