Home
last modified time | relevance | path

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

12

/drivers/iommu/
Diommu.c46 struct iommu_group { struct
72 ssize_t (*show)(struct iommu_group *group, char *buf); argument
73 ssize_t (*store)(struct iommu_group *group,
90 static int iommu_alloc_default_domain(struct iommu_group *group,
97 struct iommu_group *group);
98 static int __iommu_group_set_domain(struct iommu_group *group,
100 static int iommu_create_device_direct_mappings(struct iommu_group *group,
102 static struct iommu_group *iommu_group_get_for_dev(struct device *dev);
103 static ssize_t iommu_group_store_type(struct iommu_group *group,
113 container_of(_kobj, struct iommu_group, kobj)
[all …]
Dfsl_pamu_domain.c337 static struct iommu_group *get_device_iommu_group(struct device *dev) in get_device_iommu_group()
339 struct iommu_group *group; in get_device_iommu_group()
360 static struct iommu_group *get_shared_pci_device_group(struct pci_dev *pdev) in get_shared_pci_device_group()
363 struct iommu_group *group; in get_shared_pci_device_group()
385 static struct iommu_group *get_pci_device_group(struct pci_dev *pdev) in get_pci_device_group()
389 struct iommu_group *group = NULL; in get_pci_device_group()
401 if (pci_ctl->parent->iommu_group) in get_pci_device_group()
414 if (pci_ctl->parent->iommu_group) { in get_pci_device_group()
428 static struct iommu_group *fsl_pamu_device_group(struct device *dev) in fsl_pamu_device_group()
430 struct iommu_group *group = ERR_PTR(-ENODEV); in fsl_pamu_device_group()
Dapple-dart.c124 struct iommu_group *sid2group[DART_MAX_STREAMS];
715 static struct iommu_group *apple_dart_device_group(struct device *dev) in apple_dart_device_group()
721 struct iommu_group *group = NULL; in apple_dart_device_group()
722 struct iommu_group *res = ERR_PTR(-EINVAL); in apple_dart_device_group()
728 struct iommu_group *stream_group = in apple_dart_device_group()
Dipmmu-vmsa.c67 struct iommu_group *group;
855 static struct iommu_group *ipmmu_find_group(struct device *dev) in ipmmu_find_group()
858 struct iommu_group *group; in ipmmu_find_group()
Dsprd-iommu.c71 struct iommu_group *group;
387 static struct iommu_group *sprd_iommu_device_group(struct device *dev) in sprd_iommu_device_group()
Domap-iommu.h83 struct iommu_group *group;
Dtegra-smmu.c26 struct iommu_group *group;
890 static struct iommu_group *tegra_smmu_device_group(struct device *dev) in tegra_smmu_device_group()
897 struct iommu_group *grp; in tegra_smmu_device_group()
Dsun50i-iommu.c110 struct iommu_group *group;
811 static struct iommu_group *sun50i_iommu_device_group(struct device *dev) in sun50i_iommu_device_group()
Dmtk_iommu.c218 struct iommu_group *m4u_group[MTK_IOMMU_GROUP_MAX];
852 static struct iommu_group *mtk_iommu_device_group(struct device *dev) in mtk_iommu_device_group()
856 struct iommu_group *group; in mtk_iommu_device_group()
Drockchip-iommu.c115 struct iommu_group *group;
1128 static struct iommu_group *rk_iommu_device_group(struct device *dev) in rk_iommu_device_group()
Domap-iommu.c1721 static struct iommu_group *omap_iommu_device_group(struct device *dev) in omap_iommu_device_group()
1724 struct iommu_group *group = ERR_PTR(-EINVAL); in omap_iommu_device_group()
/drivers/vfio/
Dvfio_main.c145 __vfio_group_get_from_iommu(struct iommu_group *iommu_group) in __vfio_group_get_from_iommu() argument
154 if (group->iommu_group == iommu_group) { in __vfio_group_get_from_iommu()
163 vfio_group_get_from_iommu(struct iommu_group *iommu_group) in vfio_group_get_from_iommu() argument
168 group = __vfio_group_get_from_iommu(iommu_group); in vfio_group_get_from_iommu()
179 WARN_ON(group->iommu_group); in vfio_group_release()
184 static struct vfio_group *vfio_group_alloc(struct iommu_group *iommu_group, in vfio_group_alloc() argument
211 group->iommu_group = iommu_group; in vfio_group_alloc()
213 iommu_group_ref_get(iommu_group); in vfio_group_alloc()
220 static struct vfio_group *vfio_create_group(struct iommu_group *iommu_group, in vfio_create_group() argument
227 group = vfio_group_alloc(iommu_group, type); in vfio_create_group()
[all …]
Dvfio.h13 struct iommu_group;
52 struct iommu_group *iommu_group; member
81 struct iommu_group *group,
84 struct iommu_group *group);
86 struct iommu_group *group,
99 struct iommu_group *group);
Dcontainer.c63 struct iommu_group *iommu_group, enum vfio_group_type type) in vfio_noiommu_attach_group() argument
69 struct iommu_group *iommu_group) in vfio_noiommu_detach_group() argument
249 ret = driver->ops->attach_group(data, group->iommu_group, in __vfio_container_attach_groups()
260 driver->ops->detach_group(data, group->iommu_group); in __vfio_container_attach_groups()
448 ret = iommu_group_claim_dma_owner(group->iommu_group, group); in vfio_container_attach_group()
456 group->iommu_group, in vfio_container_attach_group()
461 group->iommu_group); in vfio_container_attach_group()
492 group->iommu_group); in vfio_group_detach_container()
495 iommu_group_release_dma_owner(group->iommu_group); in vfio_group_detach_container()
574 group->iommu_group, iova, in vfio_pin_pages()
Dvfio_iommu_type1.c116 struct iommu_group *iommu_group; member
163 struct iommu_group *iommu_group);
854 struct iommu_group *iommu_group, in vfio_iommu_type1_pin_pages() argument
966 group = vfio_iommu_find_iommu_group(iommu, iommu_group); in vfio_iommu_type1_pin_pages()
1943 struct iommu_group *iommu_group) in find_iommu_group() argument
1948 if (g->iommu_group == iommu_group) in find_iommu_group()
1957 struct iommu_group *iommu_group) in vfio_iommu_find_iommu_group() argument
1963 group = find_iommu_group(domain, iommu_group); in vfio_iommu_find_iommu_group()
1969 if (group->iommu_group == iommu_group) in vfio_iommu_find_iommu_group()
2238 struct iommu_group *iommu_group, enum vfio_group_type type) in vfio_iommu_type1_attach_group() argument
[all …]
Dvfio_iommu_spapr_tce.c34 struct iommu_group *iommu_group);
45 struct iommu_group *grp;
1241 struct iommu_group *iommu_group, enum vfio_group_type type) in tce_iommu_attach_group() argument
1255 table_group = iommu_group_get_iommudata(iommu_group); in tce_iommu_attach_group()
1275 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group()
1277 iommu_group_id(iommu_group)); in tce_iommu_attach_group()
1285 iommu_group_id(iommu_group), in tce_iommu_attach_group()
1316 tcegrp->grp = iommu_group; in tce_iommu_attach_group()
1331 struct iommu_group *iommu_group) in tce_iommu_detach_group() argument
1341 if (tcegrp->grp == iommu_group) { in tce_iommu_detach_group()
[all …]
Dvfio_spapr_eeh.c31 long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group, in vfio_spapr_iommu_eeh_ioctl()
/drivers/media/platform/nvidia/tegra-vde/
Dvde.h46 struct iommu_group;
115 struct iommu_group *group;
/drivers/vfio/pci/
Dvfio_pci_core.c776 struct iommu_group *iommu_group; in vfio_pci_fill_devs() local
781 iommu_group = iommu_group_get(&pdev->dev); in vfio_pci_fill_devs()
782 if (!iommu_group) in vfio_pci_fill_devs()
785 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group); in vfio_pci_fill_devs()
790 iommu_group_put(iommu_group); in vfio_pci_fill_devs()
/drivers/iommu/amd/
Diommu_v2.c114 struct iommu_group *group; in free_device_state()
734 struct iommu_group *group; in amd_iommu_init_device()
Damd_iommu_types.h773 struct iommu_group *group;
/drivers/gpu/host1x/
Ddev.h135 struct iommu_group *group;
/drivers/iommu/arm/arm-smmu/
Darm-smmu.h263 struct iommu_group *group;
Darm-smmu.c1450 static struct iommu_group *arm_smmu_device_group(struct device *dev) in arm_smmu_device_group()
1455 struct iommu_group *group = NULL; in arm_smmu_device_group()
/drivers/iommu/intel/
Ddebugfs.c366 struct iommu_group *group; in show_device_domain_translation()

12