Lines Matching refs:pages_needed
300 ret = iommu_is_span_boundary(idx << 3, pages_needed, 0, boundary_size);\
342 unsigned int pages_needed = size >> IOVP_SHIFT; in ccio_alloc_range() local
349 BUG_ON(pages_needed == 0); in ccio_alloc_range()
350 BUG_ON((pages_needed * IOVP_SIZE) > DMA_CHUNK_SIZE); in ccio_alloc_range()
353 __func__, size, pages_needed); in ccio_alloc_range()
362 if (pages_needed <= 8) { in ccio_alloc_range()
373 unsigned long mask = ~(~0UL >> pages_needed); in ccio_alloc_range()
378 } else if (pages_needed <= 16) { in ccio_alloc_range()
380 } else if (pages_needed <= 32) { in ccio_alloc_range()
383 } else if (pages_needed <= 64) { in ccio_alloc_range()
388 __FILE__, __func__, pages_needed); in ccio_alloc_range()
408 ioc->used_pages += pages_needed; in ccio_alloc_range()