Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/vfio/
A Dgroup.c432 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 Dcontainer.c56 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 Dvfio.h16 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 Dvfio_iommu_type1.c113 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 Dvfio_iommu_spapr_tce.c35 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 Diommu.h36 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 Ddevice.h45 struct iommu_group;
633 struct iommu_group *iommu_group; member
692 return (dev->iommu_group != NULL); in device_iommu_mapped()
A Dhost1x.h27 struct iommu_group;
96 struct iommu_group *group;
A Dvfio.h247 struct iommu_group *vfio_file_iommu_group(struct file *file);
/linux-6.3-rc2/drivers/iommu/
A Diommu.c46 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 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()
A Dapple-dart.c222 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 Domap-iommu.h83 struct iommu_group *group;
A Dsprd-iommu.c71 struct iommu_group *group;
372 static struct iommu_group *sprd_iommu_device_group(struct device *dev) in sprd_iommu_device_group()
A Dipmmu-vmsa.c67 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 Dtegra-smmu.c26 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 Dvfio.c28 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 Dvde.h46 struct iommu_group;
115 struct iommu_group *group;
/linux-6.3-rc2/drivers/iommu/iommufd/
A Diommufd_private.h13 struct iommu_group;
79 struct iommu_group *group,
A Ddevice.c31 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 Dvfio_pci_core.c784 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 Diommu.h197 struct iommu_group *group;
/linux-6.3-rc2/arch/powerpc/kvm/
A Dbook3s_64_vio.c81 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 Ddev.h135 struct iommu_group *group;
/linux-6.3-rc2/drivers/iommu/amd/
A Diommu_v2.c114 struct iommu_group *group; in free_device_state()
736 struct iommu_group *group; in amd_iommu_init_device()

Completed in 65 milliseconds

12