/linux-6.3-rc2/drivers/vfio/ |
A D | group.c | 432 vfio_group_find_from_iommu(struct iommu_group *iommu_group) in vfio_group_find_from_iommu() argument 443 if (group->iommu_group == iommu_group) in vfio_group_find_from_iommu() 488 group->iommu_group = iommu_group; in vfio_group_alloc() 536 struct iommu_group *iommu_group; in vfio_noiommu_group_alloc() local 585 struct iommu_group *iommu_group; in vfio_group_find_or_alloc() local 604 if (!iommu_group) in vfio_group_find_or_alloc() 655 struct iommu_group *iommu_group; in vfio_device_remove_group() local 690 iommu_group = group->iommu_group; in vfio_device_remove_group() 759 struct iommu_group *iommu_group = NULL; in vfio_file_iommu_group() local 769 iommu_group = group->iommu_group; in vfio_file_iommu_group() [all …]
|
A 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 …]
|
A D | vfio.h | 16 struct iommu_group; 62 struct iommu_group *iommu_group; member 109 struct iommu_group *group, 112 struct iommu_group *group); 114 struct iommu_group *group, 127 struct iommu_group *group);
|
A D | vfio_iommu_type1.c | 113 struct iommu_group *iommu_group; member 158 struct iommu_group *iommu_group); 794 struct iommu_group *iommu_group, in vfio_iommu_type1_pin_pages() argument 1856 struct iommu_group *iommu_group) in find_iommu_group() argument 1861 if (g->iommu_group == iommu_group) in find_iommu_group() 1870 struct iommu_group *iommu_group) in vfio_iommu_find_iommu_group() argument 1882 if (group->iommu_group == iommu_group) in vfio_iommu_find_iommu_group() 2172 group->iommu_group = iommu_group; in vfio_iommu_type1_attach_group() 2454 struct iommu_group *iommu_group) in vfio_iommu_type1_detach_group() argument 2464 if (group->iommu_group != iommu_group) in vfio_iommu_type1_detach_group() [all …]
|
A D | vfio_iommu_spapr_tce.c | 35 struct iommu_group *iommu_group); 46 struct iommu_group *grp; 1290 struct iommu_group *iommu_group, enum vfio_group_type type) in tce_iommu_attach_group() argument 1304 table_group = iommu_group_get_iommudata(iommu_group); in tce_iommu_attach_group() 1324 if (tcegrp->grp == iommu_group) { in tce_iommu_attach_group() 1326 iommu_group_id(iommu_group)); in tce_iommu_attach_group() 1334 iommu_group_id(iommu_group), in tce_iommu_attach_group() 1365 tcegrp->grp = iommu_group; in tce_iommu_attach_group() 1380 struct iommu_group *iommu_group) in tce_iommu_detach_group() argument 1390 if (tcegrp->grp == iommu_group) { in tce_iommu_detach_group() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | iommu.h | 36 struct iommu_group; 262 struct iommu_group *(*device_group)(struct device *dev); 499 struct iommu_group *group); 501 struct iommu_group *group); 502 extern struct iommu_group *iommu_group_alloc(void); 514 extern struct iommu_group *iommu_group_ref_get(struct iommu_group *group); 515 extern void iommu_group_put(struct iommu_group *group); 527 extern int iommu_group_id(struct iommu_group *group); 729 struct iommu_group {}; struct 850 struct iommu_group *group) in iommu_attach_group() [all …]
|
A D | device.h | 45 struct iommu_group; 633 struct iommu_group *iommu_group; member 692 return (dev->iommu_group != NULL); in device_iommu_mapped()
|
A D | host1x.h | 27 struct iommu_group; 96 struct iommu_group *group;
|
A D | vfio.h | 247 struct iommu_group *vfio_file_iommu_group(struct file *file);
|
/linux-6.3-rc2/drivers/iommu/ |
A D | iommu.c | 46 struct iommu_group { struct 309 struct iommu_group *group; in __iommu_probe_device() 402 struct iommu_group *group; in iommu_probe_device() 760 struct iommu_group *group; in iommu_group_alloc() 822 struct iommu_group *group; in iommu_group_get_by_id() 1027 dev->iommu_group = group; in iommu_group_add_device() 1047 dev->iommu_group = NULL; in iommu_group_add_device() 1070 struct iommu_group *group = dev->iommu_group; in iommu_group_remove_device() 1098 dev->iommu_group = NULL; in iommu_group_remove_device() 1162 struct iommu_group *group = dev->iommu_group; in iommu_group_get() [all …]
|
A D | fsl_pamu_domain.c | 337 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()
|
A D | apple-dart.c | 222 struct iommu_group *sid2group[DART_MAX_STREAMS]; 838 static struct iommu_group *apple_dart_device_group(struct device *dev) in apple_dart_device_group() 844 struct iommu_group *group = NULL; in apple_dart_device_group() 845 struct iommu_group *res = ERR_PTR(-EINVAL); in apple_dart_device_group() 851 struct iommu_group *stream_group = in apple_dart_device_group()
|
A D | omap-iommu.h | 83 struct iommu_group *group;
|
A D | sprd-iommu.c | 71 struct iommu_group *group; 372 static struct iommu_group *sprd_iommu_device_group(struct device *dev) in sprd_iommu_device_group()
|
A D | ipmmu-vmsa.c | 67 struct iommu_group *group; 826 static struct iommu_group *ipmmu_find_group(struct device *dev) in ipmmu_find_group() 829 struct iommu_group *group; in ipmmu_find_group()
|
A 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()
|
/linux-6.3-rc2/virt/kvm/ |
A D | vfio.c | 28 struct iommu_group *iommu_group; member 86 struct iommu_group *(*fn)(struct file *file); in kvm_vfio_file_iommu_group() 87 struct iommu_group *ret; in kvm_vfio_file_iommu_group() 103 if (WARN_ON_ONCE(!kvg->iommu_group)) in kvm_spapr_tce_release_vfio_group() 106 kvm_spapr_tce_release_iommu_group(kvm, kvg->iommu_group); in kvm_spapr_tce_release_vfio_group() 107 iommu_group_put(kvg->iommu_group); in kvm_spapr_tce_release_vfio_group() 108 kvg->iommu_group = NULL; in kvm_spapr_tce_release_vfio_group() 261 if (!kvg->iommu_group) { in kvm_vfio_group_set_spapr_tce() 262 kvg->iommu_group = kvm_vfio_file_iommu_group(kvg->file); in kvm_vfio_group_set_spapr_tce() 263 if (WARN_ON_ONCE(!kvg->iommu_group)) { in kvm_vfio_group_set_spapr_tce() [all …]
|
/linux-6.3-rc2/drivers/media/platform/nvidia/tegra-vde/ |
A D | vde.h | 46 struct iommu_group; 115 struct iommu_group *group;
|
/linux-6.3-rc2/drivers/iommu/iommufd/ |
A D | iommufd_private.h | 13 struct iommu_group; 79 struct iommu_group *group,
|
A D | device.c | 31 struct iommu_group *group; 65 struct iommu_group *group; in iommufd_device_bind() 185 struct iommu_group *group) in iommufd_hw_pagetable_has_group()
|
/linux-6.3-rc2/drivers/vfio/pci/ |
A D | vfio_pci_core.c | 784 struct iommu_group *iommu_group; in vfio_pci_fill_devs() local 789 iommu_group = iommu_group_get(&pdev->dev); in vfio_pci_fill_devs() 790 if (!iommu_group) in vfio_pci_fill_devs() 793 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group); in vfio_pci_fill_devs() 798 iommu_group_put(iommu_group); in vfio_pci_fill_devs()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | iommu.h | 197 struct iommu_group *group;
|
/linux-6.3-rc2/arch/powerpc/kvm/ |
A D | book3s_64_vio.c | 81 struct iommu_group *grp) in kvm_spapr_tce_release_iommu_group() 109 struct iommu_group *grp) in kvm_spapr_tce_attach_iommu_group()
|
/linux-6.3-rc2/drivers/gpu/host1x/ |
A D | dev.h | 135 struct iommu_group *group;
|
/linux-6.3-rc2/drivers/iommu/amd/ |
A D | iommu_v2.c | 114 struct iommu_group *group; in free_device_state() 736 struct iommu_group *group; in amd_iommu_init_device()
|