Home
last modified time | relevance | path

Searched defs:pool (Results 1 – 25 of 257) sorted by relevance

1234567891011

/Linux-v5.10/include/net/
Dxdp_sock_drv.h25 static inline u32 xsk_pool_get_headroom(struct xsk_buff_pool *pool) in xsk_pool_get_headroom()
30 static inline u32 xsk_pool_get_chunk_size(struct xsk_buff_pool *pool) in xsk_pool_get_chunk_size()
35 static inline u32 xsk_pool_get_rx_frame_size(struct xsk_buff_pool *pool) in xsk_pool_get_rx_frame_size()
40 static inline void xsk_pool_set_rxq_info(struct xsk_buff_pool *pool, in xsk_pool_set_rxq_info()
46 static inline void xsk_pool_dma_unmap(struct xsk_buff_pool *pool, in xsk_pool_dma_unmap()
52 static inline int xsk_pool_dma_map(struct xsk_buff_pool *pool, in xsk_pool_dma_map()
74 static inline struct xdp_buff *xsk_buff_alloc(struct xsk_buff_pool *pool) in xsk_buff_alloc()
79 static inline bool xsk_buff_can_alloc(struct xsk_buff_pool *pool, u32 count) in xsk_buff_can_alloc()
91 static inline dma_addr_t xsk_buff_raw_get_dma(struct xsk_buff_pool *pool, in xsk_buff_raw_get_dma()
97 static inline void *xsk_buff_raw_get_data(struct xsk_buff_pool *pool, u64 addr) in xsk_buff_raw_get_data()
[all …]
Dpage_pool.h133 static inline struct page *page_pool_dev_alloc_pages(struct page_pool *pool) in page_pool_dev_alloc_pages()
144 inline enum dma_data_direction page_pool_get_dma_dir(struct page_pool *pool) in page_pool_get_dma_dir()
156 static inline void page_pool_destroy(struct page_pool *pool) in page_pool_destroy()
160 static inline void page_pool_use_xdp_mem(struct page_pool *pool, in page_pool_use_xdp_mem()
164 static inline void page_pool_release_page(struct page_pool *pool, in page_pool_release_page()
174 static inline void page_pool_put_full_page(struct page_pool *pool, in page_pool_put_full_page()
186 static inline void page_pool_recycle_direct(struct page_pool *pool, in page_pool_recycle_direct()
206 static inline bool page_pool_put(struct page_pool *pool) in page_pool_put()
213 static inline void page_pool_nid_changed(struct page_pool *pool, int new_nid) in page_pool_nid_changed()
/Linux-v5.10/net/core/
Dpage_pool.c24 static int page_pool_init(struct page_pool *pool, in page_pool_init()
83 struct page_pool *pool; in page_pool_create() local
104 static struct page *page_pool_refill_alloc_cache(struct page_pool *pool) in page_pool_refill_alloc_cache()
156 static struct page *__page_pool_get_cached(struct page_pool *pool) in __page_pool_get_cached()
171 static void page_pool_dma_sync_for_device(struct page_pool *pool, in page_pool_dma_sync_for_device()
183 static struct page *__page_pool_alloc_pages_slow(struct page_pool *pool, in __page_pool_alloc_pages_slow()
245 struct page *page_pool_alloc_pages(struct page_pool *pool, gfp_t gfp) in page_pool_alloc_pages()
265 static s32 page_pool_inflight(struct page_pool *pool) in page_pool_inflight()
284 void page_pool_release_page(struct page_pool *pool, struct page *page) in page_pool_release_page()
312 static void page_pool_return_page(struct page_pool *pool, struct page *page) in page_pool_return_page()
[all …]
/Linux-v5.10/net/xdp/
Dxsk_buff_pool.c11 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk()
23 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk()
35 void xp_destroy(struct xsk_buff_pool *pool) in xp_destroy()
47 struct xsk_buff_pool *pool; in xp_create_and_assign_umem() local
95 void xp_set_rxq_info(struct xsk_buff_pool *pool, struct xdp_rxq_info *rxq) in xp_set_rxq_info()
104 static void xp_disable_drv_zc(struct xsk_buff_pool *pool) in xp_disable_drv_zc()
123 static int __xp_assign_dev(struct xsk_buff_pool *pool, in __xp_assign_dev()
196 int xp_assign_dev(struct xsk_buff_pool *pool, struct net_device *dev, in xp_assign_dev()
202 int xp_assign_dev_shared(struct xsk_buff_pool *pool, struct xdp_umem *umem, in xp_assign_dev_shared()
218 void xp_clear_dev(struct xsk_buff_pool *pool) in xp_clear_dev()
[all …]
/Linux-v5.10/drivers/infiniband/sw/rxe/
Drxe_pool.c81 static inline const char *pool_name(struct rxe_pool *pool) in pool_name()
86 static int rxe_pool_init_index(struct rxe_pool *pool, u32 max, u32 min) in rxe_pool_init_index()
116 struct rxe_pool *pool, in rxe_pool_init()
160 struct rxe_pool *pool = container_of(kref, struct rxe_pool, ref_cnt); in rxe_pool_release() local
166 static void rxe_pool_put(struct rxe_pool *pool) in rxe_pool_put()
171 void rxe_pool_cleanup(struct rxe_pool *pool) in rxe_pool_cleanup()
185 static u32 alloc_index(struct rxe_pool *pool) in alloc_index()
200 static void insert_index(struct rxe_pool *pool, struct rxe_pool_entry *new) in insert_index()
227 static void insert_key(struct rxe_pool *pool, struct rxe_pool_entry *new) in insert_key()
261 struct rxe_pool *pool = elem->pool; in rxe_add_key() local
[all …]
/Linux-v5.10/drivers/md/
Ddm-thin.c229 struct pool { struct
231 struct dm_target *ti; /* Only set if a pool target is bound */ argument
233 struct mapped_device *pool_md; argument
236 struct dm_pool_metadata *pmd; argument
242 struct pool_features pf; argument
243 bool low_water_triggered:1; /* A dm event has been sent */
244 bool suspended:1;
245 bool out_of_data_space:1;
247 struct dm_bio_prison *prison;
248 struct dm_kcopyd_client *copier;
[all …]
/Linux-v5.10/drivers/staging/android/ion/
Dion_page_pool.c15 static inline struct page *ion_page_pool_alloc_pages(struct ion_page_pool *pool) in ion_page_pool_alloc_pages()
22 static void ion_page_pool_free_pages(struct ion_page_pool *pool, in ion_page_pool_free_pages()
28 static void ion_page_pool_add(struct ion_page_pool *pool, struct page *page) in ion_page_pool_add()
44 static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high) in ion_page_pool_remove()
64 struct page *ion_page_pool_alloc(struct ion_page_pool *pool) in ion_page_pool_alloc()
83 void ion_page_pool_free(struct ion_page_pool *pool, struct page *page) in ion_page_pool_free()
90 static int ion_page_pool_total(struct ion_page_pool *pool, bool high) in ion_page_pool_total()
100 int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask, in ion_page_pool_shrink()
136 struct ion_page_pool *pool = kmalloc(sizeof(*pool), GFP_KERNEL); in ion_page_pool_create() local
152 void ion_page_pool_destroy(struct ion_page_pool *pool) in ion_page_pool_destroy()
/Linux-v5.10/mm/
Dmempool.c25 static void poison_error(mempool_t *pool, void *element, size_t size, in poison_error()
42 static void __check_element(mempool_t *pool, void *element, size_t size) in __check_element()
58 static void check_element(mempool_t *pool, void *element) in check_element()
81 static void poison_element(mempool_t *pool, void *element) in poison_element()
96 static inline void check_element(mempool_t *pool, void *element) in check_element()
99 static inline void poison_element(mempool_t *pool, void *element) in poison_element()
104 static __always_inline void kasan_poison_element(mempool_t *pool, void *element) in kasan_poison_element()
112 static void kasan_unpoison_element(mempool_t *pool, void *element) in kasan_unpoison_element()
120 static __always_inline void add_element(mempool_t *pool, void *element) in add_element()
128 static void *remove_element(mempool_t *pool) in remove_element()
[all …]
Dzbud.c129 static int zbud_zpool_evict(struct zbud_pool *pool, unsigned long handle) in zbud_zpool_evict()
145 struct zbud_pool *pool; in zbud_zpool_create() local
155 static void zbud_zpool_destroy(void *pool) in zbud_zpool_destroy()
160 static int zbud_zpool_malloc(void *pool, size_t size, gfp_t gfp, in zbud_zpool_malloc()
165 static void zbud_zpool_free(void *pool, unsigned long handle) in zbud_zpool_free()
170 static int zbud_zpool_shrink(void *pool, unsigned int pages, in zbud_zpool_shrink()
189 static void *zbud_zpool_map(void *pool, unsigned long handle, in zbud_zpool_map()
194 static void zbud_zpool_unmap(void *pool, unsigned long handle) in zbud_zpool_unmap()
199 static u64 zbud_zpool_total_size(void *pool) in zbud_zpool_total_size()
308 struct zbud_pool *pool; in zbud_create_pool() local
[all …]
Dz3fold.c93 unsigned long pool; /* back link + flags */ member
121 struct z3fold_pool *pool; member
210 static inline struct z3fold_buddy_slots *alloc_slots(struct z3fold_pool *pool, in alloc_slots()
344 struct z3fold_pool *pool = slots_to_pool(slots); in free_handle() local
379 static int z3fold_register_migration(struct z3fold_pool *pool) in z3fold_register_migration()
392 static void z3fold_unregister_migration(struct z3fold_pool *pool) in z3fold_unregister_migration()
400 struct z3fold_pool *pool, gfp_t gfp) in init_z3fold_page()
527 struct z3fold_pool *pool = zhdr_to_pool(zhdr); in __release_z3fold_page() local
583 struct z3fold_pool *pool = zhdr_to_pool(zhdr); in release_z3fold_page_locked_list() local
595 struct z3fold_pool *pool = container_of(w, struct z3fold_pool, work); in free_pages_work() local
[all …]
Dzsmalloc.c313 static int zs_register_migration(struct zs_pool *pool) { return 0; } in zs_register_migration()
314 static void zs_unregister_migration(struct zs_pool *pool) {} in zs_unregister_migration()
318 static void kick_deferred_free(struct zs_pool *pool) {} in kick_deferred_free()
319 static void init_deferred_free(struct zs_pool *pool) {} in init_deferred_free()
320 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {} in SetZsPageMovable()
323 static int create_cache(struct zs_pool *pool) in create_cache()
341 static void destroy_cache(struct zs_pool *pool) in destroy_cache()
347 static unsigned long cache_alloc_handle(struct zs_pool *pool, gfp_t gfp) in cache_alloc_handle()
353 static void cache_free_handle(struct zs_pool *pool, unsigned long handle) in cache_free_handle()
358 static struct zspage *cache_alloc_zspage(struct zs_pool *pool, gfp_t flags) in cache_alloc_zspage()
[all …]
Ddmapool.c71 struct dma_pool *pool; in show_pools() local
203 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) in pool_initialise_page()
219 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) in pool_alloc_page()
247 static void pool_free_page(struct dma_pool *pool, struct dma_page *page) in pool_free_page()
267 void dma_pool_destroy(struct dma_pool *pool) in dma_pool_destroy()
314 void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc()
382 static struct dma_page *pool_find_page(struct dma_pool *pool, dma_addr_t dma) in pool_find_page()
404 void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) in dma_pool_free()
474 struct dma_pool *pool = *(struct dma_pool **)res; in dmam_pool_release() local
501 struct dma_pool **ptr, *pool; in dmam_pool_create() local
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/gt/
Dintel_gt_buffer_pool.c12 static struct intel_gt *to_gt(struct intel_gt_buffer_pool *pool) in to_gt()
18 bucket_for_size(struct intel_gt_buffer_pool *pool, size_t sz) in bucket_for_size()
41 static bool pool_free_older_than(struct intel_gt_buffer_pool *pool, long keep) in pool_free_older_than()
93 struct intel_gt_buffer_pool *pool = in pool_free_work() local
128 struct intel_gt_buffer_pool *pool = node->pool; in pool_retire() local
148 node_create(struct intel_gt_buffer_pool *pool, size_t sz) in node_create()
179 struct intel_gt_buffer_pool *pool = &gt->buffer_pool; in intel_gt_get_buffer_pool() local
224 struct intel_gt_buffer_pool *pool = &gt->buffer_pool; in intel_gt_init_buffer_pool() local
235 struct intel_gt_buffer_pool *pool = &gt->buffer_pool; in intel_gt_flush_buffer_pool() local
245 struct intel_gt_buffer_pool *pool = &gt->buffer_pool; in intel_gt_fini_buffer_pool() local
/Linux-v5.10/lib/
Dgenalloc.c153 struct gen_pool *pool; in gen_pool_create() local
182 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, in gen_pool_add_owner()
215 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys()
240 void gen_pool_destroy(struct gen_pool *pool) in gen_pool_destroy()
275 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, in gen_pool_alloc_algo_owner()
339 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_alloc()
360 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_algo()
393 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_align()
417 void *gen_pool_dma_zalloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_zalloc()
438 void *gen_pool_dma_zalloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_zalloc_algo()
[all …]
/Linux-v5.10/drivers/dma/
Dcoh901318_lli.c19 #define DEBUGFS_POOL_COUNTER_RESET(pool) (pool->debugfs_pool_counter = 0) argument
20 #define DEBUGFS_POOL_COUNTER_ADD(pool, add) (pool->debugfs_pool_counter += add) argument
22 #define DEBUGFS_POOL_COUNTER_RESET(pool) argument
23 #define DEBUGFS_POOL_COUNTER_ADD(pool, add) argument
35 int coh901318_pool_create(struct coh901318_pool *pool, in coh901318_pool_create()
47 int coh901318_pool_destroy(struct coh901318_pool *pool) in coh901318_pool_destroy()
55 coh901318_lli_alloc(struct coh901318_pool *pool, unsigned int len) in coh901318_lli_alloc()
112 void coh901318_lli_free(struct coh901318_pool *pool, in coh901318_lli_free()
142 coh901318_lli_fill_memcpy(struct coh901318_pool *pool, in coh901318_lli_fill_memcpy()
175 coh901318_lli_fill_single(struct coh901318_pool *pool, in coh901318_lli_fill_single()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dpool.c10 struct xsk_buff_pool *pool) in mlx5e_xsk_map_pool()
18 struct xsk_buff_pool *pool) in mlx5e_xsk_unmap_pool()
46 static int mlx5e_xsk_add_pool(struct mlx5e_xsk *xsk, struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_add_pool()
65 static bool mlx5e_xsk_is_pool_sane(struct xsk_buff_pool *pool) in mlx5e_xsk_is_pool_sane()
71 void mlx5e_build_xsk_param(struct xsk_buff_pool *pool, struct mlx5e_xsk_param *xsk) in mlx5e_build_xsk_param()
78 struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_enable_locked()
157 struct xsk_buff_pool *pool = mlx5e_xsk_get_pool(&priv->channels.params, in mlx5e_xsk_disable_locked() local
183 static int mlx5e_xsk_enable_pool(struct mlx5e_priv *priv, struct xsk_buff_pool *pool, in mlx5e_xsk_enable_pool()
206 int mlx5e_xsk_setup_pool(struct net_device *dev, struct xsk_buff_pool *pool, u16 qid) in mlx5e_xsk_setup_pool()
/Linux-v5.10/sound/core/seq/
Dseq_memory.c22 static inline int snd_seq_pool_available(struct snd_seq_pool *pool) in snd_seq_pool_available()
27 static inline int snd_seq_output_ok(struct snd_seq_pool *pool) in snd_seq_output_ok()
163 static inline void free_cell(struct snd_seq_pool *pool, in free_cell()
174 struct snd_seq_pool *pool; in snd_seq_cell_free() local
207 static int snd_seq_cell_alloc(struct snd_seq_pool *pool, in snd_seq_cell_alloc()
279 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event, in snd_seq_event_dup()
360 int snd_seq_pool_poll_wait(struct snd_seq_pool *pool, struct file *file, in snd_seq_pool_poll_wait()
369 int snd_seq_pool_init(struct snd_seq_pool *pool) in snd_seq_pool_init()
409 void snd_seq_pool_mark_closing(struct snd_seq_pool *pool) in snd_seq_pool_mark_closing()
421 int snd_seq_pool_done(struct snd_seq_pool *pool) in snd_seq_pool_done()
[all …]
/Linux-v5.10/net/ceph/
Dmsgpool.c14 struct ceph_msgpool *pool = arg; in msgpool_alloc() local
30 struct ceph_msgpool *pool = arg; in msgpool_free() local
38 int ceph_msgpool_init(struct ceph_msgpool *pool, int type, in ceph_msgpool_init()
53 void ceph_msgpool_destroy(struct ceph_msgpool *pool) in ceph_msgpool_destroy()
59 struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len, in ceph_msgpool_get()
81 void ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg) in ceph_msgpool_put()
/Linux-v5.10/drivers/net/ethernet/ti/
Dk3-cppi-desc-pool.c27 void k3_cppi_desc_pool_destroy(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_destroy()
48 struct k3_cppi_desc_pool *pool; in k3_cppi_desc_pool_create_name() local
102 dma_addr_t k3_cppi_desc_pool_virt2dma(struct k3_cppi_desc_pool *pool, in k3_cppi_desc_pool_virt2dma()
108 void *k3_cppi_desc_pool_dma2virt(struct k3_cppi_desc_pool *pool, dma_addr_t dma) in k3_cppi_desc_pool_dma2virt()
113 void *k3_cppi_desc_pool_alloc(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_alloc()
118 void k3_cppi_desc_pool_free(struct k3_cppi_desc_pool *pool, void *addr) in k3_cppi_desc_pool_free()
123 size_t k3_cppi_desc_pool_avail(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_avail()
/Linux-v5.10/drivers/staging/octeon/
Dethernet-mem.c24 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) in cvm_oct_fill_hw_skbuff()
47 static void cvm_oct_free_hw_skbuff(int pool, int size, int elements) in cvm_oct_free_hw_skbuff()
77 static int cvm_oct_fill_hw_memory(int pool, int size, int elements) in cvm_oct_fill_hw_memory()
114 static void cvm_oct_free_hw_memory(int pool, int size, int elements) in cvm_oct_free_hw_memory()
137 int cvm_oct_mem_fill_fpa(int pool, int size, int elements) in cvm_oct_mem_fill_fpa()
148 void cvm_oct_mem_empty_fpa(int pool, int size, int elements) in cvm_oct_mem_empty_fpa()
/Linux-v5.10/drivers/staging/media/ipu3/
Dipu3-css-pool.c25 void imgu_css_pool_cleanup(struct imgu_device *imgu, struct imgu_css_pool *pool) in imgu_css_pool_cleanup()
33 int imgu_css_pool_init(struct imgu_device *imgu, struct imgu_css_pool *pool, in imgu_css_pool_init()
61 void imgu_css_pool_get(struct imgu_css_pool *pool) in imgu_css_pool_get()
73 void imgu_css_pool_put(struct imgu_css_pool *pool) in imgu_css_pool_put()
89 imgu_css_pool_last(struct imgu_css_pool *pool, unsigned int n) in imgu_css_pool_last()
/Linux-v5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
Drmgr_vbuf.c141 int ia_css_rmgr_init_vbuf(struct ia_css_rmgr_vbuf_pool *pool) in ia_css_rmgr_init_vbuf()
174 void ia_css_rmgr_uninit_vbuf(struct ia_css_rmgr_vbuf_pool *pool) in ia_css_rmgr_uninit_vbuf()
212 void rmgr_push_handle(struct ia_css_rmgr_vbuf_pool *pool, in rmgr_push_handle()
240 void rmgr_pop_handle(struct ia_css_rmgr_vbuf_pool *pool, in rmgr_pop_handle()
268 void ia_css_rmgr_acq_vbuf(struct ia_css_rmgr_vbuf_pool *pool, in ia_css_rmgr_acq_vbuf()
316 void ia_css_rmgr_rel_vbuf(struct ia_css_rmgr_vbuf_pool *pool, in ia_css_rmgr_rel_vbuf()
/Linux-v5.10/arch/mips/include/asm/octeon/
Dcvmx-fpa.h106 static inline const char *cvmx_fpa_get_name(uint64_t pool) in cvmx_fpa_get_name()
117 static inline void *cvmx_fpa_get_base(uint64_t pool) in cvmx_fpa_get_base()
131 static inline int cvmx_fpa_is_member(uint64_t pool, void *ptr) in cvmx_fpa_is_member()
185 static inline void *cvmx_fpa_alloc(uint64_t pool) in cvmx_fpa_alloc()
202 static inline void cvmx_fpa_async_alloc(uint64_t scr_addr, uint64_t pool) in cvmx_fpa_async_alloc()
226 static inline void cvmx_fpa_free_nosync(void *ptr, uint64_t pool, in cvmx_fpa_free_nosync()
248 static inline void cvmx_fpa_free(void *ptr, uint64_t pool, in cvmx_fpa_free()
/Linux-v5.10/include/linux/
Ddmapool.h41 static inline void dma_pool_destroy(struct dma_pool *pool) { } in dma_pool_destroy()
42 static inline void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc()
44 static inline void dma_pool_free(struct dma_pool *pool, void *vaddr, in dma_pool_free()
49 static inline void dmam_pool_destroy(struct dma_pool *pool) { } in dmam_pool_destroy()
52 static inline void *dma_pool_zalloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_zalloc()
/Linux-v5.10/drivers/staging/media/atomisp/pci/hmm/
Dhmm_dynamic_pool.c36 static unsigned int get_pages_from_dynamic_pool(void *pool, in get_pages_from_dynamic_pool()
73 static void free_pages_to_dynamic_pool(void *pool, in free_pages_to_dynamic_pool()
140 static int hmm_dynamic_pool_init(void **pool, unsigned int pool_size) in hmm_dynamic_pool_init()
171 static void hmm_dynamic_pool_exit(void **pool) in hmm_dynamic_pool_exit()
218 static int hmm_dynamic_pool_inited(void *pool) in hmm_dynamic_pool_inited()

1234567891011