Lines Matching full:elements
132 pool->elements[pool->curr_nr++] = element; in add_element()
137 void *element = pool->elements[--pool->curr_nr]; in remove_element()
150 * Free all reserved elements in @pool and @pool itself. This function
162 kfree(pool->elements); in mempool_exit()
163 pool->elements = NULL; in mempool_exit()
172 * Free all reserved elements in @pool and @pool itself. This function
196 pool->elements = kmalloc_array_node(min_nr, sizeof(void *), in mempool_init_node()
198 if (!pool->elements) in mempool_init_node()
222 * @min_nr: the minimum number of elements guaranteed to be
244 * @min_nr: the minimum number of elements guaranteed to be
290 * @new_min_nr: the new minimum number of elements guaranteed to be
339 memcpy(new_elements, pool->elements, in mempool_resize()
341 kfree(pool->elements); in mempool_resize()
342 pool->elements = new_elements; in mempool_resize()
490 * to min_nr after the allocation of @element, the elements in mempool_free()
494 * ensures that there will be frees which return elements to the in mempool_free()