Lines Matching refs:gen_pool
87 struct gen_pool *gen_pool; member
197 WARN(gen_pool_size(pool->gen_pool) != gen_pool_avail(pool->gen_pool), in cpdma_desc_pool_destroy()
199 gen_pool_size(pool->gen_pool), in cpdma_desc_pool_destroy()
200 gen_pool_avail(pool->gen_pool)); in cpdma_desc_pool_destroy()
240 pool->gen_pool = devm_gen_pool_create(ctlr->dev, ilog2(pool->desc_size), in cpdma_desc_pool_create()
242 if (IS_ERR(pool->gen_pool)) { in cpdma_desc_pool_create()
243 ret = PTR_ERR(pool->gen_pool); in cpdma_desc_pool_create()
263 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->iomap, in cpdma_desc_pool_create()
297 gen_pool_alloc(pool->gen_pool, pool->desc_size); in cpdma_desc_alloc()
303 gen_pool_free(pool->gen_pool, (unsigned long)desc, pool->desc_size); in cpdma_desc_free()
1188 gen_pool_avail(pool->gen_pool); in cpdma_check_free_tx_desc()