/Linux-v5.4/net/core/ |
D | page_pool.c | 21 static int page_pool_init(struct page_pool *pool, in page_pool_init() 63 struct page_pool *pool; in page_pool_create() local 82 static struct page *__page_pool_get_cached(struct page_pool *pool) in __page_pool_get_cached() 117 static struct page *__page_pool_alloc_pages_slow(struct page_pool *pool, in __page_pool_alloc_pages_slow() 172 struct page *page_pool_alloc_pages(struct page_pool *pool, gfp_t gfp) in page_pool_alloc_pages() 192 static s32 page_pool_inflight(struct page_pool *pool) in page_pool_inflight() 204 static bool __page_pool_safe_to_destroy(struct page_pool *pool) in __page_pool_safe_to_destroy() 215 static void __page_pool_clean_page(struct page_pool *pool, in __page_pool_clean_page() 236 void page_pool_unmap_page(struct page_pool *pool, struct page *page) in page_pool_unmap_page() 246 static void __page_pool_return_page(struct page_pool *pool, struct page *page) in __page_pool_return_page() [all …]
|
/Linux-v5.4/drivers/infiniband/sw/rxe/ |
D | rxe_pool.c | 108 static inline const char *pool_name(struct rxe_pool *pool) in pool_name() 113 static inline struct kmem_cache *pool_cache(struct rxe_pool *pool) in pool_cache() 169 static int rxe_pool_init_index(struct rxe_pool *pool, u32 max, u32 min) in rxe_pool_init_index() 199 struct rxe_pool *pool, in rxe_pool_init() 243 struct rxe_pool *pool = container_of(kref, struct rxe_pool, ref_cnt); in rxe_pool_release() local 249 static void rxe_pool_put(struct rxe_pool *pool) in rxe_pool_put() 254 void rxe_pool_cleanup(struct rxe_pool *pool) in rxe_pool_cleanup() 268 static u32 alloc_index(struct rxe_pool *pool) in alloc_index() 283 static void insert_index(struct rxe_pool *pool, struct rxe_pool_entry *new) in insert_index() 310 static void insert_key(struct rxe_pool *pool, struct rxe_pool_entry *new) in insert_key() [all …]
|
/Linux-v5.4/drivers/md/ |
D | dm-thin.c | 229 struct pool { struct 231 struct dm_target *ti; /* Only set if a pool target is bound */ argument 233 struct mapped_device *pool_md; argument 235 struct dm_pool_metadata *pmd; argument 241 struct pool_features pf; argument 242 bool low_water_triggered:1; /* A dm event has been sent */ 243 bool suspended:1; 244 bool out_of_data_space:1; 246 struct dm_bio_prison *prison; 247 struct dm_kcopyd_client *copier; [all …]
|
/Linux-v5.4/drivers/staging/android/ion/ |
D | ion_page_pool.c | 15 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.4/mm/ |
D | mempool.c | 25 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() 82 static void poison_element(mempool_t *pool, void *element) in poison_element() 98 static inline void check_element(mempool_t *pool, void *element) in check_element() 101 static inline void poison_element(mempool_t *pool, void *element) in poison_element() 106 static __always_inline void kasan_poison_element(mempool_t *pool, void *element) in kasan_poison_element() 114 static void kasan_unpoison_element(mempool_t *pool, void *element) in kasan_unpoison_element() 122 static __always_inline void add_element(mempool_t *pool, void *element) in add_element() 130 static void *remove_element(mempool_t *pool) in remove_element() [all …]
|
D | zbud.c | 129 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 …]
|
D | z3fold.c | 92 unsigned long pool; /* back link + flags */ member 119 struct z3fold_pool *pool; member 196 static inline struct z3fold_buddy_slots *alloc_slots(struct z3fold_pool *pool, in alloc_slots() 243 struct z3fold_pool *pool = slots_to_pool(slots); in free_handle() local 278 static int z3fold_register_migration(struct z3fold_pool *pool) in z3fold_register_migration() 291 static void z3fold_unregister_migration(struct z3fold_pool *pool) in z3fold_unregister_migration() 299 struct z3fold_pool *pool, gfp_t gfp) in init_z3fold_page() 444 struct z3fold_pool *pool = zhdr_to_pool(zhdr); in __release_z3fold_page() local 481 struct z3fold_pool *pool = zhdr_to_pool(zhdr); in release_z3fold_page_locked_list() local 492 struct z3fold_pool *pool = container_of(w, struct z3fold_pool, work); in free_pages_work() local [all …]
|
D | zsmalloc.c | 317 static int zs_register_migration(struct zs_pool *pool) { return 0; } in zs_register_migration() 318 static void zs_unregister_migration(struct zs_pool *pool) {} in zs_unregister_migration() 322 static void kick_deferred_free(struct zs_pool *pool) {} in kick_deferred_free() 323 static void init_deferred_free(struct zs_pool *pool) {} in init_deferred_free() 324 static void SetZsPageMovable(struct zs_pool *pool, struct zspage *zspage) {} in SetZsPageMovable() 327 static int create_cache(struct zs_pool *pool) in create_cache() 345 static void destroy_cache(struct zs_pool *pool) in destroy_cache() 351 static unsigned long cache_alloc_handle(struct zs_pool *pool, gfp_t gfp) in cache_alloc_handle() 357 static void cache_free_handle(struct zs_pool *pool, unsigned long handle) in cache_free_handle() 362 static struct zspage *cache_alloc_zspage(struct zs_pool *pool, gfp_t flags) in cache_alloc_zspage() [all …]
|
D | dmapool.c | 71 struct dma_pool *pool; in show_pools() local 205 static void pool_initialise_page(struct dma_pool *pool, struct dma_page *page) in pool_initialise_page() 221 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) in pool_alloc_page() 249 static void pool_free_page(struct dma_pool *pool, struct dma_page *page) in pool_free_page() 269 void dma_pool_destroy(struct dma_pool *pool) in dma_pool_destroy() 319 void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc() 388 static struct dma_page *pool_find_page(struct dma_pool *pool, dma_addr_t dma) in pool_find_page() 410 void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma) in dma_pool_free() 482 struct dma_pool *pool = *(struct dma_pool **)res; in dmam_pool_release() local 509 struct dma_pool **ptr, *pool; in dmam_pool_create() local [all …]
|
D | zswap.c | 156 struct zswap_pool *pool; member 219 struct zswap_pool *pool; in zswap_update_total_size() local 400 struct zswap_pool *pool = hlist_entry(node, struct zswap_pool, node); in zswap_cpu_comp_prepare() local 418 struct zswap_pool *pool = hlist_entry(node, struct zswap_pool, node); in zswap_cpu_comp_dead() local 434 struct zswap_pool *pool; in __zswap_pool_current() local 452 struct zswap_pool *pool; in zswap_pool_current_get() local 467 struct zswap_pool *pool, *last = NULL; in zswap_pool_last_get() local 486 struct zswap_pool *pool; in zswap_pool_find_get() local 506 struct zswap_pool *pool; in zswap_pool_create() local 607 static void zswap_pool_destroy(struct zswap_pool *pool) in zswap_pool_destroy() [all …]
|
/Linux-v5.4/lib/ |
D | genalloc.c | 153 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.4/drivers/dma/ |
D | coh901318_lli.c | 19 #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.4/sound/core/seq/ |
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() 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.4/include/net/ |
D | page_pool.h | 114 static inline struct page *page_pool_dev_alloc_pages(struct page_pool *pool) in page_pool_dev_alloc_pages() 125 inline enum dma_data_direction page_pool_get_dma_dir(struct page_pool *pool) in page_pool_get_dma_dir() 133 static inline void page_pool_free(struct page_pool *pool) in page_pool_free() 144 static inline void page_pool_destroy(struct page_pool *pool) in page_pool_destroy() 156 static inline void page_pool_put_page(struct page_pool *pool, in page_pool_put_page() 167 static inline void page_pool_recycle_direct(struct page_pool *pool, in page_pool_recycle_direct() 181 static inline bool page_pool_request_shutdown(struct page_pool *pool) in page_pool_request_shutdown() 197 static inline void page_pool_release_page(struct page_pool *pool, in page_pool_release_page() 219 static inline void page_pool_get(struct page_pool *pool) in page_pool_get() 224 static inline bool page_pool_put(struct page_pool *pool) in page_pool_put()
|
/Linux-v5.4/drivers/gpu/drm/i915/gt/ |
D | intel_engine_pool.c | 13 static struct intel_engine_cs *to_engine(struct intel_engine_pool *pool) in to_engine() 19 bucket_for_size(struct intel_engine_pool *pool, size_t sz) in bucket_for_size() 68 struct intel_engine_pool *pool = node->pool; in pool_retire() local 85 node_create(struct intel_engine_pool *pool, size_t sz) in node_create() 113 intel_engine_pool_get(struct intel_engine_pool *pool, size_t size) in intel_engine_pool_get() 149 void intel_engine_pool_init(struct intel_engine_pool *pool) in intel_engine_pool_init() 158 void intel_engine_pool_park(struct intel_engine_pool *pool) in intel_engine_pool_park() 173 void intel_engine_pool_fini(struct intel_engine_pool *pool) in intel_engine_pool_fini()
|
/Linux-v5.4/net/ceph/ |
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-v5.4/drivers/staging/octeon/ |
D | ethernet-mem.c | 24 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.4/drivers/staging/media/ipu3/ |
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-v5.4/arch/mips/include/asm/octeon/ |
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-v5.4/include/linux/ |
D | dmapool.h | 41 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()
|
D | genalloc.h | 101 static inline int gen_pool_add_virt(struct gen_pool *pool, unsigned long addr, in gen_pool_add_virt() 119 static inline int gen_pool_add(struct gen_pool *pool, unsigned long addr, in gen_pool_add() 128 static inline unsigned long gen_pool_alloc_owner(struct gen_pool *pool, in gen_pool_alloc_owner() 135 static inline unsigned long gen_pool_alloc_algo(struct gen_pool *pool, in gen_pool_alloc_algo() 151 static inline unsigned long gen_pool_alloc(struct gen_pool *pool, size_t size) in gen_pool_alloc() 169 static inline void gen_pool_free(struct gen_pool *pool, unsigned long addr, in gen_pool_free()
|
/Linux-v5.4/drivers/net/ethernet/marvell/ |
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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_icm_pool.c | 12 struct mlx5dr_icm_pool *pool; member 61 struct mlx5dr_icm_pool *pool; member 98 dr_icm_pool_mr_create(struct mlx5dr_icm_pool *pool, in dr_icm_pool_mr_create() 200 struct mlx5dr_icm_pool *pool = bucket->pool; in dr_icm_chunks_create() local 296 static void dr_icm_bucket_init(struct mlx5dr_icm_pool *pool, in dr_icm_bucket_init() 332 static u64 dr_icm_hot_mem_size(struct mlx5dr_icm_pool *pool) in dr_icm_hot_mem_size() 344 static bool dr_icm_reuse_hot_entries(struct mlx5dr_icm_pool *pool, in dr_icm_reuse_hot_entries() 377 static void dr_icm_chill_buckets_start(struct mlx5dr_icm_pool *pool, in dr_icm_chill_buckets_start() 401 static void dr_icm_chill_buckets_end(struct mlx5dr_icm_pool *pool, in dr_icm_chill_buckets_end() 423 static void dr_icm_chill_buckets_abort(struct mlx5dr_icm_pool *pool, in dr_icm_chill_buckets_abort() [all …]
|
/Linux-v5.4/drivers/infiniband/core/ |
D | fmr_pool.c | 115 static inline struct ib_pool_fmr *ib_fmr_cache_lookup(struct ib_fmr_pool *pool, in ib_fmr_cache_lookup() 138 static void ib_fmr_batch_release(struct ib_fmr_pool *pool) in ib_fmr_batch_release() 173 struct ib_fmr_pool *pool = container_of(work, struct ib_fmr_pool, work); in ib_fmr_cleanup_func() local 198 struct ib_fmr_pool *pool; in ib_create_fmr_pool() local 318 void ib_destroy_fmr_pool(struct ib_fmr_pool *pool) in ib_destroy_fmr_pool() 356 int ib_flush_fmr_pool(struct ib_fmr_pool *pool) in ib_flush_fmr_pool() 397 struct ib_fmr_pool *pool = pool_handle; in ib_fmr_pool_map_phys() local 472 struct ib_fmr_pool *pool; in ib_fmr_pool_unmap() local
|
/Linux-v5.4/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 151 struct dma_pool *pool; member 266 static int ttm_set_pages_caching(struct dma_pool *pool, in ttm_set_pages_caching() 286 static void __ttm_dma_free_page(struct dma_pool *pool, struct dma_page *d_page) in __ttm_dma_free_page() 299 static struct dma_page *__ttm_dma_alloc_page(struct dma_pool *pool) in __ttm_dma_alloc_page() 344 static void ttm_pool_update_free_locked(struct dma_pool *pool, in ttm_pool_update_free_locked() 353 static void ttm_dma_page_put(struct dma_pool *pool, struct dma_page *d_page) in ttm_dma_page_put() 370 static void ttm_dma_pages_put(struct dma_pool *pool, struct list_head *d_pages, in ttm_dma_pages_put() 404 static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free, in ttm_dma_page_pool_free() 501 struct dma_pool *pool; in ttm_dma_free_pool() local 543 struct dma_pool *pool = *(struct dma_pool **)res; in ttm_dma_pool_release() local [all …]
|