Home
last modified time | relevance | path

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

123

/Linux-v5.4/include/linux/
Diommu.h44 struct iommu_domain;
53 typedef int (*iommu_fault_handler_t)(struct iommu_domain *,
89 struct iommu_domain { struct
253 struct iommu_domain *(*domain_alloc)(unsigned iommu_domain_type);
254 void (*domain_free)(struct iommu_domain *);
256 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
257 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
258 int (*map)(struct iommu_domain *domain, unsigned long iova,
260 size_t (*unmap)(struct iommu_domain *domain, unsigned long iova,
262 void (*flush_iotlb_all)(struct iommu_domain *domain);
[all …]
Ddma-iommu.h17 int iommu_get_dma_cookie(struct iommu_domain *domain);
18 int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base);
19 void iommu_put_dma_cookie(struct iommu_domain *domain);
42 struct iommu_domain;
52 static inline int iommu_get_dma_cookie(struct iommu_domain *domain) in iommu_get_dma_cookie()
57 static inline int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) in iommu_get_msi_cookie()
62 static inline void iommu_put_dma_cookie(struct iommu_domain *domain) in iommu_put_dma_cookie()
Domap-iommu.h13 struct iommu_domain;
19 int omap_iommu_domain_deactivate(struct iommu_domain *domain);
20 int omap_iommu_domain_activate(struct iommu_domain *domain);
25 static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain) in omap_iommu_domain_deactivate()
30 static inline int omap_iommu_domain_activate(struct iommu_domain *domain) in omap_iommu_domain_activate()
/Linux-v5.4/drivers/iommu/
Damd_iommu_proto.h39 struct iommu_domain;
44 extern void amd_iommu_domain_direct_map(struct iommu_domain *dom);
45 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids);
46 extern int amd_iommu_flush_page(struct iommu_domain *dom, int pasid,
48 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid);
49 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid,
51 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid);
52 extern struct iommu_domain *amd_iommu_get_v2_domain(struct pci_dev *pdev);
Dtegra-gart.c44 struct iommu_domain *active_domain; /* current active domain */
106 static int gart_iommu_attach_dev(struct iommu_domain *domain, in gart_iommu_attach_dev()
127 static void gart_iommu_detach_dev(struct iommu_domain *domain, in gart_iommu_detach_dev()
144 static struct iommu_domain *gart_iommu_domain_alloc(unsigned type) in gart_iommu_domain_alloc()
146 struct iommu_domain *domain; in gart_iommu_domain_alloc()
161 static void gart_iommu_domain_free(struct iommu_domain *domain) in gart_iommu_domain_free()
180 static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova, in gart_iommu_map()
209 static size_t gart_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in gart_iommu_unmap()
225 static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain, in gart_iommu_iova_to_phys()
276 static void gart_iommu_sync_map(struct iommu_domain *domain) in gart_iommu_sync_map()
[all …]
Dfsl_pamu_domain.c26 static struct fsl_dma_domain *to_fsl_dma_domain(struct iommu_domain *dom) in to_fsl_dma_domain()
28 return container_of(dom, struct fsl_dma_domain, iommu_domain); in to_fsl_dma_domain()
63 geom = &dma_domain->iommu_domain.geometry; in get_phys_addr()
121 phys_addr_t wnd_addr = dma_domain->iommu_domain.geometry.aperture_start; in map_win()
170 wnd_addr = dma_domain->iommu_domain.geometry.aperture_start; in update_liodn()
326 info->dev->archdata.iommu_domain = NULL; in remove_device_ref()
355 old_domain_info = dev->archdata.iommu_domain; in attach_device()
374 if (!dev->archdata.iommu_domain) in attach_device()
375 dev->archdata.iommu_domain = info; in attach_device()
379 static phys_addr_t fsl_pamu_iova_to_phys(struct iommu_domain *domain, in fsl_pamu_iova_to_phys()
[all …]
Diommu.c44 struct iommu_domain *default_domain;
45 struct iommu_domain *domain;
203 static struct iommu_domain *__iommu_domain_alloc(struct bus_type *bus,
205 static int __iommu_attach_device(struct iommu_domain *domain,
207 static int __iommu_attach_group(struct iommu_domain *domain,
209 static void __iommu_detach_group(struct iommu_domain *domain,
626 struct iommu_domain *domain = group->default_domain; in iommu_group_create_direct_mappings()
1089 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); in iommu_page_response()
1377 struct iommu_domain *dom; in iommu_group_get_for_dev()
1410 struct iommu_domain *iommu_group_default_domain(struct iommu_group *group) in iommu_group_default_domain()
[all …]
Ds390-iommu.c25 struct iommu_domain domain;
37 static struct s390_domain *to_s390_domain(struct iommu_domain *dom) in to_s390_domain()
54 static struct iommu_domain *s390_domain_alloc(unsigned domain_type) in s390_domain_alloc()
78 static void s390_domain_free(struct iommu_domain *domain) in s390_domain_free()
86 static int s390_iommu_attach_device(struct iommu_domain *domain, in s390_iommu_attach_device()
138 static void s390_iommu_detach_device(struct iommu_domain *domain, in s390_iommu_detach_device()
186 struct iommu_domain *domain; in s390_iommu_remove_device()
267 static int s390_iommu_map(struct iommu_domain *domain, unsigned long iova, in s390_iommu_map()
285 static phys_addr_t s390_iommu_iova_to_phys(struct iommu_domain *domain, in s390_iommu_iova_to_phys()
316 static size_t s390_iommu_unmap(struct iommu_domain *domain, in s390_iommu_unmap()
Dexynos-iommu.c236 struct iommu_domain *domain; /* domain this device is attached */
252 struct iommu_domain domain; /* generic domain data structure */
281 static struct exynos_iommu_domain *to_exynos_domain(struct iommu_domain *dom) in to_exynos_domain()
733 static struct iommu_domain *exynos_iommu_domain_alloc(unsigned type) in exynos_iommu_domain_alloc()
794 static void exynos_iommu_domain_free(struct iommu_domain *iommu_domain) in exynos_iommu_domain_free() argument
796 struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); in exynos_iommu_domain_free()
816 if (iommu_domain->type == IOMMU_DOMAIN_DMA) in exynos_iommu_domain_free()
817 iommu_put_dma_cookie(iommu_domain); in exynos_iommu_domain_free()
837 static void exynos_iommu_detach_device(struct iommu_domain *iommu_domain, in exynos_iommu_detach_device() argument
841 struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); in exynos_iommu_detach_device()
[all …]
Dqcom_iommu.c59 struct iommu_domain *domain;
66 struct iommu_domain domain;
70 static struct qcom_iommu_domain *to_qcom_iommu_domain(struct iommu_domain *dom) in to_qcom_iommu_domain()
223 static int qcom_iommu_init_domain(struct iommu_domain *domain, in qcom_iommu_init_domain()
317 static struct iommu_domain *qcom_iommu_domain_alloc(unsigned type) in qcom_iommu_domain_alloc()
344 static void qcom_iommu_domain_free(struct iommu_domain *domain) in qcom_iommu_domain_free()
367 static int qcom_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) in qcom_iommu_attach_dev()
401 static void qcom_iommu_detach_dev(struct iommu_domain *domain, struct device *dev) in qcom_iommu_detach_dev()
425 static int qcom_iommu_map(struct iommu_domain *domain, unsigned long iova, in qcom_iommu_map()
442 static size_t qcom_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in qcom_iommu_unmap()
[all …]
Dfsl_pamu_domain.h62 struct iommu_domain iommu_domain; member
Ddma-iommu.c49 struct iommu_domain *fq_domain;
79 int iommu_get_dma_cookie(struct iommu_domain *domain) in iommu_get_dma_cookie()
104 int iommu_get_msi_cookie(struct iommu_domain *domain, dma_addr_t base) in iommu_get_msi_cookie()
131 void iommu_put_dma_cookie(struct iommu_domain *domain) in iommu_put_dma_cookie()
239 struct iommu_domain *domain) in iova_reserve_iommu_regions()
279 struct iommu_domain *domain; in iommu_dma_flush_iotlb_all()
302 static int iommu_dma_init_domain(struct iommu_domain *domain, dma_addr_t base, in iommu_dma_init_domain()
385 static dma_addr_t iommu_dma_alloc_iova(struct iommu_domain *domain, in iommu_dma_alloc_iova()
445 struct iommu_domain *domain = iommu_get_dma_domain(dev); in __iommu_dma_unmap()
467 struct iommu_domain *domain = iommu_get_dma_domain(dev); in __iommu_dma_map()
[all …]
Dipmmu-vmsa.c73 struct iommu_domain io_domain;
82 static struct ipmmu_vmsa_domain *to_vmsa_domain(struct iommu_domain *dom) in to_vmsa_domain()
614 static struct iommu_domain *__ipmmu_domain_alloc(unsigned type) in __ipmmu_domain_alloc()
627 static struct iommu_domain *ipmmu_domain_alloc(unsigned type) in ipmmu_domain_alloc()
629 struct iommu_domain *io_domain = NULL; in ipmmu_domain_alloc()
648 static void ipmmu_domain_free(struct iommu_domain *io_domain) in ipmmu_domain_free()
662 static int ipmmu_attach_device(struct iommu_domain *io_domain, in ipmmu_attach_device()
711 static void ipmmu_detach_device(struct iommu_domain *io_domain, in ipmmu_detach_device()
726 static int ipmmu_map(struct iommu_domain *io_domain, unsigned long iova, in ipmmu_map()
737 static size_t ipmmu_unmap(struct iommu_domain *io_domain, unsigned long iova, in ipmmu_unmap()
[all …]
Dmtk_iommu.c109 struct iommu_domain domain;
159 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain()
344 static struct iommu_domain *mtk_iommu_domain_alloc(unsigned type) in mtk_iommu_domain_alloc()
374 static void mtk_iommu_domain_free(struct iommu_domain *domain) in mtk_iommu_domain_free()
383 static int mtk_iommu_attach_device(struct iommu_domain *domain, in mtk_iommu_attach_device()
403 static void mtk_iommu_detach_device(struct iommu_domain *domain, in mtk_iommu_detach_device()
414 static int mtk_iommu_map(struct iommu_domain *domain, unsigned long iova, in mtk_iommu_map()
433 static size_t mtk_iommu_unmap(struct iommu_domain *domain, in mtk_iommu_unmap()
448 static void mtk_iommu_flush_iotlb_all(struct iommu_domain *domain) in mtk_iommu_flush_iotlb_all()
453 static void mtk_iommu_iotlb_sync(struct iommu_domain *domain, in mtk_iommu_iotlb_sync()
[all …]
Dmtk_iommu_v1.c93 struct iommu_domain domain;
99 static struct mtk_iommu_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain()
239 static struct iommu_domain *mtk_iommu_domain_alloc(unsigned type) in mtk_iommu_domain_alloc()
253 static void mtk_iommu_domain_free(struct iommu_domain *domain) in mtk_iommu_domain_free()
263 static int mtk_iommu_attach_device(struct iommu_domain *domain, in mtk_iommu_attach_device()
286 static void mtk_iommu_detach_device(struct iommu_domain *domain, in mtk_iommu_detach_device()
297 static int mtk_iommu_map(struct iommu_domain *domain, unsigned long iova, in mtk_iommu_map()
326 static size_t mtk_iommu_unmap(struct iommu_domain *domain, in mtk_iommu_unmap()
344 static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain, in mtk_iommu_iova_to_phys()
Dmsm_iommu.c43 struct iommu_domain domain;
50 static struct msm_priv *to_msm_priv(struct iommu_domain *dom) in to_msm_priv()
313 static struct iommu_domain *msm_iommu_domain_alloc(unsigned type) in msm_iommu_domain_alloc()
337 static void msm_iommu_domain_free(struct iommu_domain *domain) in msm_iommu_domain_free()
430 static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) in msm_iommu_attach_dev()
479 static void msm_iommu_detach_dev(struct iommu_domain *domain, in msm_iommu_detach_dev()
506 static int msm_iommu_map(struct iommu_domain *domain, unsigned long iova, in msm_iommu_map()
520 static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in msm_iommu_unmap()
533 static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain, in msm_iommu_iova_to_phys()
Drockchip-iommu.c91 struct iommu_domain domain;
109 struct iommu_domain *domain; /* domain to which iommu is attached */
128 static struct rk_iommu_domain *to_rk_domain(struct iommu_domain *dom) in to_rk_domain()
589 static phys_addr_t rk_iommu_iova_to_phys(struct iommu_domain *domain, in rk_iommu_iova_to_phys()
760 static int rk_iommu_map(struct iommu_domain *domain, unsigned long _iova, in rk_iommu_map()
797 static size_t rk_iommu_unmap(struct iommu_domain *domain, unsigned long _iova, in rk_iommu_unmap()
864 struct iommu_domain *domain = iommu->domain; in rk_iommu_enable()
896 static void rk_iommu_detach_device(struct iommu_domain *domain, in rk_iommu_detach_device()
929 static int rk_iommu_attach_device(struct iommu_domain *domain, in rk_iommu_attach_device()
973 static struct iommu_domain *rk_iommu_domain_alloc(unsigned type) in rk_iommu_domain_alloc()
[all …]
Dtegra-smmu.c49 struct iommu_domain domain;
60 static struct tegra_smmu_as *to_smmu_as(struct iommu_domain *dom) in to_smmu_as()
277 static struct iommu_domain *tegra_smmu_domain_alloc(unsigned type) in tegra_smmu_domain_alloc()
319 static void tegra_smmu_domain_free(struct iommu_domain *domain) in tegra_smmu_domain_free()
460 static int tegra_smmu_attach_dev(struct iommu_domain *domain, in tegra_smmu_attach_dev()
495 static void tegra_smmu_detach_dev(struct iommu_domain *domain, struct device *dev) in tegra_smmu_detach_dev()
652 static int tegra_smmu_map(struct iommu_domain *domain, unsigned long iova, in tegra_smmu_map()
682 static size_t tegra_smmu_unmap(struct iommu_domain *domain, unsigned long iova, in tegra_smmu_unmap()
699 static phys_addr_t tegra_smmu_iova_to_phys(struct iommu_domain *domain, in tegra_smmu_iova_to_phys()
Dvirtio-iommu.c64 struct iommu_domain domain;
587 static struct iommu_domain *viommu_domain_alloc(unsigned type) in viommu_domain_alloc()
612 struct iommu_domain *domain) in viommu_domain_finalise()
631 static void viommu_domain_free(struct iommu_domain *domain) in viommu_domain_free()
646 static int viommu_attach_dev(struct iommu_domain *domain, struct device *dev) in viommu_attach_dev()
715 static int viommu_map(struct iommu_domain *domain, unsigned long iova, in viommu_map()
753 static size_t viommu_unmap(struct iommu_domain *domain, unsigned long iova, in viommu_unmap()
780 static phys_addr_t viommu_iova_to_phys(struct iommu_domain *domain, in viommu_iova_to_phys()
800 static void viommu_iotlb_sync(struct iommu_domain *domain, in viommu_iotlb_sync()
/Linux-v5.4/drivers/soc/fsl/qbman/
Dqman_portal.c54 pcfg->iommu_domain = iommu_domain_alloc(&platform_bus_type); in portal_set_cpu()
55 if (!pcfg->iommu_domain) { in portal_set_cpu()
63 ret = iommu_domain_set_attr(pcfg->iommu_domain, DOMAIN_ATTR_GEOMETRY, in portal_set_cpu()
70 ret = iommu_domain_set_attr(pcfg->iommu_domain, DOMAIN_ATTR_WINDOWS, in portal_set_cpu()
79 ret = iommu_domain_set_attr(pcfg->iommu_domain, in portal_set_cpu()
87 ret = iommu_domain_window_enable(pcfg->iommu_domain, 0, 0, 1ULL << 36, in portal_set_cpu()
94 ret = iommu_attach_device(pcfg->iommu_domain, dev); in portal_set_cpu()
100 ret = iommu_domain_set_attr(pcfg->iommu_domain, in portal_set_cpu()
117 iommu_detach_device(pcfg->iommu_domain, NULL); in portal_set_cpu()
119 iommu_domain_free(pcfg->iommu_domain); in portal_set_cpu()
[all …]
/Linux-v5.4/drivers/media/platform/qcom/venus/
Dfirmware.c127 struct iommu_domain *iommu; in venus_boot_no_tz()
135 iommu = core->fw.iommu_domain; in venus_boot_no_tz()
153 struct iommu_domain *iommu; in venus_shutdown_no_tz()
167 iommu = core->fw.iommu_domain; in venus_shutdown_no_tz()
216 struct iommu_domain *iommu_dom; in venus_firmware_init()
262 core->fw.iommu_domain = iommu_dom; in venus_firmware_init()
278 struct iommu_domain *iommu; in venus_firmware_deinit()
283 iommu = core->fw.iommu_domain; in venus_firmware_deinit()
/Linux-v5.4/drivers/gpu/drm/msm/
Dmsm_iommu.c12 struct iommu_domain *domain;
16 static int msm_fault_handler(struct iommu_domain *domain, struct device *dev, in msm_fault_handler()
78 struct msm_mmu *msm_iommu_new(struct device *dev, struct iommu_domain *domain) in msm_iommu_new()
/Linux-v5.4/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.h25 struct iommu_domain;
47 struct iommu_domain *domain;
/Linux-v5.4/drivers/staging/media/tegra-vde/
Dvde.h23 struct iommu_domain;
46 struct iommu_domain *domain;
/Linux-v5.4/arch/powerpc/include/asm/
Ddevice.h38 void *iommu_domain; member

123