Lines Matching refs:gen_pool
94 struct gen_pool *gen_pool; member
193 WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool), in cpdma_desc_pool_destroy()
195 gen_pool_size(pool->gen_pool), in cpdma_desc_pool_destroy()
196 gen_pool_avail(pool->gen_pool)); in cpdma_desc_pool_destroy()
236 pool->gen_pool = devm_gen_pool_create(ctlr->dev, ilog2(pool->desc_size), in cpdma_desc_pool_create()
238 if (IS_ERR(pool->gen_pool)) { in cpdma_desc_pool_create()
239 ret = PTR_ERR(pool->gen_pool); in cpdma_desc_pool_create()
259 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->iomap, in cpdma_desc_pool_create()
293 gen_pool_alloc(pool->gen_pool, pool->desc_size); in cpdma_desc_alloc()
299 gen_pool_free(pool->gen_pool, (unsigned long)desc, pool->desc_size); in cpdma_desc_free()
1109 gen_pool_avail(pool->gen_pool); in cpdma_check_free_tx_desc()