Home
last modified time | relevance | path

Searched refs:dev_set (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/vfio/
H A Diommufd.c26 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_bind()
41 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_compat_attach_ioas()
59 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_unbind()
135 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_unbind()
155 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_attach_ioas()
175 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_detach_ioas()
190 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_pasid_attach_ioas()
214 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_pasid_detach_ioas()
253 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_bind()
265 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_unbind()
[all …]
H A Dvfio_main.c70 struct vfio_device_set *dev_set; in vfio_assign_device_set() local
79 dev_set = xa_load(&vfio_device_set_xa, idx); in vfio_assign_device_set()
80 if (dev_set) in vfio_assign_device_set()
92 dev_set = __xa_cmpxchg(&vfio_device_set_xa, idx, NULL, new_dev_set, in vfio_assign_device_set()
94 if (!dev_set) { in vfio_assign_device_set()
95 dev_set = new_dev_set; in vfio_assign_device_set()
100 if (xa_is_err(dev_set)) { in vfio_assign_device_set()
102 return xa_err(dev_set); in vfio_assign_device_set()
106 dev_set->device_count++; in vfio_assign_device_set()
108 mutex_lock(&dev_set->lock); in vfio_assign_device_set()
[all …]
H A Ddevice_cdev.c117 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
158 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
168 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
185 mutex_lock(&device->dev_set->lock); in vfio_df_unbind_iommufd()
190 mutex_unlock(&device->dev_set->lock); in vfio_df_unbind_iommufd()
228 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
242 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
249 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
286 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt()
291 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt()
H A Dgroup.c176 mutex_lock(&device->dev_set->lock); in vfio_df_group_open()
217 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open()
227 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open()
238 mutex_lock(&device->dev_set->lock); in vfio_df_group_close()
246 mutex_unlock(&device->dev_set->lock); in vfio_df_group_close()
/linux/drivers/vfio/pci/
H A Dvfio_pci_core.c177 static void vfio_pci_dev_set_try_reset(struct vfio_device_set *dev_set);
178 static int vfio_pci_dev_set_hot_reset(struct vfio_device_set *dev_set,
564 lockdep_assert_held(&vdev->vdev.dev_set->lock); in vfio_pci_core_disable()
674 vfio_pci_dev_set_try_reset(vdev->vdev.dev_set); in vfio_pci_core_disable()
791 struct vfio_device_set *dev_set = fill->vdev->dev_set; in vfio_pci_fill_devs() local
798 vdev = vfio_find_device_in_devset(dev_set, &pdev->dev); in vfio_pci_fill_devs()
1288 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1291 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1381 ret = vfio_pci_dev_set_hot_reset(vdev->vdev.dev_set, &info, NULL); in vfio_pci_ioctl_pci_hot_reset_groups()
1417 return vfio_pci_dev_set_hot_reset(vdev->vdev.dev_set, NULL, in vfio_pci_ioctl_pci_hot_reset()
[all …]
/linux/drivers/vfio/fsl-mc/
H A Dvfio_fsl_mc_intr.c122 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_fsl_mc_set_irq_trigger()
131 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_fsl_mc_set_irq_trigger()
155 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_fsl_mc_set_irq_trigger()
/linux/include/linux/
H A Dvfio.h51 struct vfio_device_set *dev_set; member
302 unsigned int vfio_device_set_open_count(struct vfio_device_set *dev_set);
304 vfio_find_device_in_devset(struct vfio_device_set *dev_set,