Lines Matching refs:min_nr

18 	int min_nr;		/* nr of elements at *elements */  member
35 return READ_ONCE(pool->curr_nr) >= pool->min_nr; in mempool_is_saturated()
39 int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
42 int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
45 extern mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn,
47 extern mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn,
65 mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc) in mempool_init_slab_pool() argument
67 return mempool_init(pool, min_nr, mempool_alloc_slab, in mempool_init_slab_pool()
72 mempool_create_slab_pool(int min_nr, struct kmem_cache *kc) in mempool_create_slab_pool() argument
74 return mempool_create(min_nr, mempool_alloc_slab, mempool_free_slab, in mempool_create_slab_pool()
85 static inline int mempool_init_kmalloc_pool(mempool_t *pool, int min_nr, size_t size) in mempool_init_kmalloc_pool() argument
87 return mempool_init(pool, min_nr, mempool_kmalloc, in mempool_init_kmalloc_pool()
91 static inline mempool_t *mempool_create_kmalloc_pool(int min_nr, size_t size) in mempool_create_kmalloc_pool() argument
93 return mempool_create(min_nr, mempool_kmalloc, mempool_kfree, in mempool_create_kmalloc_pool()
104 static inline int mempool_init_page_pool(mempool_t *pool, int min_nr, int order) in mempool_init_page_pool() argument
106 return mempool_init(pool, min_nr, mempool_alloc_pages, in mempool_init_page_pool()
110 static inline mempool_t *mempool_create_page_pool(int min_nr, int order) in mempool_create_page_pool() argument
112 return mempool_create(min_nr, mempool_alloc_pages, mempool_free_pages, in mempool_create_page_pool()