Lines Matching refs:npages
178 static u32 iommu_get_one(struct device *dev, struct page *page, int npages) in iommu_get_one() argument
187 ioptex = bit_map_string_get(&iommu->usemap, npages, page_to_pfn(page)); in iommu_get_one()
195 for (i = 0; i < npages; i++) { in iommu_get_one()
203 iommu_flush_iotlb(iopte0, npages); in iommu_get_one()
211 int npages; in iommu_get_scsi_one() local
216 npages = (off + len + PAGE_SIZE-1) >> PAGE_SHIFT; in iommu_get_scsi_one()
218 busa = iommu_get_one(dev, page, npages); in iommu_get_scsi_one()
284 static void iommu_release_one(struct device *dev, u32 busa, int npages) in iommu_release_one() argument
292 for (i = 0; i < npages; i++) { in iommu_release_one()
297 bit_map_clear(&iommu->usemap, ioptex, npages); in iommu_release_one()
303 int npages; in iommu_release_scsi_one() local
306 npages = (off + len + PAGE_SIZE-1) >> PAGE_SHIFT; in iommu_release_scsi_one()
307 iommu_release_one(dev, vaddr & PAGE_MASK, npages); in iommu_release_scsi_one()