Home
last modified time | relevance | path

Searched refs:iommu_domain (Results 1 – 11 of 11) sorted by relevance

/linux-2.6.39/include/linux/
Diommu.h28 struct iommu_domain { struct
36 int (*domain_init)(struct iommu_domain *domain); argument
37 void (*domain_destroy)(struct iommu_domain *domain);
38 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
39 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
40 int (*map)(struct iommu_domain *domain, unsigned long iova,
42 int (*unmap)(struct iommu_domain *domain, unsigned long iova,
44 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain,
46 int (*domain_has_cap)(struct iommu_domain *domain,
54 extern struct iommu_domain *iommu_domain_alloc(void);
[all …]
/linux-2.6.39/drivers/base/
Diommu.c42 struct iommu_domain *iommu_domain_alloc(void) in iommu_domain_alloc()
44 struct iommu_domain *domain; in iommu_domain_alloc()
64 void iommu_domain_free(struct iommu_domain *domain) in iommu_domain_free()
71 int iommu_attach_device(struct iommu_domain *domain, struct device *dev) in iommu_attach_device()
77 void iommu_detach_device(struct iommu_domain *domain, struct device *dev) in iommu_detach_device()
83 phys_addr_t iommu_iova_to_phys(struct iommu_domain *domain, in iommu_iova_to_phys()
90 int iommu_domain_has_cap(struct iommu_domain *domain, in iommu_domain_has_cap()
97 int iommu_map(struct iommu_domain *domain, unsigned long iova, in iommu_map()
112 int iommu_unmap(struct iommu_domain *domain, unsigned long iova, int gfp_order) in iommu_unmap()
/linux-2.6.39/virt/kvm/
Diommu.c61 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_iommu_map_pages()
149 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_assign_device()
171 if (iommu_domain_has_cap(kvm->arch.iommu_domain, in kvm_assign_device()
199 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_deassign_device()
230 kvm->arch.iommu_domain = iommu_domain_alloc(); in kvm_iommu_map_guest()
231 if (!kvm->arch.iommu_domain) in kvm_iommu_map_guest()
256 struct iommu_domain *domain; in kvm_iommu_put_pages()
261 domain = kvm->arch.iommu_domain; in kvm_iommu_put_pages()
307 struct iommu_domain *domain = kvm->arch.iommu_domain; in kvm_iommu_unmap_guest()
Dassigned-dev.c534 if (!kvm->arch.iommu_domain) { in kvm_vm_ioctl_assign_device()
/linux-2.6.39/arch/arm/mach-msm/
Diommu.c78 static int __flush_iotlb(struct iommu_domain *domain) in __flush_iotlb()
210 static int msm_iommu_domain_init(struct iommu_domain *domain) in msm_iommu_domain_init()
233 static void msm_iommu_domain_destroy(struct iommu_domain *domain) in msm_iommu_domain_destroy()
260 static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) in msm_iommu_attach_dev()
315 static void msm_iommu_detach_dev(struct iommu_domain *domain, in msm_iommu_detach_dev()
354 static int msm_iommu_map(struct iommu_domain *domain, unsigned long va, in msm_iommu_map()
466 static int msm_iommu_unmap(struct iommu_domain *domain, unsigned long va, in msm_iommu_unmap()
551 static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain, in msm_iommu_iova_to_phys()
601 static int msm_iommu_domain_has_cap(struct iommu_domain *domain, in msm_iommu_domain_has_cap()
/linux-2.6.39/arch/ia64/include/asm/
Dkvm_host.h477 struct iommu_domain *iommu_domain; member
/linux-2.6.39/arch/x86/kernel/
Damd_iommu.c2418 static int amd_iommu_domain_init(struct iommu_domain *dom) in amd_iommu_domain_init()
2441 static void amd_iommu_domain_destroy(struct iommu_domain *dom) in amd_iommu_domain_destroy()
2460 static void amd_iommu_detach_device(struct iommu_domain *dom, in amd_iommu_detach_device()
2483 static int amd_iommu_attach_device(struct iommu_domain *dom, in amd_iommu_attach_device()
2513 static int amd_iommu_map(struct iommu_domain *dom, unsigned long iova, in amd_iommu_map()
2533 static int amd_iommu_unmap(struct iommu_domain *dom, unsigned long iova, in amd_iommu_unmap()
2550 static phys_addr_t amd_iommu_iova_to_phys(struct iommu_domain *dom, in amd_iommu_iova_to_phys()
2574 static int amd_iommu_domain_has_cap(struct iommu_domain *domain, in amd_iommu_domain_has_cap()
/linux-2.6.39/drivers/pci/
Dintel-iommu.c3564 static int intel_iommu_domain_init(struct iommu_domain *domain) in intel_iommu_domain_init()
3585 static void intel_iommu_domain_destroy(struct iommu_domain *domain) in intel_iommu_domain_destroy()
3593 static int intel_iommu_attach_device(struct iommu_domain *domain, in intel_iommu_attach_device()
3651 static void intel_iommu_detach_device(struct iommu_domain *domain, in intel_iommu_detach_device()
3660 static int intel_iommu_map(struct iommu_domain *domain, in intel_iommu_map()
3700 static int intel_iommu_unmap(struct iommu_domain *domain, in intel_iommu_unmap()
3715 static phys_addr_t intel_iommu_iova_to_phys(struct iommu_domain *domain, in intel_iommu_iova_to_phys()
3729 static int intel_iommu_domain_has_cap(struct iommu_domain *domain, in intel_iommu_domain_has_cap()
/linux-2.6.39/arch/x86/include/asm/
Dkvm_host.h429 struct iommu_domain *iommu_domain; member
/linux-2.6.39/arch/x86/kvm/
Dvmx.c4282 else if (vcpu->kvm->arch.iommu_domain &&
Dx86.c2105 return vcpu->kvm->arch.iommu_domain && in need_emulate_wbinvd()