Lines Matching refs:page_pool
3 * page_pool.h
9 * DOC: page_pool allocator
11 * This page_pool allocator is optimized for the XDP mode that
20 * when it is safe to dealloactor page_pool object. Thus, API users
22 * "leaving" the page_pool. Or call page_pool_put_page() where
37 #define PP_FLAG_DMA_MAP BIT(0) /* Should page_pool do the DMA
41 * from page_pool will be
82 struct page_pool {
99 * For NIC drivers this means, allocate a page_pool per
122 /* A page_pool is strictly tied to a single RX-queue being
131 struct page *page_pool_alloc_pages(struct page_pool *pool, gfp_t gfp);
133 static inline struct page *page_pool_dev_alloc_pages(struct page_pool *pool)
141 * avoid the extra cache line from page_pool to determine the direction
144 inline enum dma_data_direction page_pool_get_dma_dir(struct page_pool *pool)
149 struct page_pool *page_pool_create(const struct page_pool_params *params);
152 void page_pool_destroy(struct page_pool *pool);
153 void page_pool_use_xdp_mem(struct page_pool *pool, void (*disconnect)(void *));
154 void page_pool_release_page(struct page_pool *pool, struct page *page);
156 static inline void page_pool_destroy(struct page_pool *pool)
160 static inline void page_pool_use_xdp_mem(struct page_pool *pool,
164 static inline void page_pool_release_page(struct page_pool *pool,
170 void page_pool_put_page(struct page_pool *pool, struct page *page,
174 static inline void page_pool_put_full_page(struct page_pool *pool,
177 /* When page_pool isn't compiled-in, net/core/xdp.c doesn't
186 static inline void page_pool_recycle_direct(struct page_pool *pool,
216 static inline bool page_pool_put(struct page_pool *pool)
222 void page_pool_update_nid(struct page_pool *pool, int new_nid);
223 static inline void page_pool_nid_changed(struct page_pool *pool, int new_nid)