* the structure provided by the caller can be released or reused after the
* function returns.
*/
+__rte_internal
struct bman_pool *bman_new_pool(const struct bman_pool_params *params);
/**
* bman_free_pool - Deallocates a Buffer Pool object
* @pool: the pool object to release
*/
+__rte_internal
void bman_free_pool(struct bman_pool *pool);
/**
* The returned pointer refers to state within the pool object so must not be
* modified and can no longer be read once the pool object is destroyed.
*/
+__rte_internal
const struct bman_pool_params *bman_get_params(const struct bman_pool *pool);
/**
* @flags: bit-mask of BMAN_RELEASE_FLAG_*** options
*
*/
+__rte_internal
int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
u32 flags);
* The return value will be the number of buffers obtained from the pool, or a
* negative error code if a h/w error or pool starvation was encountered.
*/
+__rte_internal
int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num,
u32 flags);
*
* Return the number of the free buffers
*/
+__rte_internal
u32 bman_query_free_buffers(struct bman_pool *pool);
/**