Home
last modified time | relevance | path

Searched refs:min_nr (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/include/linux/
Dmempool.h18 int min_nr; /* nr of elements at *elements */ member
34 int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
37 int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
40 extern mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn,
42 extern mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn,
60 mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc) in mempool_init_slab_pool() argument
62 return mempool_init(pool, min_nr, mempool_alloc_slab, in mempool_init_slab_pool()
67 mempool_create_slab_pool(int min_nr, struct kmem_cache *kc) in mempool_create_slab_pool() argument
69 return mempool_create(min_nr, mempool_alloc_slab, mempool_free_slab, in mempool_create_slab_pool()
80 static inline int mempool_init_kmalloc_pool(mempool_t *pool, int min_nr, size_t size) in mempool_init_kmalloc_pool() argument
[all …]
Dcompat.h575 compat_long_t min_nr,
581 compat_long_t min_nr,
Dsyscalls.h319 long min_nr,
324 __s32 min_nr,
329 long min_nr,
335 long min_nr,
/linux-5.19.10/mm/
Dmempool.c123 BUG_ON(pool->curr_nr >= pool->min_nr); in add_element()
179 int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, in mempool_init_node() argument
184 pool->min_nr = min_nr; in mempool_init_node()
190 pool->elements = kmalloc_array_node(min_nr, sizeof(void *), in mempool_init_node()
198 while (pool->curr_nr < pool->min_nr) { in mempool_init_node()
227 int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, in mempool_init() argument
230 return mempool_init_node(pool, min_nr, alloc_fn, free_fn, in mempool_init()
252 mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn, in mempool_create() argument
255 return mempool_create_node(min_nr, alloc_fn, free_fn, pool_data, in mempool_create()
260 mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, in mempool_create_node() argument
[all …]
/linux-5.19.10/fs/
Daio.c1279 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()
2189 long min_nr, in do_io_getevents() argument
2199 if (likely(min_nr <= nr && min_nr >= 0)) in do_io_getevents()
2200 ret = read_events(ioctx, min_nr, nr, events, until); in do_io_getevents()
2222 long, min_nr, in SYSCALL_DEFINE5() argument
2233 ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL); in SYSCALL_DEFINE5()
[all …]
/linux-5.19.10/fs/ntfs/
Dmft.c1713 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-5.19.10/drivers/infiniband/hw/mlx5/
Dodp.c1497 while (pool->curr_nr < pool->min_nr) in mempool_refill()