/linux-6.6.21/include/linux/ |
D | mempool.h | 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() [all …]
|
D | compat.h | 573 compat_long_t min_nr, 579 compat_long_t min_nr,
|
D | syscalls.h | 308 long min_nr, 313 __s32 min_nr, 318 long min_nr, 324 long min_nr,
|
/linux-6.6.21/mm/ |
D | mempool.c | 129 BUG_ON(pool->curr_nr >= pool->min_nr); in add_element() 185 int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, in mempool_init_node() argument 190 pool->min_nr = min_nr; in mempool_init_node() 196 pool->elements = kmalloc_array_node(min_nr, sizeof(void *), in mempool_init_node() 204 while (pool->curr_nr < pool->min_nr) { in mempool_init_node() 233 int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, in mempool_init() argument 236 return mempool_init_node(pool, min_nr, alloc_fn, free_fn, in mempool_init() 258 mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn, in mempool_create() argument 261 return mempool_create_node(min_nr, alloc_fn, free_fn, pool_data, in mempool_create() 266 mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, in mempool_create_node() argument [all …]
|
/linux-6.6.21/fs/ |
D | aio.c | 1279 static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr, in aio_read_events() argument 1293 return ret < 0 || *i >= min_nr; in aio_read_events() 1296 static long read_events(struct kioctx *ctx, long min_nr, long nr, in read_events() argument 1317 aio_read_events(ctx, min_nr, nr, event, &ret); in read_events() 1320 aio_read_events(ctx, min_nr, nr, event, &ret), in read_events() 2175 long min_nr, in do_io_getevents() argument 2185 if (likely(min_nr <= nr && min_nr >= 0)) in do_io_getevents() 2186 ret = read_events(ioctx, min_nr, nr, events, until); in do_io_getevents() 2208 long, min_nr, in SYSCALL_DEFINE5() argument 2219 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE5() [all …]
|
/linux-6.6.21/fs/ntfs/ |
D | mft.c | 1713 s64 min_nr, nr, ll; in ntfs_mft_data_extend_allocation_nolock() local 1750 min_nr = vol->mft_record_size >> vol->cluster_size_bits; in ntfs_mft_data_extend_allocation_nolock() 1751 if (!min_nr) in ntfs_mft_data_extend_allocation_nolock() 1752 min_nr = 1; in ntfs_mft_data_extend_allocation_nolock() 1756 nr = min_nr; in ntfs_mft_data_extend_allocation_nolock() 1763 nr = min_nr; in ntfs_mft_data_extend_allocation_nolock() 1774 nr > min_nr ? "default" : "minimal", (long long)nr); in ntfs_mft_data_extend_allocation_nolock() 1781 if (PTR_ERR(rl2) != -ENOSPC || nr == min_nr) { in ntfs_mft_data_extend_allocation_nolock() 1793 nr = min_nr; in ntfs_mft_data_extend_allocation_nolock()
|
/linux-6.6.21/drivers/infiniband/hw/mlx5/ |
D | odp.c | 1497 while (pool->curr_nr < pool->min_nr) in mempool_refill()
|