• Home
  • Raw
  • Download

Lines Matching refs:pool

19 #define DEBUGFS_POOL_COUNTER_RESET(pool) (pool->debugfs_pool_counter = 0)  argument
20 #define DEBUGFS_POOL_COUNTER_ADD(pool, add) (pool->debugfs_pool_counter += add) argument
22 #define DEBUGFS_POOL_COUNTER_RESET(pool) argument
23 #define DEBUGFS_POOL_COUNTER_ADD(pool, add) argument
35 int coh901318_pool_create(struct coh901318_pool *pool, in coh901318_pool_create() argument
39 spin_lock_init(&pool->lock); in coh901318_pool_create()
40 pool->dev = dev; in coh901318_pool_create()
41 pool->dmapool = dma_pool_create("lli_pool", dev, size, align, 0); in coh901318_pool_create()
43 DEBUGFS_POOL_COUNTER_RESET(pool); in coh901318_pool_create()
47 int coh901318_pool_destroy(struct coh901318_pool *pool) in coh901318_pool_destroy() argument
50 dma_pool_destroy(pool->dmapool); in coh901318_pool_destroy()
55 coh901318_lli_alloc(struct coh901318_pool *pool, unsigned int len) in coh901318_lli_alloc() argument
66 spin_lock(&pool->lock); in coh901318_lli_alloc()
68 head = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy); in coh901318_lli_alloc()
73 DEBUGFS_POOL_COUNTER_ADD(pool, 1); in coh901318_lli_alloc()
83 lli = dma_pool_alloc(pool->dmapool, GFP_NOWAIT, &phy); in coh901318_lli_alloc()
88 DEBUGFS_POOL_COUNTER_ADD(pool, 1); in coh901318_lli_alloc()
97 spin_unlock(&pool->lock); in coh901318_lli_alloc()
102 spin_unlock(&pool->lock); in coh901318_lli_alloc()
107 spin_unlock(&pool->lock); in coh901318_lli_alloc()
108 coh901318_lli_free(pool, &head); in coh901318_lli_alloc()
112 void coh901318_lli_free(struct coh901318_pool *pool, in coh901318_lli_free() argument
126 spin_lock(&pool->lock); in coh901318_lli_free()
130 dma_pool_free(pool->dmapool, l, l->phy_this); in coh901318_lli_free()
131 DEBUGFS_POOL_COUNTER_ADD(pool, -1); in coh901318_lli_free()
134 dma_pool_free(pool->dmapool, l, l->phy_this); in coh901318_lli_free()
135 DEBUGFS_POOL_COUNTER_ADD(pool, -1); in coh901318_lli_free()
137 spin_unlock(&pool->lock); in coh901318_lli_free()
142 coh901318_lli_fill_memcpy(struct coh901318_pool *pool, in coh901318_lli_fill_memcpy() argument
175 coh901318_lli_fill_single(struct coh901318_pool *pool, in coh901318_lli_fill_single() argument
231 coh901318_lli_fill_sg(struct coh901318_pool *pool, in coh901318_lli_fill_sg() argument
249 spin_lock(&pool->lock); in coh901318_lli_fill_sg()
307 spin_unlock(&pool->lock); in coh901318_lli_fill_sg()
311 spin_unlock(&pool->lock); in coh901318_lli_fill_sg()