Home
last modified time | relevance | path

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

12345

/linux-6.15/include/linux/
H A Diommu.h38 struct iommu_domain;
222 struct iommu_domain { struct
639 struct iommu_domain *(*domain_alloc_nested)(
670 struct iommu_domain *identity_domain;
671 struct iommu_domain *blocked_domain;
672 struct iommu_domain *release_domain;
673 struct iommu_domain *default_domain;
718 ioasid_t pasid, struct iommu_domain *old);
730 void (*iotlb_sync)(struct iommu_domain *domain,
742 void (*free)(struct iommu_domain *domain);
[all …]
H A 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-6.15/drivers/iommu/
H A Ddma-iommu.h14 int iommu_get_dma_cookie(struct iommu_domain *domain);
15 void iommu_put_dma_cookie(struct iommu_domain *domain);
16 void iommu_put_msi_cookie(struct iommu_domain *domain);
18 int iommu_dma_init_fq(struct iommu_domain *domain);
22 int iommu_dma_sw_msi(struct iommu_domain *domain, struct msi_desc *desc,
33 static inline int iommu_dma_init_fq(struct iommu_domain *domain) in iommu_dma_init_fq()
38 static inline int iommu_get_dma_cookie(struct iommu_domain *domain) in iommu_get_dma_cookie()
43 static inline void iommu_put_dma_cookie(struct iommu_domain *domain) in iommu_put_dma_cookie()
47 static inline void iommu_put_msi_cookie(struct iommu_domain *domain) in iommu_put_msi_cookie()
55 static inline int iommu_dma_sw_msi(struct iommu_domain *domain, in iommu_dma_sw_msi()
H A Diommu-priv.h43 int iommu_attach_group_handle(struct iommu_domain *domain,
46 void iommu_detach_group_handle(struct iommu_domain *domain,
49 struct iommu_domain *new_domain,
53 int iommufd_sw_msi(struct iommu_domain *domain, struct msi_desc *desc,
56 static inline int iommufd_sw_msi(struct iommu_domain *domain, in iommufd_sw_msi()
63 int iommu_replace_device_pasid(struct iommu_domain *domain,
H A Dfsl_pamu_domain.c27 static struct fsl_dma_domain *to_fsl_dma_domain(struct iommu_domain *dom) in to_fsl_dma_domain()
29 return container_of(dom, struct fsl_dma_domain, iommu_domain); in to_fsl_dma_domain()
186 static void fsl_pamu_domain_free(struct iommu_domain *domain) in fsl_pamu_domain_free()
195 static struct iommu_domain *fsl_pamu_domain_alloc(unsigned type) in fsl_pamu_domain_alloc()
218 dma_domain->iommu_domain. geometry.aperture_start = 0; in fsl_pamu_domain_alloc()
219 dma_domain->iommu_domain.geometry.aperture_end = (1ULL << 36) - 1; in fsl_pamu_domain_alloc()
220 dma_domain->iommu_domain.geometry.force_aperture = true; in fsl_pamu_domain_alloc()
222 return &dma_domain->iommu_domain; in fsl_pamu_domain_alloc()
240 static int fsl_pamu_attach_device(struct iommu_domain *domain, in fsl_pamu_attach_device()
303 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); in fsl_pamu_platform_attach()
[all …]
H A Diommu.c62 struct iommu_domain *default_domain;
64 struct iommu_domain *domain;
1627 struct iommu_domain *domain; in __iommu_alloc_identity_domain()
1646 static struct iommu_domain *
1650 struct iommu_domain *dom; in __iommu_group_alloc_default_domain()
1683 static struct iommu_domain *
1687 struct iommu_domain *dom; in iommu_group_alloc_default_domain()
2012 static struct iommu_domain *
2017 struct iommu_domain *domain; in __iommu_paging_domain_alloc_flags()
2958 struct iommu_domain *dom; in iommu_setup_default_domain()
[all …]
H A Ds390-iommu.c28 struct iommu_domain domain;
36 static struct iommu_domain blocking_domain;
363 static void s390_domain_free(struct iommu_domain *domain) in s390_domain_free()
375 struct iommu_domain *domain) in zdev_s390_domain_update()
385 struct iommu_domain *domain, u8 *status) in s390_iommu_domain_reg_ioat()
448 static int s390_iommu_attach_device(struct iommu_domain *domain, in s390_iommu_attach_device()
549 static void s390_iommu_iotlb_sync(struct iommu_domain *domain, in s390_iommu_iotlb_sync()
656 static int s390_iommu_map_pages(struct iommu_domain *domain, in s390_iommu_map_pages()
837 static int s390_attach_dev_identity(struct iommu_domain *domain, in s390_attach_dev_identity()
865 static struct iommu_domain s390_identity_domain = {
[all …]
H A Dsprd-iommu.c78 struct iommu_domain domain;
86 static struct sprd_iommu_domain *to_sprd_domain(struct iommu_domain *dom) in to_sprd_domain()
129 sprd_iommu_pgt_size(struct iommu_domain *domain) in sprd_iommu_pgt_size()
136 static struct iommu_domain *sprd_iommu_domain_alloc_paging(struct device *dev) in sprd_iommu_domain_alloc_paging()
239 static void sprd_iommu_domain_free(struct iommu_domain *domain) in sprd_iommu_domain_free()
247 static int sprd_iommu_attach_device(struct iommu_domain *domain, in sprd_iommu_attach_device()
284 static int sprd_iommu_map(struct iommu_domain *domain, unsigned long iova, in sprd_iommu_map()
321 static size_t sprd_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in sprd_iommu_unmap()
344 static int sprd_iommu_sync_map(struct iommu_domain *domain, in sprd_iommu_sync_map()
360 static void sprd_iommu_sync(struct iommu_domain *domain, in sprd_iommu_sync()
[all …]
H A Dexynos-iommu.c29 static struct iommu_domain exynos_identity_domain;
238 struct iommu_domain *domain; /* domain this device is attached */
254 struct iommu_domain domain; /* generic domain data structure */
943 static void exynos_iommu_domain_free(struct iommu_domain *iommu_domain) in exynos_iommu_domain_free() argument
945 struct exynos_iommu_domain *domain = to_exynos_domain(iommu_domain); in exynos_iommu_domain_free()
1029 static struct iommu_domain exynos_identity_domain = {
1034 static int exynos_iommu_attach_device(struct iommu_domain *iommu_domain, in exynos_iommu_attach_device() argument
1058 owner->domain = iommu_domain; in exynos_iommu_attach_device()
1232 static int exynos_iommu_map(struct iommu_domain *iommu_domain, in exynos_iommu_map() argument
1290 static size_t exynos_iommu_unmap(struct iommu_domain *iommu_domain, in exynos_iommu_unmap() argument
[all …]
H A Diommu-sva.c13 static struct iommu_domain *iommu_sva_domain_alloc(struct device *dev,
76 struct iommu_domain *domain; in iommu_sva_bind_device()
166 struct iommu_domain *domain = handle->handle.domain; in iommu_sva_unbind_device()
188 struct iommu_domain *domain = handle->handle.domain; in iommu_sva_get_pasid()
296 static struct iommu_domain *iommu_sva_domain_alloc(struct device *dev, in iommu_sva_domain_alloc()
300 struct iommu_domain *domain; in iommu_sva_domain_alloc()
H A Dfsl_pamu_domain.h16 struct iommu_domain iommu_domain; member
H A Dmtk_iommu_v1.c40 struct iommu_domain *domain;
123 struct iommu_domain domain;
143 static struct mtk_iommu_v1_domain *to_mtk_domain(struct iommu_domain *dom) in to_mtk_domain()
283 static struct iommu_domain *mtk_iommu_v1_domain_alloc_paging(struct device *dev) in mtk_iommu_v1_domain_alloc_paging()
294 static void mtk_iommu_v1_domain_free(struct iommu_domain *domain) in mtk_iommu_v1_domain_free()
304 static int mtk_iommu_v1_attach_device(struct iommu_domain *domain, struct device *dev) in mtk_iommu_v1_attach_device()
329 static int mtk_iommu_v1_identity_attach(struct iommu_domain *identity_domain, in mtk_iommu_v1_identity_attach()
342 static struct iommu_domain mtk_iommu_v1_identity_domain = {
347 static int mtk_iommu_v1_map(struct iommu_domain *domain, unsigned long iova, in mtk_iommu_v1_map()
373 static size_t mtk_iommu_v1_unmap(struct iommu_domain *domain, unsigned long iova, in mtk_iommu_v1_unmap()
[all …]
H A Dmsm_iommu.c42 struct iommu_domain domain;
49 static struct msm_priv *to_msm_priv(struct iommu_domain *dom) in to_msm_priv()
305 static struct iommu_domain *msm_iommu_domain_alloc_paging(struct device *dev) in msm_iommu_domain_alloc_paging()
326 static void msm_iommu_domain_free(struct iommu_domain *domain) in msm_iommu_domain_free()
443 static int msm_iommu_identity_attach(struct iommu_domain *identity_domain, in msm_iommu_identity_attach()
446 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); in msm_iommu_identity_attach()
480 static struct iommu_domain msm_iommu_identity_domain = {
485 static int msm_iommu_map(struct iommu_domain *domain, unsigned long iova, in msm_iommu_map()
501 static int msm_iommu_sync_map(struct iommu_domain *domain, unsigned long iova, in msm_iommu_sync_map()
510 static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in msm_iommu_unmap()
[all …]
H A Dipmmu-vmsa.c72 struct iommu_domain io_domain;
81 static struct ipmmu_vmsa_domain *to_vmsa_domain(struct iommu_domain *dom) in to_vmsa_domain()
565 static struct iommu_domain *ipmmu_domain_alloc_paging(struct device *dev) in ipmmu_domain_alloc_paging()
578 static void ipmmu_domain_free(struct iommu_domain *io_domain) in ipmmu_domain_free()
591 static int ipmmu_attach_device(struct iommu_domain *io_domain, in ipmmu_attach_device()
641 struct iommu_domain *io_domain = iommu_get_domain_for_dev(dev); in ipmmu_iommu_identity_attach()
663 static struct iommu_domain ipmmu_iommu_identity_domain = {
668 static int ipmmu_map(struct iommu_domain *io_domain, unsigned long iova, in ipmmu_map()
687 static void ipmmu_flush_iotlb_all(struct iommu_domain *io_domain) in ipmmu_flush_iotlb_all()
695 static void ipmmu_iotlb_sync(struct iommu_domain *io_domain, in ipmmu_iotlb_sync()
[all …]
H A Dsun50i-iommu.c111 struct iommu_domain *domain;
116 struct iommu_domain domain;
384 static void sun50i_iommu_flush_iotlb_all(struct iommu_domain *domain) in sun50i_iommu_flush_iotlb_all()
406 static int sun50i_iommu_iotlb_sync_map(struct iommu_domain *domain, in sun50i_iommu_iotlb_sync_map()
420 static void sun50i_iommu_iotlb_sync(struct iommu_domain *domain, in sun50i_iommu_iotlb_sync()
595 static int sun50i_iommu_map(struct iommu_domain *domain, unsigned long iova, in sun50i_iommu_map()
662 static phys_addr_t sun50i_iommu_iova_to_phys(struct iommu_domain *domain, in sun50i_iommu_iova_to_phys()
684 static struct iommu_domain *
712 static void sun50i_iommu_domain_free(struct iommu_domain *domain) in sun50i_iommu_domain_free()
792 static struct iommu_domain sun50i_iommu_identity_domain = {
[all …]
/linux-6.15/drivers/soc/fsl/qbman/
H A Dqman_portal.c51 pcfg->iommu_domain = iommu_paging_domain_alloc(dev); in portal_set_cpu()
52 if (IS_ERR(pcfg->iommu_domain)) { in portal_set_cpu()
54 pcfg->iommu_domain = NULL; in portal_set_cpu()
57 ret = fsl_pamu_configure_l1_stash(pcfg->iommu_domain, cpu); in portal_set_cpu()
63 ret = iommu_attach_device(pcfg->iommu_domain, dev); in portal_set_cpu()
78 iommu_domain_free(pcfg->iommu_domain); in portal_set_cpu()
79 pcfg->iommu_domain = NULL; in portal_set_cpu()
91 pcfg->iommu_domain = NULL; in init_pcfg()
131 if (pcfg->iommu_domain) { in qman_portal_update_sdest()
132 if (fsl_pamu_configure_l1_stash(pcfg->iommu_domain, cpu) < 0) { in qman_portal_update_sdest()
/linux-6.15/drivers/iommu/intel/
H A Dnested.c21 static int intel_nested_attach_dev(struct iommu_domain *domain, in intel_nested_attach_dev()
78 static void intel_nested_domain_free(struct iommu_domain *domain) in intel_nested_domain_free()
90 static int intel_nested_cache_invalidate_user(struct iommu_domain *domain, in intel_nested_cache_invalidate_user()
136 struct iommu_domain *old) in domain_setup_nested()
145 static int intel_nested_set_dev_pasid(struct iommu_domain *domain, in intel_nested_set_dev_pasid()
147 struct iommu_domain *old) in intel_nested_set_dev_pasid()
189 struct iommu_domain *
190 intel_iommu_domain_alloc_nested(struct device *dev, struct iommu_domain *parent, in intel_iommu_domain_alloc_nested()
H A Dsvm.c148 static int intel_svm_set_dev_pasid(struct iommu_domain *domain, in intel_svm_set_dev_pasid()
150 struct iommu_domain *old) in intel_svm_set_dev_pasid()
184 static void intel_svm_domain_free(struct iommu_domain *domain) in intel_svm_domain_free()
197 struct iommu_domain *intel_svm_domain_alloc(struct device *dev, in intel_svm_domain_alloc()
/linux-6.15/drivers/media/platform/qcom/venus/
H A Dfirmware.c151 struct iommu_domain *iommu; in venus_boot_no_tz()
159 iommu = core->fw.iommu_domain; in venus_boot_no_tz()
177 struct iommu_domain *iommu; in venus_shutdown_no_tz()
196 iommu = core->fw.iommu_domain; in venus_shutdown_no_tz()
286 struct iommu_domain *iommu_dom; in venus_firmware_init()
332 core->fw.iommu_domain = iommu_dom; in venus_firmware_init()
348 struct iommu_domain *iommu; in venus_firmware_deinit()
353 iommu = core->fw.iommu_domain; in venus_firmware_deinit()
357 if (core->fw.iommu_domain) { in venus_firmware_deinit()
359 core->fw.iommu_domain = NULL; in venus_firmware_deinit()
/linux-6.15/drivers/iommu/riscv/
H A Diommu.c808 struct iommu_domain domain;
818 #define iommu_domain_to_riscv(iommu_domain) \ argument
1067 static void riscv_iommu_iotlb_flush_all(struct iommu_domain *iommu_domain) in riscv_iommu_iotlb_flush_all() argument
1074 static void riscv_iommu_iotlb_sync(struct iommu_domain *iommu_domain, in riscv_iommu_iotlb_sync() argument
1187 static int riscv_iommu_map_pages(struct iommu_domain *iommu_domain, in riscv_iommu_map_pages() argument
1243 static size_t riscv_iommu_unmap_pages(struct iommu_domain *iommu_domain, in riscv_iommu_unmap_pages() argument
1277 static phys_addr_t riscv_iommu_iova_to_phys(struct iommu_domain *iommu_domain, in riscv_iommu_iova_to_phys() argument
1291 static void riscv_iommu_free_paging_domain(struct iommu_domain *iommu_domain) in riscv_iommu_free_paging_domain() argument
1320 static int riscv_iommu_attach_paging_domain(struct iommu_domain *iommu_domain, in riscv_iommu_attach_paging_domain() argument
1425 static int riscv_iommu_attach_blocking_domain(struct iommu_domain *iommu_domain, in riscv_iommu_attach_blocking_domain() argument
[all …]
/linux-6.15/drivers/iommu/amd/
H A Damd_iommu.h50 struct iommu_domain *amd_iommu_domain_alloc_sva(struct device *dev,
52 void amd_iommu_domain_free(struct iommu_domain *dom);
53 int iommu_sva_set_dev_pasid(struct iommu_domain *domain,
55 struct iommu_domain *old);
57 struct iommu_domain *domain);
165 static inline struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain()
H A Dpasid.c102 int iommu_sva_set_dev_pasid(struct iommu_domain *domain, in iommu_sva_set_dev_pasid()
104 struct iommu_domain *old) in iommu_sva_set_dev_pasid()
149 struct iommu_domain *domain) in amd_iommu_remove_dev_pasid()
167 static void iommu_sva_domain_free(struct iommu_domain *domain) in iommu_sva_domain_free()
182 struct iommu_domain *amd_iommu_domain_alloc_sva(struct device *dev, in amd_iommu_domain_alloc_sva()
/linux-6.15/drivers/iommu/arm/arm-smmu/
H A Dqcom_iommu.c63 struct iommu_domain *domain;
70 struct iommu_domain domain;
75 static struct qcom_iommu_domain *to_qcom_iommu_domain(struct iommu_domain *dom) in to_qcom_iommu_domain()
216 static int qcom_iommu_init_domain(struct iommu_domain *domain, in qcom_iommu_init_domain()
344 static void qcom_iommu_domain_free(struct iommu_domain *domain) in qcom_iommu_domain_free()
394 struct iommu_domain *domain = iommu_get_domain_for_dev(dev); in qcom_iommu_identity_attach()
424 static struct iommu_domain qcom_iommu_identity_domain = {
429 static int qcom_iommu_map(struct iommu_domain *domain, unsigned long iova, in qcom_iommu_map()
473 static void qcom_iommu_flush_iotlb_all(struct iommu_domain *domain) in qcom_iommu_flush_iotlb_all()
486 static void qcom_iommu_iotlb_sync(struct iommu_domain *domain, in qcom_iommu_iotlb_sync()
[all …]
/linux-6.15/drivers/iommu/iommufd/
H A Dio_pagetable.h15 struct iommu_domain;
44 struct iommu_domain *storage_domain;
65 int iopt_area_fill_domain(struct iopt_area *area, struct iommu_domain *domain);
67 struct iommu_domain *domain);
69 struct iommu_domain *domain);
/linux-6.15/arch/powerpc/include/asm/
H A Dfsl_pamu_stash.h10 struct iommu_domain;
19 int fsl_pamu_configure_l1_stash(struct iommu_domain *domain, u32 cpu);

12345