18 #if (defined(CONFIG_DEBUG_FS) && defined(CONFIG_U300_DEBUG))
19 #define DEBUGFS_POOL_COUNTER_RESET(pool) (pool->debugfs_pool_counter = 0)
20 #define DEBUGFS_POOL_COUNTER_ADD(pool, add) (pool->debugfs_pool_counter += add)
22 #define DEBUGFS_POOL_COUNTER_RESET(pool)
23 #define DEBUGFS_POOL_COUNTER_ADD(pool, add)
66 spin_lock(&pool->
lock);
80 for (i = 1; i < len; i++) {
97 spin_unlock(&pool->
lock);
102 spin_unlock(&pool->
lock);
107 spin_unlock(&pool->
lock);
126 spin_lock(&pool->
lock);
137 spin_unlock(&pool->
lock);
161 lli = coh901318_lli_next(lli);
215 lli = coh901318_lli_next(lli);
243 u32 bytes_to_transfer;
249 spin_lock(&pool->
lock);
264 ctrl_sg = ctrl_chained;
265 }
else if (i == nents - 1)
268 ctrl_sg = ctrl ? ctrl : ctrl_last;
280 while (bytes_to_transfer) {
287 elem_size = bytes_to_transfer;
291 lli->
control = val | elem_size;
302 bytes_to_transfer -= elem_size;
303 lli = coh901318_lli_next(lli);
307 spin_unlock(&pool->
lock);
311 spin_unlock(&pool->
lock);