Home
last modified time | relevance | path

Searched refs:io_domain (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/
H A Dipmmu-vmsa.c75 struct iommu_domain io_domain; member
86 return container_of(dom, struct ipmmu_vmsa_domain, io_domain); in to_vmsa_domain()
441 domain->io_domain.geometry.aperture_end = DMA_BIT_MASK(32); in ipmmu_domain_init_context()
442 domain->io_domain.geometry.force_aperture = true; in ipmmu_domain_init_context()
531 if (!report_iommu_fault(&domain->io_domain, mmu->dev, iova, 0)) in ipmmu_domain_irq()
579 return &domain->io_domain; in __ipmmu_domain_alloc()
584 struct iommu_domain *io_domain = NULL; in ipmmu_domain_alloc() local
588 io_domain = __ipmmu_domain_alloc(type); in ipmmu_domain_alloc()
592 io_domain = __ipmmu_domain_alloc(type); in ipmmu_domain_alloc()
593 if (io_domain in ipmmu_domain_alloc()
603 ipmmu_domain_free(struct iommu_domain *io_domain) ipmmu_domain_free() argument
617 ipmmu_attach_device(struct iommu_domain *io_domain, struct device *dev) ipmmu_attach_device() argument
666 ipmmu_detach_device(struct iommu_domain *io_domain, struct device *dev) ipmmu_detach_device() argument
681 ipmmu_map(struct iommu_domain *io_domain, unsigned long iova, phys_addr_t paddr, size_t size, int prot, gfp_t gfp) ipmmu_map() argument
692 ipmmu_unmap(struct iommu_domain *io_domain, unsigned long iova, size_t size, struct iommu_iotlb_gather *gather) ipmmu_unmap() argument
700 ipmmu_flush_iotlb_all(struct iommu_domain *io_domain) ipmmu_flush_iotlb_all() argument
708 ipmmu_iotlb_sync(struct iommu_domain *io_domain, struct iommu_iotlb_gather *gather) ipmmu_iotlb_sync() argument
714 ipmmu_iova_to_phys(struct iommu_domain *io_domain, dma_addr_t iova) ipmmu_iova_to_phys() argument
[all...]
/kernel/linux/linux-6.6/drivers/iommu/
H A Dipmmu-vmsa.c73 struct iommu_domain io_domain; member
84 return container_of(dom, struct ipmmu_vmsa_domain, io_domain); in to_vmsa_domain()
426 domain->io_domain.geometry.aperture_end = DMA_BIT_MASK(32); in ipmmu_domain_init_context()
427 domain->io_domain.geometry.force_aperture = true; in ipmmu_domain_init_context()
516 if (!report_iommu_fault(&domain->io_domain, mmu->dev, iova, 0)) in ipmmu_domain_irq()
567 return &domain->io_domain; in ipmmu_domain_alloc()
570 static void ipmmu_domain_free(struct iommu_domain *io_domain) in ipmmu_domain_free() argument
572 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_domain_free()
583 static int ipmmu_attach_device(struct iommu_domain *io_domain, in ipmmu_attach_device() argument
588 struct ipmmu_vmsa_domain *domain = to_vmsa_domain(io_domain); in ipmmu_attach_device()
630 ipmmu_map(struct iommu_domain *io_domain, unsigned long iova, phys_addr_t paddr, size_t pgsize, size_t pgcount, int prot, gfp_t gfp, size_t *mapped) ipmmu_map() argument
640 ipmmu_unmap(struct iommu_domain *io_domain, unsigned long iova, size_t pgsize, size_t pgcount, struct iommu_iotlb_gather *gather) ipmmu_unmap() argument
649 ipmmu_flush_iotlb_all(struct iommu_domain *io_domain) ipmmu_flush_iotlb_all() argument
657 ipmmu_iotlb_sync(struct iommu_domain *io_domain, struct iommu_iotlb_gather *gather) ipmmu_iotlb_sync() argument
663 ipmmu_iova_to_phys(struct iommu_domain *io_domain, dma_addr_t iova) ipmmu_iova_to_phys() argument
[all...]
/kernel/linux/linux-5.10/drivers/iommu/amd/
H A Diommu.c3101 struct iommu_domain *io_domain; in amd_iommu_get_v2_domain() local
3108 io_domain = iommu_get_domain_for_dev(dev); in amd_iommu_get_v2_domain()
3112 pdomain = to_pdomain(io_domain); in amd_iommu_get_v2_domain()
3119 if (io_domain->type != IOMMU_DOMAIN_DMA) in amd_iommu_get_v2_domain()

Completed in 8 milliseconds