Lines Matching full:elements
126 pool->elements[pool->curr_nr++] = element; in add_element()
131 void *element = pool->elements[--pool->curr_nr]; in remove_element()
144 * Free all reserved elements in @pool and @pool itself. This function
156 kfree(pool->elements); in mempool_exit()
157 pool->elements = NULL; in mempool_exit()
166 * Free all reserved elements in @pool and @pool itself. This function
190 pool->elements = kmalloc_array_node(min_nr, sizeof(void *), in mempool_init_node()
192 if (!pool->elements) in mempool_init_node()
216 * @min_nr: the minimum number of elements guaranteed to be
238 * @min_nr: the minimum number of elements guaranteed to be
284 * @new_min_nr: the new minimum number of elements guaranteed to be
333 memcpy(new_elements, pool->elements, in mempool_resize()
335 kfree(pool->elements); in mempool_resize()
336 pool->elements = new_elements; in mempool_resize()
484 * to min_nr after the allocation of @element, the elements in mempool_free()
488 * ensures that there will be frees which return elements to the in mempool_free()