Lines Matching defs:count
570 static void iommu_dma_free_pages_ext(struct page **pages, int count)
572 while (count--) {
573 __free_page(pages[count]);
578 static struct page **iommu_dma_alloc_pages_ext(struct device *dev, unsigned int count, unsigned long order_mask,
589 pages = kvzalloc(count * sizeof(*pages), GFP_KERNEL);
600 while (count) {
609 for (order_mask &= (2U << __fls(count)) - 1; order_mask; order_mask &= ~order_size) {
630 count -= order_size;
661 unsigned int count, min_size, alloc_sizes = domain->pgsize_bitmap;
684 count = PAGE_ALIGN(size) >> PAGE_SHIFT;
685 pages = iommu_dma_alloc_pages_ext(dev, count, alloc_sizes >> PAGE_SHIFT, gfp);
696 if (sg_alloc_table_from_pages(&sgt, pages, count, 0, size, GFP_KERNEL)) {
727 iommu_dma_free_pages_ext(pages, count);
833 int i, count = 0;
863 count++;
875 return count;
1032 int count = alloc_size >> PAGE_SHIFT;
1056 iommu_dma_free_pages_ext(pages, count);