Lines Matching defs:pool
393 /* In the DMAC pool */
2550 /* Returns the number of descriptors added to the DMAC pool */
2551 static int add_desc(struct list_head *pool, spinlock_t *lock,
2566 list_add_tail(&desc[i].node, pool);
2574 static struct dma_pl330_desc *pluck_desc(struct list_head *pool,
2582 if (!list_empty(pool)) {
2583 desc = list_entry(pool->next,
2603 /* Pluck one desc from the pool of DMAC */
2606 /* If the DMAC pool is empty, alloc new */
2609 LIST_HEAD(pool);
2611 if (!add_desc(&pool, &lock, GFP_ATOMIC, 1))
2614 desc = pluck_desc(&pool, &lock);
2615 WARN_ON(!desc || !list_empty(&pool));
3094 /* Create a descriptor pool of default size */