Lines Matching refs:area
106 * struct io_tlb_area - IO TLB memory area descriptor
108 * This is a single area with a single lock.
111 * @index: The slot index to start searching in this area for next round.
122 * Round up number of slabs to the next power of 2. The last area is going
124 * The number of slot in an area should be a multiple of IO_TLB_SEGSIZE,
127 * whether they cross an area boundary.
149 * The default size of the memory pool may also change to meet minimum area
161 pr_info("area num %d.\n", nareas);
875 * or subsequent slots of the allocated swiotlb area. While it's not
1000 * swiotlb_search_pool_area() - search one memory area in one pool
1003 * @area_index: Index of the IO TLB memory area to be searched.
1010 * a buffer from the given IO TLB memory area.
1019 struct io_tlb_area *area = pool->areas + area_index;
1060 spin_lock_irqsave(&area->lock, flags);
1061 if (unlikely(nslots > pool->area_nslabs - area->used))
1065 index = area->index;
1092 spin_unlock_irqrestore(&area->lock, flags);
1114 area->index = wrap_area_index(pool, index + nslots);
1115 area->used += nslots;
1116 spin_unlock_irqrestore(&area->lock, flags);
1125 * swiotlb_search_area() - search one memory area in all pools
1135 * Search one memory area in all pools for a sequence of slots that match the
1413 struct io_tlb_area *area;
1420 area = &mem->areas[aindex];
1430 spin_lock_irqsave(&area->lock, flags);
1455 area->used -= nslots;
1456 spin_unlock_irqrestore(&area->lock, flags);
1758 /* Set Per-device io tlb area to one */