Searched refs:hwbm_pool (Results 1 – 5 of 5) sorted by relevance
/linux/include/net/ |
A D | hwbm.h | 5 struct hwbm_pool { struct 13 int (*construct)(struct hwbm_pool *bm_pool, void *buf); argument 20 void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf); argument 21 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp); 22 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num); 24 static inline void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {} in hwbm_buf_free() 26 static inline int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) in hwbm_pool_refill() 29 static inline int hwbm_pool_add(struct hwbm_pool *bm_pool, in hwbm_pool_add()
|
/linux/drivers/net/ethernet/marvell/ |
A D | mvneta_bm.c | 93 int mvneta_bm_construct(struct hwbm_pool *hwbm_pool, void *buf) in mvneta_bm_construct() argument 183 struct hwbm_pool *hwbm_pool = &new_pool->hwbm_pool; in mvneta_bm_pool_use() local 188 hwbm_pool->frag_size = in mvneta_bm_pool_use() 192 hwbm_pool->priv = new_pool; in mvneta_bm_pool_use() 204 num = hwbm_pool_add(hwbm_pool, hwbm_pool->size); in mvneta_bm_pool_use() 205 if (num != hwbm_pool->size) { in mvneta_bm_pool_use() 253 bm_pool->hwbm_pool.buf_num -= i; in mvneta_bm_bufs_free() 261 struct hwbm_pool *hwbm_pool = &bm_pool->hwbm_pool; in mvneta_bm_pool_destroy() local 269 if (hwbm_pool->buf_num) in mvneta_bm_pool_destroy() 327 bm_pool->hwbm_pool.size = size; in mvneta_bm_pools_init() [all …]
|
A D | mvneta_bm.h | 111 struct hwbm_pool hwbm_pool; member 141 int mvneta_bm_construct(struct hwbm_pool *hwbm_pool, void *buf); 169 static inline int mvneta_bm_construct(struct hwbm_pool *hwbm_pool, void *buf) in mvneta_bm_construct() argument
|
A D | mvneta.c | 1177 struct hwbm_pool *hwbm_pool = &bm_pool->hwbm_pool; in mvneta_bm_update_mtu() local 1182 if (hwbm_pool->buf_num) { in mvneta_bm_update_mtu() 1190 hwbm_pool->frag_size = SKB_DATA_ALIGN(sizeof(struct skb_shared_info)) + in mvneta_bm_update_mtu() 1194 num = hwbm_pool_add(hwbm_pool, hwbm_pool->size); in mvneta_bm_update_mtu() 1195 if (num != hwbm_pool->size) { in mvneta_bm_update_mtu() 1197 bm_pool->id, num, hwbm_pool->size); in mvneta_bm_update_mtu() 2543 err = hwbm_pool_refill(&bm_pool->hwbm_pool, GFP_ATOMIC); in mvneta_rx_hwbm() 2557 frag_size = bm_pool->hwbm_pool.frag_size; in mvneta_rx_hwbm()
|
/linux/net/core/ |
A D | hwbm.c | 13 void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) in hwbm_buf_free() 23 int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) in hwbm_pool_refill() 46 int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num) in hwbm_pool_add()
|
Completed in 19 milliseconds