| /linux/net/core/ |
| H A D | page_pool.c | 46 #define alloc_stat_inc(pool, __stat) (pool->alloc_stats.__stat++) argument 48 #define recycle_stat_inc(pool, __stat) \ argument 54 #define recycle_stat_add(pool, __stat, val) \ argument 88 page_pool_get_stats(const struct page_pool * pool,struct page_pool_stats * stats) page_pool_get_stats() argument 159 page_pool_producer_lock(struct page_pool * pool) page_pool_producer_lock() argument 172 page_pool_producer_unlock(struct page_pool * pool,bool in_softirq) page_pool_producer_unlock() argument 191 page_pool_init(struct page_pool * pool,const struct page_pool_params * params,int cpuid) page_pool_init() argument 319 page_pool_uninit(struct page_pool * pool) page_pool_uninit() argument 343 struct page_pool *pool; page_pool_create_percpu() local 381 page_pool_refill_alloc_cache(struct page_pool * pool) page_pool_refill_alloc_cache() argument 434 __page_pool_get_cached(struct page_pool * pool) __page_pool_get_cached() argument 450 __page_pool_dma_sync_for_device(const struct page_pool * pool,netmem_ref netmem,u32 dma_sync_size) __page_pool_dma_sync_for_device() argument 464 page_pool_dma_sync_for_device(const struct page_pool * pool,netmem_ref netmem,u32 dma_sync_size) page_pool_dma_sync_for_device() argument 478 page_pool_register_dma_index(struct page_pool * pool,netmem_ref netmem,gfp_t gfp) page_pool_register_dma_index() argument 503 __page_pool_unmap_netmem_dma(struct page_pool * pool,netmem_ref netmem) __page_pool_unmap_netmem_dma() argument 539 page_pool_dma_map(struct page_pool * pool,netmem_ref netmem,gfp_t gfp) page_pool_dma_map() argument 578 __page_pool_alloc_page_order(struct page_pool * pool,gfp_t gfp) __page_pool_alloc_page_order() argument 604 __page_pool_alloc_netmems_slow(struct page_pool * pool,gfp_t gfp) __page_pool_alloc_netmems_slow() argument 668 page_pool_alloc_netmems(struct page_pool * pool,gfp_t gfp) page_pool_alloc_netmems() argument 687 page_pool_alloc_pages(struct page_pool * pool,gfp_t gfp) page_pool_alloc_pages() argument 698 page_pool_inflight(const struct page_pool * pool,bool strict) page_pool_inflight() argument 717 page_pool_set_pp_info(struct page_pool * pool,netmem_ref netmem) page_pool_set_pp_info() argument 739 __page_pool_release_netmem_dma(struct page_pool * pool,netmem_ref netmem) __page_pool_release_netmem_dma() argument 759 page_pool_return_netmem(struct page_pool * pool,netmem_ref netmem) page_pool_return_netmem() argument 786 page_pool_recycle_in_ring(struct page_pool * pool,netmem_ref netmem) page_pool_recycle_in_ring() argument 806 page_pool_recycle_in_cache(netmem_ref netmem,struct page_pool * pool) page_pool_recycle_in_cache() argument 833 __page_pool_put_page(struct page_pool * pool,netmem_ref netmem,unsigned int dma_sync_size,bool allow_direct) __page_pool_put_page() argument 878 page_pool_napi_local(const struct page_pool * pool) page_pool_napi_local() argument 905 page_pool_put_unrefed_netmem(struct page_pool * pool,netmem_ref netmem,unsigned int dma_sync_size,bool allow_direct) page_pool_put_unrefed_netmem() argument 921 page_pool_put_unrefed_page(struct page_pool * pool,struct page * page,unsigned int dma_sync_size,bool allow_direct) page_pool_put_unrefed_page() argument 929 page_pool_recycle_ring_bulk(struct page_pool * pool,netmem_ref * bulk,u32 bulk_len) page_pool_recycle_ring_bulk() argument 990 struct page_pool *pool = NULL; page_pool_put_netmem_bulk() local 1028 page_pool_drain_frag(struct page_pool * pool,netmem_ref netmem) page_pool_drain_frag() argument 1046 page_pool_free_frag(struct page_pool * pool) page_pool_free_frag() argument 1059 page_pool_alloc_frag_netmem(struct page_pool * pool,unsigned int * offset,unsigned int size,gfp_t gfp) page_pool_alloc_frag_netmem() argument 1104 page_pool_alloc_frag(struct page_pool * pool,unsigned int * offset,unsigned int size,gfp_t gfp) page_pool_alloc_frag() argument 1112 page_pool_empty_ring(struct page_pool * pool) page_pool_empty_ring() argument 1127 __page_pool_destroy(struct page_pool * pool) __page_pool_destroy() argument 1138 page_pool_empty_alloc_cache_once(struct page_pool * pool) page_pool_empty_alloc_cache_once() argument 1155 page_pool_scrub(struct page_pool * pool) page_pool_scrub() argument 1188 page_pool_release(struct page_pool * pool) page_pool_release() argument 1207 struct page_pool *pool = container_of(dwq, typeof(*pool), release_dw); page_pool_release_retry() local 1236 page_pool_use_xdp_mem(struct page_pool * pool,void (* disconnect)(void *),const struct xdp_mem_info * mem) page_pool_use_xdp_mem() argument 1260 page_pool_enable_direct_recycling(struct page_pool * pool,struct napi_struct * napi) page_pool_enable_direct_recycling() argument 1273 page_pool_disable_direct_recycling(struct page_pool * pool) page_pool_disable_direct_recycling() argument 1291 page_pool_destroy(struct page_pool * pool) page_pool_destroy() argument 1315 page_pool_update_nid(struct page_pool * pool,int new_nid) page_pool_update_nid() argument 1338 net_mp_niov_set_page_pool(struct page_pool * pool,struct net_iov * niov) net_mp_niov_set_page_pool() argument [all...] |
| H A D | mp_dmabuf_devmem.h | 22 static inline int mp_dmabuf_devmem_init(struct page_pool *pool) in mp_dmabuf_devmem_init() 28 mp_dmabuf_devmem_alloc_netmems(struct page_pool *pool, gfp_t gfp) in mp_dmabuf_devmem_alloc_netmems() 33 static inline void mp_dmabuf_devmem_destroy(struct page_pool *pool) in mp_dmabuf_devmem_destroy() 38 mp_dmabuf_devmem_release_page(struct page_pool *pool, netmem_ref netmem) in mp_dmabuf_devmem_release_page()
|
| /linux/net/xdp/ |
| H A D | xsk_buff_pool.c | 15 void xp_add_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_add_xsk() argument 25 void xp_del_xsk(struct xsk_buff_pool *pool, struct xdp_sock *xs) in xp_del_xsk() argument 35 void xp_destroy(struct xsk_buff_pool *pool) in xp_destroy() argument 45 xp_alloc_tx_descs(struct xsk_buff_pool * pool,struct xdp_sock * xs,u32 max_segs) xp_alloc_tx_descs() argument 63 struct xsk_buff_pool *pool; xp_create_and_assign_umem() local 124 xp_set_rxq_info(struct xsk_buff_pool * pool,struct xdp_rxq_info * rxq) xp_set_rxq_info() argument 133 xp_fill_cb(struct xsk_buff_pool * pool,struct xsk_cb_desc * desc) xp_fill_cb() argument 145 xp_disable_drv_zc(struct xsk_buff_pool * pool) xp_disable_drv_zc() argument 164 xp_assign_dev(struct xsk_buff_pool * pool,struct net_device * netdev,u16 queue_id,u16 flags) xp_assign_dev() argument 273 xp_assign_dev_shared(struct xsk_buff_pool * pool,struct xdp_sock * umem_xs,struct net_device * dev,u16 queue_id) xp_assign_dev_shared() argument 290 xp_clear_dev(struct xsk_buff_pool * pool) xp_clear_dev() argument 307 struct xsk_buff_pool *pool = container_of(work, struct xsk_buff_pool, xp_release_deferred() local 328 xp_get_pool(struct xsk_buff_pool * pool) xp_get_pool() argument 333 xp_put_pool(struct xsk_buff_pool * pool) xp_put_pool() argument 347 xp_find_dma_map(struct xsk_buff_pool * pool) xp_find_dma_map() argument 407 xp_dma_unmap(struct xsk_buff_pool * pool,unsigned long attrs) xp_dma_unmap() argument 442 xp_init_dma_info(struct xsk_buff_pool * pool,struct xsk_dma_map * dma_map) xp_init_dma_info() argument 469 xp_dma_map(struct xsk_buff_pool * pool,struct device * dev,unsigned long attrs,struct page ** pages,u32 nr_pages) xp_dma_map() argument 514 xp_addr_crosses_non_contig_pg(struct xsk_buff_pool * pool,u64 addr) xp_addr_crosses_non_contig_pg() argument 520 xp_check_unaligned(struct xsk_buff_pool * pool,u64 * addr) xp_check_unaligned() argument 530 xp_check_aligned(struct xsk_buff_pool * pool,u64 * addr) xp_check_aligned() argument 536 xp_get_xskb(struct xsk_buff_pool * pool,u64 addr) xp_get_xskb() argument 552 __xp_alloc(struct xsk_buff_pool * pool) __xp_alloc() argument 583 xp_alloc(struct xsk_buff_pool * pool) xp_alloc() argument 609 xp_alloc_new_from_fq(struct xsk_buff_pool * pool,struct xdp_buff ** xdp,u32 max) xp_alloc_new_from_fq() argument 645 xp_alloc_reused(struct xsk_buff_pool * pool,struct xdp_buff ** xdp,u32 nb_entries) xp_alloc_reused() argument 665 xp_alloc_slow(struct xsk_buff_pool * pool,struct xdp_buff ** xdp,u32 max) xp_alloc_slow() argument 683 xp_alloc_batch(struct xsk_buff_pool * pool,struct xdp_buff ** xdp,u32 max) xp_alloc_batch() argument 707 xp_can_alloc(struct xsk_buff_pool * pool,u32 count) xp_can_alloc() argument 733 __xp_raw_get_addr(const struct xsk_buff_pool * pool,u64 addr) __xp_raw_get_addr() argument 738 __xp_raw_get_data(const struct xsk_buff_pool * pool,u64 addr) __xp_raw_get_data() argument 743 xp_raw_get_data(struct xsk_buff_pool * pool,u64 addr) xp_raw_get_data() argument 749 __xp_raw_get_dma(const struct xsk_buff_pool * pool,u64 addr) __xp_raw_get_dma() argument 756 xp_raw_get_dma(struct xsk_buff_pool * pool,u64 addr) xp_raw_get_dma() argument 774 xp_raw_get_ctx(const struct xsk_buff_pool * pool,u64 addr) xp_raw_get_ctx() argument [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | pool.c | 23 static void hws_pool_resource_free(struct mlx5hws_pool *pool) in hws_pool_resource_free() 35 hws_pool_create_one_resource(struct mlx5hws_pool *pool, u32 log_range, in hws_pool_create_one_resource() 77 static int hws_pool_resource_alloc(struct mlx5hws_pool *pool) in hws_pool_resource_alloc() 112 static int hws_pool_buddy_init(struct mlx5hws_pool *pool) in hws_pool_buddy_init() 136 static int hws_pool_buddy_db_get_chunk(struct mlx5hws_pool *pool, in hws_pool_buddy_db_get_chunk() 153 static void hws_pool_buddy_db_put_chunk(struct mlx5hws_pool *pool, in hws_pool_buddy_db_put_chunk() 167 static void hws_pool_buddy_db_uninit(struct mlx5hws_pool *pool) in hws_pool_buddy_db_uninit() 179 static int hws_pool_buddy_db_init(struct mlx5hws_pool *pool) in hws_pool_buddy_db_init() 207 static int hws_pool_bitmap_init(struct mlx5hws_pool *pool) in hws_pool_bitmap_init() 230 static int hws_pool_bitmap_db_get_chunk(struct mlx5hws_pool *pool, in hws_pool_bitmap_db_get_chunk() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-thin.c | 232 struct pool { struct 234 struct dm_target *ti; /* Only set if a pool target is bound */ argument 236 struct mapped_device *pool_md; argument 239 struct dm_pool_metadata *pmd; argument 245 struct pool_features pf; argument 246 bool low_water_triggered:1; /* A dm event has been sent */ 247 bool suspended:1; 248 bool out_of_data_space:1; 250 struct dm_bio_prison *prison; 251 struct dm_kcopyd_client *copier; [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_mem_pool.c | 55 static struct xe_tile *pool_to_tile(struct xe_mem_pool *pool) in pool_to_tile() 62 struct xe_mem_pool *pool = arg; in fini_pool_action() local 70 static int pool_shadow_init(struct xe_mem_pool *pool) in pool_shadow_init() 121 struct xe_mem_pool *pool; in xe_mem_pool_init() local 190 void xe_mem_pool_sync(struct xe_mem_pool *pool) in xe_mem_pool_sync() 213 void xe_mem_pool_swap_shadow_locked(struct xe_mem_pool *pool) in xe_mem_pool_swap_shadow_locked() 237 struct xe_mem_pool *pool = node_to_pool(node); in xe_mem_pool_sync_shadow_locked() local 257 u64 xe_mem_pool_gpu_addr(struct xe_mem_pool *pool) in xe_mem_pool_gpu_addr() 268 void *xe_mem_pool_cpu_addr(struct xe_mem_pool *pool) in xe_mem_pool_cpu_addr() 280 struct mutex *xe_mem_pool_bo_swap_guard(struct xe_mem_pool *pool) in xe_mem_pool_bo_swap_guard() [all …]
|
| /linux/kernel/cgroup/ |
| H A D | dmem.c | 141 if (!refcount_dec_and_test(&pool->ref)) in free_cg_pool() argument 113 dmemcg_pool_get(struct dmem_cgroup_pool_state * pool) dmemcg_pool_get() argument 118 dmemcg_pool_tryget(struct dmem_cgroup_pool_state * pool) dmemcg_pool_tryget() argument 123 dmemcg_pool_put(struct dmem_cgroup_pool_state * pool) dmemcg_pool_put() argument 133 struct dmem_cgroup_pool_state *pool = container_of(rcu, typeof(*pool), rcu); dmemcg_pool_free_rcu() local 148 set_resource_min(struct dmem_cgroup_pool_state * pool,u64 val) set_resource_min() argument 154 set_resource_low(struct dmem_cgroup_pool_state * pool,u64 val) set_resource_low() argument 160 set_resource_max(struct dmem_cgroup_pool_state * pool,u64 val) set_resource_max() argument 165 get_resource_low(struct dmem_cgroup_pool_state * pool) get_resource_low() argument 170 get_resource_min(struct dmem_cgroup_pool_state * pool) get_resource_min() argument 175 get_resource_max(struct dmem_cgroup_pool_state * pool) get_resource_max() argument 180 get_resource_current(struct dmem_cgroup_pool_state * pool) get_resource_current() argument 195 struct dmem_cgroup_pool_state *pool; dmemcs_offline() local 206 struct dmem_cgroup_pool_state *pool, *next; dmemcs_free() local 236 struct dmem_cgroup_pool_state *pool; find_cg_pool_locked() local 245 pool_parent(struct dmem_cgroup_pool_state * pool) pool_parent() argument 260 struct dmem_cgroup_pool_state *pool, *found_pool; dmem_cgroup_calculate_protection() local 306 struct dmem_cgroup_pool_state *pool = test_pool; dmem_cgroup_state_evict_valuable() local 359 struct dmem_cgroup_pool_state *pool, *ppool = NULL; alloc_pool_single() local 400 struct dmem_cgroup_pool_state *pool, *ppool, *retpool; get_cg_pool_locked() local 447 struct dmem_cgroup_pool_state *pool, *next; dmemcg_free_rcu() local 470 struct dmem_cgroup_pool_state *pool, *next; dmem_cgroup_unregister_region() local 562 dmem_cgroup_pool_state_put(struct dmem_cgroup_pool_state * pool) dmem_cgroup_pool_state_put() argument 574 struct dmem_cgroup_pool_state *pool, *allocpool = NULL; get_cg_pool_unlocked() local 622 dmem_cgroup_uncharge(struct dmem_cgroup_pool_state * pool,u64 size) dmem_cgroup_uncharge() argument 657 struct dmem_cgroup_pool_state *pool; dmem_cgroup_try_charge() local 735 struct dmem_cgroup_pool_state *pool = NULL; dmemcg_limit_write() local 795 struct dmem_cgroup_pool_state *pool = find_cg_pool_locked(dmemcs, region); dmemcg_limit_show() local [all...] |
| /linux/drivers/net/ethernet/ti/ |
| H A D | k3-cppi-desc-pool.c | 28 void k3_cppi_desc_pool_destroy(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_destroy() 54 struct k3_cppi_desc_pool *pool; in k3_cppi_desc_pool_create_name() local 113 dma_addr_t k3_cppi_desc_pool_virt2dma(struct k3_cppi_desc_pool *pool, in k3_cppi_desc_pool_virt2dma() 120 void *k3_cppi_desc_pool_dma2virt(struct k3_cppi_desc_pool *pool, dma_addr_t dma) in k3_cppi_desc_pool_dma2virt() 126 void *k3_cppi_desc_pool_alloc(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_alloc() 132 void k3_cppi_desc_pool_free(struct k3_cppi_desc_pool *pool, void *addr) in k3_cppi_desc_pool_free() 138 size_t k3_cppi_desc_pool_avail(struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_avail() 144 size_t k3_cppi_desc_pool_desc_size(const struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_desc_size() 150 void *k3_cppi_desc_pool_cpuaddr(const struct k3_cppi_desc_pool *pool) in k3_cppi_desc_pool_cpuaddr() 156 void k3_cppi_desc_pool_desc_info_set(struct k3_cppi_desc_pool *pool, in k3_cppi_desc_pool_desc_info_set() [all …]
|
| /linux/mm/ |
| H A D | mempool.c | 57 static void poison_error(struct mempool *pool, void *element, size_t size, in poison_error() 74 static void __check_element(struct mempool *pool, void *element, size_t size) in __check_element() 90 static void check_element(struct mempool *pool, void *element) in check_element() 129 static void poison_element(struct mempool *pool, void *element) in poison_element() 160 static __always_inline bool kasan_poison_element(struct mempool *pool, in kasan_poison_element() 171 static void kasan_unpoison_element(struct mempool *pool, void *element) in kasan_unpoison_element() 183 static __always_inline void add_element(struct mempool *pool, void *element) in add_element() 194 static void *remove_element(struct mempool *pool) in remove_element() 217 void mempool_exit(struct mempool *pool) in mempool_exit() 236 void mempool_destroy(struct mempool *pool) in mempool_destroy() [all …]
|
| /linux/lib/ |
| H A D | genalloc.c | 155 struct gen_pool *pool; in gen_pool_create() local 184 int gen_pool_add_owner(struct gen_pool *pool, unsigned long virt, phys_addr_t phys, in gen_pool_add_owner() 217 phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr) in gen_pool_virt_to_phys() 242 void gen_pool_destroy(struct gen_pool *pool) in gen_pool_destroy() 277 unsigned long gen_pool_alloc_algo_owner(struct gen_pool *pool, size_t size, in gen_pool_alloc_algo_owner() 341 void *gen_pool_dma_alloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_alloc() 362 void *gen_pool_dma_alloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_algo() 395 void *gen_pool_dma_alloc_align(struct gen_pool *pool, size_t size, in gen_pool_dma_alloc_align() 419 void *gen_pool_dma_zalloc(struct gen_pool *pool, size_t size, dma_addr_t *dma) in gen_pool_dma_zalloc() 440 void *gen_pool_dma_zalloc_algo(struct gen_pool *pool, size_t size, in gen_pool_dma_zalloc_algo() [all …]
|
| H A D | objpool.c | 19 objpool_init_percpu_slot(struct objpool_head *pool, in objpool_init_percpu_slot() 48 objpool_init_percpu_slots(struct objpool_head *pool, int nr_objs, in objpool_init_percpu_slots() 105 static void objpool_fini_percpu_slots(struct objpool_head *pool) in objpool_fini_percpu_slots() 118 int objpool_init(struct objpool_head *pool, int nr_objs, int object_size, in objpool_init() 162 void objpool_free(struct objpool_head *pool) in objpool_free() 177 int objpool_drop(void *obj, struct objpool_head *pool) in objpool_drop() 192 void objpool_fini(struct objpool_head *pool) in objpool_fini()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_gt_buffer_pool.c | 15 bucket_for_size(struct intel_gt_buffer_pool *pool, size_t sz) in bucket_for_size() 38 static bool pool_free_older_than(struct intel_gt_buffer_pool *pool, long keep) in pool_free_older_than() 90 struct intel_gt_buffer_pool *pool = in pool_free_work() local 103 struct intel_gt_buffer_pool *pool = node->pool; in pool_retire() local 140 node_create(struct intel_gt_buffer_pool *pool, size_t sz, in node_create() 175 struct intel_gt_buffer_pool *pool = >->buffer_pool; in intel_gt_get_buffer_pool() local 223 struct intel_gt_buffer_pool *pool = >->buffer_pool; in intel_gt_init_buffer_pool() local 234 struct intel_gt_buffer_pool *pool = >->buffer_pool; in intel_gt_flush_buffer_pool() local 244 struct intel_gt_buffer_pool *pool = >->buffer_pool; in intel_gt_fini_buffer_pool() local
|
| /linux/sound/core/seq/ |
| H A D | seq_memory.c | 22 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() 225 static inline void free_cell(struct snd_seq_pool *pool, in free_cell() 235 struct snd_seq_pool *pool; in snd_seq_cell_free() local 267 static int snd_seq_cell_alloc(struct snd_seq_pool *pool, in snd_seq_cell_alloc() 339 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event, in snd_seq_event_dup() 426 int snd_seq_pool_poll_wait(struct snd_seq_pool *pool, struct file *file, in snd_seq_pool_poll_wait() 436 int snd_seq_pool_init(struct snd_seq_pool *pool) in snd_seq_pool_init() 473 void snd_seq_pool_mark_closing(struct snd_seq_pool *pool) in snd_seq_pool_mark_closing() 482 int snd_seq_pool_done(struct snd_seq_pool *pool) in snd_seq_pool_done() [all …]
|
| /linux/net/ceph/ |
| H A D | msgpool.c | 14 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/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | alloc.c | 61 struct mlx5_dma_pool *pool; member 102 static void mlx5_dma_pool_destroy(struct mlx5_dma_pool *pool) in mlx5_dma_pool_destroy() 111 struct mlx5_dma_pool *pool; in mlx5_dma_pool_create() local 126 mlx5_dma_pool_page_alloc(struct mlx5_dma_pool *pool) in mlx5_dma_pool_page_alloc() 165 static int mlx5_dma_pool_alloc_from_page(struct mlx5_dma_pool *pool, in mlx5_dma_pool_alloc_from_page() 184 mlx5_dma_pool_alloc(struct mlx5_dma_pool *pool, unsigned long *idx_out) in mlx5_dma_pool_alloc() 207 static void mlx5_dma_pool_free(struct mlx5_dma_pool *pool, in mlx5_dma_pool_free() 230 static void mlx5_dma_pool_debugfs_get_stats(struct mlx5_dma_pool *pool, in mlx5_dma_pool_debugfs_get_stats() 252 struct mlx5_dma_pool *pool) in mlx5_dma_pool_debugfs_stats_print() 318 struct mlx5_dma_pool *pool = node_pools->pools[i]; in mlx5_frag_buf_dma_pools_debugfs_show() local [all …]
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-css-pool.c | 25 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/arch/mips/include/asm/octeon/ |
| H A D | cvmx-fpa.h | 106 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/drivers/net/ethernet/marvell/ |
| H A D | mvneta_bm.h | 33 #define MVNETA_BM_XBAR_POOL_REG(pool) \ argument 35 #define MVNETA_BM_TARGET_ID_OFFS(pool) (((pool) & 1) ? 16 : 0) argument 36 #define MVNETA_BM_TARGET_ID_MASK(pool) \ argument 38 #define MVNETA_BM_TARGET_ID_VAL(pool, id) \ argument 40 #define MVNETA_BM_XBAR_ATTR_OFFS(pool) (((pool) & 1) ? 20 : 4) argument 41 #define MVNETA_BM_XBAR_ATTR_MASK(pool) \ argument 43 #define MVNETA_BM_XBAR_ATTR_VAL(pool, attr) \ argument 47 #define MVNETA_BM_POOL_BASE_REG(pool) (0x10 + ((pool) << 4)) argument 51 #define MVNETA_BM_POOL_READ_PTR_REG(pool) (0x14 + ((pool) << 4)) argument 57 #define MVNETA_BM_POOL_WRITE_PTR_REG(pool) (0x18 + ((pool) << 4)) argument [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | crypto.c | 19 #define MLX5_CRYPTO_DEK_POOL_CALC_FREED(pool) MLX5_CRYPTO_DEK_CALC_FREED(pool) argument 288 mlx5_crypto_dek_bulk_create(struct mlx5_crypto_dek_pool *pool) in mlx5_crypto_dek_bulk_create() 334 mlx5_crypto_dek_pool_add_bulk(struct mlx5_crypto_dek_pool *pool) in mlx5_crypto_dek_pool_add_bulk() 357 static void mlx5_crypto_dek_pool_remove_bulk(struct mlx5_crypto_dek_pool *pool, in mlx5_crypto_dek_pool_remove_bulk() 370 mlx5_crypto_dek_pool_pop(struct mlx5_crypto_dek_pool *pool, u32 *obj_offset) in mlx5_crypto_dek_pool_pop() 420 static bool mlx5_crypto_dek_need_sync(struct mlx5_crypto_dek_pool *pool) in mlx5_crypto_dek_need_sync() 426 static int mlx5_crypto_dek_free_locked(struct mlx5_crypto_dek_pool *pool, in mlx5_crypto_dek_free_locked() 454 static int mlx5_crypto_dek_pool_push(struct mlx5_crypto_dek_pool *pool, in mlx5_crypto_dek_pool_push() 479 static void mlx5_crypto_dek_bulk_reset_synced(struct mlx5_crypto_dek_pool *pool, in mlx5_crypto_dek_bulk_reset_synced() 510 static bool mlx5_crypto_dek_bulk_handle_avail(struct mlx5_crypto_dek_pool *pool, in mlx5_crypto_dek_bulk_handle_avail() [all …]
|
| /linux/kernel/ |
| H A D | workqueue.c | 272 struct worker_pool *pool; /* I: the associated pool */ member 564 #define for_each_bh_worker_pool(pool, cpu) \ argument 569 #define for_each_cpu_worker_pool(pool, cpu) \ argument 586 #define for_each_pool(pool, pi) \ argument 601 #define for_each_pool_worker(worker, pool) \ argument 726 static int worker_pool_assign_id(struct worker_pool *pool) in worker_pool_assign_id() 787 static unsigned long pool_offq_flags(struct worker_pool *pool) in pool_offq_flags() 952 static bool need_more_worker(struct worker_pool *pool) in need_more_worker() 958 static bool may_start_working(struct worker_pool *pool) in may_start_working() 964 static bool keep_working(struct worker_pool *pool) in keep_working() [all …]
|
| /linux/drivers/tee/amdtee/ |
| H A D | shm_pool.c | 11 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_alloc() 41 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_free() 49 static void pool_op_destroy_pool(struct tee_shm_pool *pool) in pool_op_destroy_pool() 62 struct tee_shm_pool *pool = kzalloc_obj(*pool); in amdtee_config_shm() local
|
| /linux/include/linux/ |
| H A D | genalloc.h | 102 static inline int gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, in gen_pool_add_virt() 120 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, in gen_pool_add() 129 static inline unsigned long gen_pool_alloc_owner(struct gen_pool *pool, in gen_pool_alloc_owner() 136 static inline unsigned long gen_pool_alloc_algo(struct gen_pool *pool, in gen_pool_alloc_algo() 152 static inline unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) in gen_pool_alloc() 170 static inline void gen_pool_free(struct gen_pool *pool, unsigned long addr, in gen_pool_free()
|
| /linux/drivers/tee/ |
| H A D | tee_shm_pool.c | 12 static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_gen_alloc() 37 static void pool_op_gen_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_gen_free() 44 static void pool_op_gen_destroy_pool(struct tee_shm_pool *pool) in pool_op_gen_destroy_pool() 61 struct tee_shm_pool *pool; in tee_shm_pool_alloc_res_mem() local
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_cnt.c | 54 struct mlxsw_sp_counter_pool *pool = mlxsw_sp->counter_pool; in mlxsw_sp_counter_sub_pools_init() local 99 struct mlxsw_sp_counter_pool *pool = mlxsw_sp->counter_pool; in mlxsw_sp_counter_sub_pools_fini() local 115 const struct mlxsw_sp_counter_pool *pool = priv; in mlxsw_sp_counter_pool_occ_get() local 124 struct mlxsw_sp_counter_pool *pool; in mlxsw_sp_counter_pool_init() local 168 struct mlxsw_sp_counter_pool *pool = mlxsw_sp->counter_pool; in mlxsw_sp_counter_pool_fini() local 184 struct mlxsw_sp_counter_pool *pool = mlxsw_sp->counter_pool; in mlxsw_sp_counter_alloc() local 225 struct mlxsw_sp_counter_pool *pool = mlxsw_sp->counter_pool; in mlxsw_sp_counter_free() local
|
| /linux/kernel/dma/ |
| H A D | swiotlb.c | 333 static void swiotlb_mark_pool_used(struct io_tlb_pool *pool) in swiotlb_mark_pool_used() 423 static void add_mem_pool(struct io_tlb_mem *mem, struct io_tlb_pool *pool) in add_mem_pool() 837 struct io_tlb_pool *pool; in swiotlb_alloc_pool() local 892 struct io_tlb_pool *pool; in swiotlb_dyn_alloc() local 906 struct io_tlb_pool *pool = in swiotlb_dyn_free_work() local 916 static void swiotlb_schedule_dyn_free(struct io_tlb_pool *pool) in swiotlb_schedule_dyn_free() 937 struct io_tlb_pool *pool; in __swiotlb_find_pool() local 960 static void swiotlb_del_pool(struct device *dev, struct io_tlb_pool *pool) in swiotlb_del_pool() 1159 static int swiotlb_search_pool_area(struct device *dev, struct io_tlb_pool *pool, in swiotlb_search_pool_area() 1289 struct io_tlb_pool *pool; in swiotlb_search_area() local [all …]
|