@@ -659,22 +659,22 @@ static void ipmmu_detach_device(struct iommu_domain *io_domain,
659
659
}
660
660
661
661
static int ipmmu_map (struct iommu_domain * io_domain , unsigned long iova ,
662
- phys_addr_t paddr , size_t size , int prot , gfp_t gfp )
662
+ phys_addr_t paddr , size_t pgsize , size_t pgcount ,
663
+ int prot , gfp_t gfp , size_t * mapped )
663
664
{
664
665
struct ipmmu_vmsa_domain * domain = to_vmsa_domain (io_domain );
665
666
666
- if (!domain )
667
- return - ENODEV ;
668
-
669
- return domain -> iop -> map (domain -> iop , iova , paddr , size , prot , gfp );
667
+ return domain -> iop -> map_pages (domain -> iop , iova , paddr , pgsize , pgcount ,
668
+ prot , gfp , mapped );
670
669
}
671
670
672
671
static size_t ipmmu_unmap (struct iommu_domain * io_domain , unsigned long iova ,
673
- size_t size , struct iommu_iotlb_gather * gather )
672
+ size_t pgsize , size_t pgcount ,
673
+ struct iommu_iotlb_gather * gather )
674
674
{
675
675
struct ipmmu_vmsa_domain * domain = to_vmsa_domain (io_domain );
676
676
677
- return domain -> iop -> unmap (domain -> iop , iova , size , gather );
677
+ return domain -> iop -> unmap_pages (domain -> iop , iova , pgsize , pgcount , gather );
678
678
}
679
679
680
680
static void ipmmu_flush_iotlb_all (struct iommu_domain * io_domain )
@@ -877,8 +877,8 @@ static const struct iommu_ops ipmmu_ops = {
877
877
.default_domain_ops = & (const struct iommu_domain_ops ) {
878
878
.attach_dev = ipmmu_attach_device ,
879
879
.detach_dev = ipmmu_detach_device ,
880
- .map = ipmmu_map ,
881
- .unmap = ipmmu_unmap ,
880
+ .map_pages = ipmmu_map ,
881
+ .unmap_pages = ipmmu_unmap ,
882
882
.flush_iotlb_all = ipmmu_flush_iotlb_all ,
883
883
.iotlb_sync = ipmmu_iotlb_sync ,
884
884
.iova_to_phys = ipmmu_iova_to_phys ,
0 commit comments