Lines Matching refs:iommu_group
28 struct iommu_group *iommu_group; member
84 static struct iommu_group *kvm_vfio_file_iommu_group(struct file *file) in kvm_vfio_file_iommu_group()
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()
270 kvg->iommu_group); in kvm_vfio_group_set_spapr_tce()