Lines Matching defs:pool
102 * with 4 pools all primary threads would map to the same pool.
227 struct iommu_pool *pool;
245 * safely use any IOMMU pool.
250 pool = &(tbl->large_pool);
252 pool = &(tbl->pools[pool_nr]);
254 spin_lock_irqsave(&(pool->lock), flags);
258 (*handle >= pool->start) && (*handle < pool->end))
261 start = pool->hint;
263 limit = pool->end;
270 start = pool->start;
276 * but on second pass, start at 0 in pool 0.
279 spin_unlock(&(pool->lock));
280 pool = &(tbl->pools[0]);
281 spin_lock(&(pool->lock));
282 start = pool->start;
293 /* First try the pool from the start */
294 pool->hint = pool->start;
300 spin_unlock(&(pool->lock));
302 pool = &tbl->pools[pool_nr];
303 spin_lock(&(pool->lock));
304 pool->hint = pool->start;
310 spin_unlock(&pool->lock);
311 pool = &tbl->large_pool;
312 spin_lock(&pool->lock);
313 pool->hint = pool->start;
319 spin_unlock_irqrestore(&(pool->lock), flags);
329 pool->hint = end;
332 pool->hint = (end + tbl->it_blocksize - 1) &
340 spin_unlock_irqrestore(&(pool->lock), flags);
422 /* The large pool is the last pool at the top of the table */
440 struct iommu_pool *pool;
445 pool = get_pool(tbl, free_entry);
452 spin_lock_irqsave(&(pool->lock), flags);
454 spin_unlock_irqrestore(&(pool->lock), flags);