Lines Matching refs:io_domain
72 struct iommu_domain io_domain; member
83 return container_of(dom, struct ipmmu_vmsa_domain, io_domain); in to_vmsa_domain()
437 domain->io_domain.geometry.aperture_end = DMA_BIT_MASK(32); in ipmmu_domain_init_context()
438 domain->io_domain.geometry.force_aperture = true; in ipmmu_domain_init_context()
527 if (!report_iommu_fault(&domain->io_domain, mmu->dev, iova, 0)) in ipmmu_domain_irq()
575 return &domain->io_domain; in ipmmu_domain_alloc_paging()
578 static void ipmmu_domain_free(struct iommu_domain *io_domain) in ipmmu_domain_free() argument
580 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_domain_free()
591 static int ipmmu_attach_device(struct iommu_domain *io_domain, in ipmmu_attach_device() argument
596 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_attach_device()
641 struct iommu_domain *io_domain = iommu_get_domain_for_dev(dev); in ipmmu_iommu_identity_attach() local
646 if (io_domain == identity_domain || !io_domain) in ipmmu_iommu_identity_attach()
649 domain = to_vmsa_domain(io_domain); in ipmmu_iommu_identity_attach()
668 static int ipmmu_map(struct iommu_domain *io_domain, unsigned long iova, in ipmmu_map() argument
672 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_map()
678 static size_t ipmmu_unmap(struct iommu_domain *io_domain, unsigned long iova, in ipmmu_unmap() argument
682 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_unmap()
687 static void ipmmu_flush_iotlb_all(struct iommu_domain *io_domain) in ipmmu_flush_iotlb_all() argument
689 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_flush_iotlb_all()
695 static void ipmmu_iotlb_sync(struct iommu_domain *io_domain, in ipmmu_iotlb_sync() argument
698 ipmmu_flush_iotlb_all(io_domain); in ipmmu_iotlb_sync()
701 static phys_addr_t ipmmu_iova_to_phys(struct iommu_domain *io_domain, in ipmmu_iova_to_phys() argument
704 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_iova_to_phys()