Lines Matching refs:pool
76 * @brief Function to create BMAN pool.
81 * @param bufferSize The size of buffers in newly created pool.
89 * @param allocBuffers The number of buffers to preallocate during pool
117 * @param h_BufferPool The user provided buffer pool context passed to
126 * @returns Handle to newly created BMAN pool or NULL on error.
128 * @cautions If pool uses software stockpile, all accesses to given
129 * pool must be protected by lock. Even if only hardware
142 * @brief Fill pool with buffers.
144 * The bman_pool_fill() function fills the BMAN pool with buffers. The buffers
147 * @param pool The BMAN pool handle.
153 int bman_pool_fill(t_Handle pool, uint16_t nbufs);
156 * @brief Destroy pool.
158 * The bman_pool_destroy() function destroys the BMAN pool. Buffers for pool
161 * @param pool The BMAN pool handle.
165 int bman_pool_destroy(t_Handle pool);
168 * @brief Get a buffer from BMAN pool.
170 * @param pool The BMAN pool handle.
172 * @returns Pointer to the buffer or NULL if pool is empty.
174 void *bman_get_buffer(t_Handle pool);
177 * @brief Put a buffer to BMAN pool.
179 * @param pool The BMAN pool handle.
184 int bman_put_buffer(t_Handle pool, void *buffer);
187 * @brief Count free buffers in given pool.
189 * @param pool The BMAN pool handle.
191 * @returns Number of free buffers in pool.
193 uint32_t bman_count(t_Handle pool);