/drivers/vfio/ |
D | group.c | 123 if (!group->iommu_group) { in vfio_group_ioctl_set_container() 361 if (!group->iommu_group) { in vfio_group_ioctl_get_status() 376 else if (!iommu_group_dma_owner_claimed(group->iommu_group)) in vfio_group_ioctl_get_status() 509 vfio_group_find_from_iommu(struct iommu_group *iommu_group) in vfio_group_find_from_iommu() argument 520 if (group->iommu_group == iommu_group) in vfio_group_find_from_iommu() 532 WARN_ON(group->iommu_group); in vfio_group_release() 538 static struct vfio_group *vfio_group_alloc(struct iommu_group *iommu_group, in vfio_group_alloc() argument 566 group->iommu_group = iommu_group; in vfio_group_alloc() 568 iommu_group_ref_get(iommu_group); in vfio_group_alloc() 575 static struct vfio_group *vfio_create_group(struct iommu_group *iommu_group, in vfio_create_group() argument [all …]
|
D | container.c | 56 struct iommu_group *iommu_group, enum vfio_group_type type) in vfio_noiommu_attach_group() argument 62 struct iommu_group *iommu_group) in vfio_noiommu_detach_group() argument 243 ret = driver->ops->attach_group(data, group->iommu_group, in __vfio_container_attach_groups() 254 driver->ops->detach_group(data, group->iommu_group); in __vfio_container_attach_groups() 437 ret = iommu_group_claim_dma_owner(group->iommu_group, group); in vfio_container_attach_group() 445 group->iommu_group, in vfio_container_attach_group() 450 group->iommu_group); in vfio_container_attach_group() 481 group->iommu_group); in vfio_group_detach_container() 484 iommu_group_release_dma_owner(group->iommu_group); in vfio_group_detach_container() 536 struct iommu_group *iommu_group = device->group->iommu_group; in vfio_device_container_pin_pages() local [all …]
|
D | vfio.h | 16 struct iommu_group; 81 struct iommu_group *iommu_group; member 210 struct iommu_group *group, 213 struct iommu_group *group); 215 struct iommu_group *group, 228 struct iommu_group *group);
|
D | vfio_iommu_type1.c | 113 struct iommu_group *iommu_group; member 158 struct iommu_group *iommu_group); 797 struct iommu_group *iommu_group, in vfio_iommu_type1_pin_pages() argument 893 group = vfio_iommu_find_iommu_group(iommu, iommu_group); in vfio_iommu_type1_pin_pages() 1864 struct iommu_group *iommu_group) in find_iommu_group() argument 1869 if (g->iommu_group == iommu_group) in find_iommu_group() 1878 struct iommu_group *iommu_group) in vfio_iommu_find_iommu_group() argument 1884 group = find_iommu_group(domain, iommu_group); in vfio_iommu_find_iommu_group() 1890 if (group->iommu_group == iommu_group) in vfio_iommu_find_iommu_group() 2153 struct iommu_group *iommu_group, enum vfio_group_type type) in vfio_iommu_type1_attach_group() argument [all …]
|
D | vfio_iommu_spapr_tce.c | 35 struct iommu_group *iommu_group); 46 struct iommu_group *grp; 777 static long vfio_spapr_ioctl_eeh_pe_op(struct iommu_group *group, in vfio_spapr_ioctl_eeh_pe_op() 1232 struct iommu_group *iommu_group, enum vfio_group_type type) in tce_iommu_attach_group() argument 1246 table_group = iommu_group_get_iommudata(iommu_group); in tce_iommu_attach_group() 1271 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group() 1273 iommu_group_id(iommu_group)); in tce_iommu_attach_group() 1281 iommu_group_id(iommu_group), in tce_iommu_attach_group() 1299 tcegrp->grp = iommu_group; in tce_iommu_attach_group() 1313 struct iommu_group *iommu_group) in tce_iommu_detach_group() argument [all …]
|
D | iommufd.c | 87 struct iommu_group *group; in vfio_iommufd_get_dev_id()
|
/drivers/iommu/ |
D | iommu.c | 50 struct iommu_group { struct 80 ssize_t (*show)(struct iommu_group *group, char *buf); 81 ssize_t (*store)(struct iommu_group *group, 104 struct iommu_group *group); 110 static int __iommu_device_set_domain(struct iommu_group *group, 114 static int __iommu_group_set_domain_internal(struct iommu_group *group, 117 static int __iommu_group_set_domain(struct iommu_group *group, in __iommu_group_set_domain() 122 static void __iommu_group_set_domain_nofail(struct iommu_group *group, in __iommu_group_set_domain_nofail() 129 static int iommu_setup_default_domain(struct iommu_group *group, 133 static ssize_t iommu_group_store_type(struct iommu_group *group, [all …]
|
D | iommu-priv.h | 20 int iommu_group_replace_domain(struct iommu_group *group,
|
D | fsl_pamu_domain.c | 348 static struct iommu_group *fsl_pamu_device_group(struct device *dev) in fsl_pamu_device_group() 350 struct iommu_group *group; in fsl_pamu_device_group()
|
D | apple-dart.c | 222 struct iommu_group *sid2group[DART_MAX_STREAMS]; 837 static struct iommu_group *apple_dart_device_group(struct device *dev) in apple_dart_device_group() 843 struct iommu_group *group = NULL; in apple_dart_device_group() 844 struct iommu_group *res = ERR_PTR(-EINVAL); in apple_dart_device_group() 850 struct iommu_group *stream_group = in apple_dart_device_group()
|
D | ipmmu-vmsa.c | 67 struct iommu_group *group; 836 static struct iommu_group *ipmmu_find_group(struct device *dev) in ipmmu_find_group() 839 struct iommu_group *group; in ipmmu_find_group()
|
D | sprd-iommu.c | 73 struct iommu_group *group; 402 static struct iommu_group *sprd_iommu_device_group(struct device *dev) in sprd_iommu_device_group()
|
D | omap-iommu.h | 83 struct iommu_group *group;
|
D | tegra-smmu.c | 26 struct iommu_group *group; 891 static struct iommu_group *tegra_smmu_device_group(struct device *dev) in tegra_smmu_device_group() 898 struct iommu_group *grp; in tegra_smmu_device_group()
|
D | sun50i-iommu.c | 110 struct iommu_group *group; 811 static struct iommu_group *sun50i_iommu_device_group(struct device *dev) in sun50i_iommu_device_group()
|
D | mtk_iommu.c | 257 struct iommu_group *m4u_group[MTK_IOMMU_GROUP_MAX]; 917 static struct iommu_group *mtk_iommu_device_group(struct device *dev) in mtk_iommu_device_group() 921 struct iommu_group *group; in mtk_iommu_device_group()
|
/drivers/media/platform/nvidia/tegra-vde/ |
D | vde.h | 46 struct iommu_group; 115 struct iommu_group *group;
|
/drivers/iommu/iommufd/ |
D | iommufd_private.h | 13 struct iommu_group; 269 struct iommu_group *group;
|
D | device.c | 40 struct iommu_group *group) in iommufd_group_try_get() 66 struct iommu_group *group; in iommufd_get_group() 246 bool iommufd_ctx_has_group(struct iommufd_ctx *ictx, struct iommu_group *group) in iommufd_ctx_has_group()
|
/drivers/vfio/pci/ |
D | vfio_pci_core.c | 828 struct iommu_group *iommu_group; in vfio_pci_fill_devs() local 830 iommu_group = iommu_group_get(&pdev->dev); in vfio_pci_fill_devs() 831 if (!iommu_group) in vfio_pci_fill_devs() 834 info->group_id = iommu_group_id(iommu_group); in vfio_pci_fill_devs() 835 iommu_group_put(iommu_group); in vfio_pci_fill_devs()
|
/drivers/iommu/arm/arm-smmu-v3/ |
D | arm-smmu-v3-common.c | 459 struct iommu_group *arm_smmu_device_group(struct device *dev) in arm_smmu_device_group() 461 struct iommu_group *group; in arm_smmu_device_group()
|
D | arm-smmu-v3.h | 279 struct iommu_group *arm_smmu_device_group(struct device *dev);
|
/drivers/iommu/amd/ |
D | iommu_v2.c | 114 struct iommu_group *group; in free_device_state() 739 struct iommu_group *group; in amd_iommu_init_device()
|
/drivers/gpu/host1x/ |
D | dev.h | 135 struct iommu_group *group;
|
/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu.h | 263 struct iommu_group *group;
|