Lines Matching refs:pool
1273 void __qdf_mempool_destroy(qdf_device_t osdev, __qdf_mempool_t pool) in __qdf_mempool_destroy() argument
1277 if (!pool) in __qdf_mempool_destroy()
1281 kfree(pool); in __qdf_mempool_destroy()
1285 pool_id = pool->pool_id; in __qdf_mempool_destroy()
1288 kfree(pool->pool_mem); in __qdf_mempool_destroy()
1289 kfree(pool); in __qdf_mempool_destroy()
1294 void *__qdf_mempool_alloc(qdf_device_t osdev, __qdf_mempool_t pool) in __qdf_mempool_alloc() argument
1298 if (!pool) in __qdf_mempool_alloc()
1302 return qdf_mem_malloc(pool->elem_size); in __qdf_mempool_alloc()
1304 spin_lock_bh(&pool->lock); in __qdf_mempool_alloc()
1306 buf = STAILQ_FIRST(&pool->free_list); in __qdf_mempool_alloc()
1308 STAILQ_REMOVE_HEAD(&pool->free_list, mempool_entry); in __qdf_mempool_alloc()
1309 pool->free_cnt--; in __qdf_mempool_alloc()
1313 spin_unlock_bh(&pool->lock); in __qdf_mempool_alloc()
1319 void __qdf_mempool_free(qdf_device_t osdev, __qdf_mempool_t pool, void *buf) in __qdf_mempool_free() argument
1321 if (!pool) in __qdf_mempool_free()
1328 spin_lock_bh(&pool->lock); in __qdf_mempool_free()
1329 pool->free_cnt++; in __qdf_mempool_free()
1332 (&pool->free_list, (mempool_elem_t *)buf, mempool_entry); in __qdf_mempool_free()
1333 spin_unlock_bh(&pool->lock); in __qdf_mempool_free()