| /* SPDX-License-Identifier: GPL-2.0 */ |
| /* Capacity of the pool */ |
| /* Size of the buffers managed */ |
| /* Number of buffers currently used by this pool */ |
| /* constructor called during alocation */ |
| int (*construct)(struct hwbm_pool *bm_pool, void *buf); |
| /* protect acces to the buffer counter*/ |
| void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf); |
| int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp); |
| int hwbm_pool_add(struct hwbm_pool *bm_pool, unsigned int buf_num); |
| static inline void hwbm_buf_free(struct hwbm_pool *bm_pool, void *buf) {} |
| static inline int hwbm_pool_refill(struct hwbm_pool *bm_pool, gfp_t gfp) |
| static inline int hwbm_pool_add(struct hwbm_pool *bm_pool, |