Home
last modified time | relevance | path

Searched refs:iommu_group (Results 1 – 25 of 48) sorted by relevance

12

/OK3568_Linux_fs/kernel/include/linux/
H A Diommu.h48 struct iommu_group;
281 struct iommu_group *(*device_group)(struct device *dev);
448 extern struct iommu_group *iommu_group_get_by_id(int id);
494 extern int iommu_get_group_resv_regions(struct iommu_group *group,
498 struct iommu_group *group);
500 struct iommu_group *group);
501 extern struct iommu_group *iommu_group_alloc(void);
502 extern void *iommu_group_get_iommudata(struct iommu_group *group);
503 extern void iommu_group_set_iommudata(struct iommu_group *group,
506 extern int iommu_group_set_name(struct iommu_group *group, const char *name);
[all …]
H A Dvfio.h60 extern struct iommu_group *vfio_iommu_group_get(struct device *dev);
61 extern void vfio_iommu_group_put(struct iommu_group *group, struct device *dev);
92 struct iommu_group *group);
94 struct iommu_group *group);
96 struct iommu_group *group,
191 extern long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group,
203 static inline long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group, in vfio_spapr_iommu_eeh_ioctl()
H A Dhost1x.h22 struct iommu_group;
59 struct iommu_group *group;
H A Ddevice.h46 struct iommu_group;
542 struct iommu_group *iommu_group; member
613 return (dev->iommu_group != NULL); in device_iommu_mapped()
/OK3568_Linux_fs/kernel/drivers/iommu/
H A Diommu.c36 struct iommu_group { struct
59 ssize_t (*show)(struct iommu_group *group, char *buf); argument
60 ssize_t (*store)(struct iommu_group *group,
84 static int iommu_alloc_default_domain(struct iommu_group *group,
91 struct iommu_group *group);
93 struct iommu_group *group);
94 static int iommu_create_device_direct_mappings(struct iommu_group *group,
96 static struct iommu_group *iommu_group_get_for_dev(struct device *dev);
105 container_of(_kobj, struct iommu_group, kobj)
203 struct iommu_group *group; in __iommu_probe_device()
[all …]
H A Dfsl_pamu_domain.c911 static struct iommu_group *get_device_iommu_group(struct device *dev) in get_device_iommu_group()
913 struct iommu_group *group; in get_device_iommu_group()
934 static struct iommu_group *get_shared_pci_device_group(struct pci_dev *pdev) in get_shared_pci_device_group()
937 struct iommu_group *group; in get_shared_pci_device_group()
959 static struct iommu_group *get_pci_device_group(struct pci_dev *pdev) in get_pci_device_group()
963 struct iommu_group *group = NULL; in get_pci_device_group()
975 if (pci_ctl->parent->iommu_group) in get_pci_device_group()
988 if (pci_ctl->parent->iommu_group) { in get_pci_device_group()
1002 static struct iommu_group *fsl_pamu_device_group(struct device *dev) in fsl_pamu_device_group()
1004 struct iommu_group *group = ERR_PTR(-ENODEV); in fsl_pamu_device_group()
H A Dmtk_iommu.h73 struct iommu_group *m4u_group[MTK_IOMMU_GROUP_MAX];
H A Dtegra-smmu.c25 struct iommu_group *group;
906 static struct iommu_group *tegra_smmu_group_get(struct tegra_smmu *smmu, in tegra_smmu_group_get()
911 struct iommu_group *grp; in tegra_smmu_group_get()
953 static struct iommu_group *tegra_smmu_device_group(struct device *dev) in tegra_smmu_device_group()
957 struct iommu_group *group; in tegra_smmu_device_group()
H A Dipmmu-vmsa.c69 struct iommu_group *group;
880 static struct iommu_group *ipmmu_find_group(struct device *dev) in ipmmu_find_group()
883 struct iommu_group *group; in ipmmu_find_group()
H A Domap-iommu.h83 struct iommu_group *group;
/OK3568_Linux_fs/kernel/drivers/vfio/
H A Dvfio.c74 struct iommu_group *iommu_group; member
107 struct iommu_group *vfio_iommu_group_get(struct device *dev) in vfio_iommu_group_get()
109 struct iommu_group *group; in vfio_iommu_group_get()
152 void vfio_iommu_group_put(struct iommu_group *group, struct device *dev) in vfio_iommu_group_put()
188 struct iommu_group *iommu_group) in vfio_noiommu_attach_group() argument
190 return iommu_group_get_iommudata(iommu_group) == &noiommu ? 0 : -EINVAL; in vfio_noiommu_attach_group()
194 struct iommu_group *iommu_group) in vfio_noiommu_detach_group() argument
307 iommu_group_unregister_notifier(group->iommu_group, &group->nb); in vfio_group_unlock_and_free()
314 static struct vfio_group *vfio_create_group(struct iommu_group *iommu_group) in vfio_create_group() argument
332 group->iommu_group = iommu_group; in vfio_create_group()
[all …]
H A Dvfio_iommu_type1.c108 struct iommu_group *iommu_group; member
156 struct iommu_group *iommu_group);
714 struct iommu_group *iommu_group, in vfio_iommu_type1_pin_pages() argument
796 group = vfio_iommu_find_iommu_group(iommu, iommu_group); in vfio_iommu_type1_pin_pages()
1689 struct iommu_group *iommu_group) in find_iommu_group() argument
1694 if (g->iommu_group == iommu_group) in find_iommu_group()
1702 struct iommu_group *iommu_group) in vfio_iommu_find_iommu_group() argument
1708 group = find_iommu_group(domain, iommu_group); in vfio_iommu_find_iommu_group()
1714 group = find_iommu_group(iommu->external_domain, iommu_group); in vfio_iommu_find_iommu_group()
1824 return iommu_group_for_each_dev(group->iommu_group, in vfio_iommu_attach_group()
[all …]
H A Dvfio_iommu_spapr_tce.c33 struct iommu_group *iommu_group);
44 struct iommu_group *grp;
1241 struct iommu_group *iommu_group) in tce_iommu_attach_group() argument
1252 table_group = iommu_group_get_iommudata(iommu_group); in tce_iommu_attach_group()
1269 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group()
1271 iommu_group_id(iommu_group)); in tce_iommu_attach_group()
1279 iommu_group_id(iommu_group), in tce_iommu_attach_group()
1310 tcegrp->grp = iommu_group; in tce_iommu_attach_group()
1325 struct iommu_group *iommu_group) in tce_iommu_detach_group() argument
1335 if (tcegrp->grp == iommu_group) { in tce_iommu_detach_group()
[all …]
H A Dvfio_spapr_eeh.c31 long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group, in vfio_spapr_iommu_eeh_ioctl()
/OK3568_Linux_fs/kernel/drivers/staging/media/tegra-vde/
H A Dvde.h22 struct iommu_group;
47 struct iommu_group *group;
/OK3568_Linux_fs/kernel/virt/kvm/
H A Dvfio.c126 static struct iommu_group *kvm_vfio_group_get_iommu_group( in kvm_vfio_group_get_iommu_group()
140 struct iommu_group *grp = kvm_vfio_group_get_iommu_group(vfio_group); in kvm_spapr_tce_release_vfio_group()
284 struct iommu_group *grp; in kvm_vfio_set_group()
/OK3568_Linux_fs/kernel/drivers/vfio/mdev/
H A Dmdev_driver.c19 struct iommu_group *group; in mdev_attach_iommu()
/OK3568_Linux_fs/kernel/drivers/vfio/pci/
H A Dvfio_pci.c668 struct iommu_group *iommu_group; in vfio_pci_fill_devs() local
673 iommu_group = iommu_group_get(&pdev->dev); in vfio_pci_fill_devs()
674 if (!iommu_group) in vfio_pci_fill_devs()
677 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group); in vfio_pci_fill_devs()
682 iommu_group_put(iommu_group); in vfio_pci_fill_devs()
699 struct iommu_group *group; in vfio_pci_validate_devs()
2007 struct iommu_group *group; in vfio_pci_probe()
2110 vfio_iommu_group_put(pdev->dev.iommu_group, &pdev->dev); in vfio_pci_remove()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/
H A Dmpp_iommu.h76 struct iommu_group *group;
/OK3568_Linux_fs/kernel/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc.c608 struct iommu_group *group; in vfio_fsl_mc_probe()
679 vfio_iommu_group_put(mc_dev->dev.iommu_group, dev); in vfio_fsl_mc_remove()
/OK3568_Linux_fs/kernel/drivers/vfio/platform/
H A Dvfio_platform_common.c659 struct iommu_group *group; in vfio_platform_probe_common()
714 vfio_iommu_group_put(dev->iommu_group, dev); in vfio_platform_remove_common()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/rga3/include/
H A Drga_drv.h162 struct iommu_group *group;
/OK3568_Linux_fs/kernel/arch/powerpc/kvm/
H A Dbook3s_64_vio.c69 struct iommu_group *grp) in kvm_spapr_tce_release_iommu_group()
97 struct iommu_group *grp) in kvm_spapr_tce_attach_iommu_group()
/OK3568_Linux_fs/kernel/arch/powerpc/include/asm/
H A Diommu.h198 struct iommu_group *group;
/OK3568_Linux_fs/kernel/drivers/iommu/amd/
H A Diommu_v2.c124 struct iommu_group *group; in free_device_state()
733 struct iommu_group *group; in amd_iommu_init_device()

12