Home
last modified time | relevance | path

Searched refs:dev_set (Results 1 – 9 of 9) 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.c71 struct vfio_device_set *dev_set; in vfio_assign_device_set() local
80 dev_set = xa_load(&vfio_device_set_xa, idx); in vfio_assign_device_set()
81 if (dev_set) in vfio_assign_device_set()
93 dev_set = __xa_cmpxchg(&vfio_device_set_xa, idx, NULL, new_dev_set, in vfio_assign_device_set()
95 if (!dev_set) { in vfio_assign_device_set()
96 dev_set = new_dev_set; in vfio_assign_device_set()
101 if (xa_is_err(dev_set)) { in vfio_assign_device_set()
103 return xa_err(dev_set); in vfio_assign_device_set()
107 dev_set->device_count++; in vfio_assign_device_set()
109 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.c211 static void vfio_pci_dev_set_try_reset(struct vfio_device_set *dev_set);
212 static int vfio_pci_dev_set_hot_reset(struct vfio_device_set *dev_set,
597 lockdep_assert_held(&vdev->vdev.dev_set->lock); in vfio_pci_core_disable()
715 vfio_pci_dev_set_try_reset(vdev->vdev.dev_set); in vfio_pci_core_disable()
828 struct vfio_device_set *dev_set = fill->vdev->dev_set; in vfio_pci_fill_devs() local
835 vdev = vfio_find_device_in_devset(dev_set, &pdev->dev); in vfio_pci_fill_devs()
1306 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1309 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1399 ret = vfio_pci_dev_set_hot_reset(vdev->vdev.dev_set, &info, NULL); in vfio_pci_ioctl_pci_hot_reset_groups()
1435 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.h52 struct vfio_device_set *dev_set; member
308 unsigned int vfio_device_set_open_count(struct vfio_device_set *dev_set);
310 vfio_find_device_in_devset(struct vfio_device_set *dev_set,
/linux/drivers/firmware/
H A Darm_scpi.c780 struct dev_pstate_set dev_set = { in scpi_device_set_power_state() local
785 return scpi_send_message(CMD_SET_DEVICE_PWR_STATE, &dev_set, in scpi_device_set_power_state()
786 sizeof(dev_set), &stat, sizeof(stat)); in scpi_device_set_power_state()
/linux/tools/testing/selftests/drivers/net/
H A Dpsp.py135 cfg.pspnl.dev_set({'id': cfg.psp_dev_id, 'psp-versions-ena': cap})
136 defer(cfg.pspnl.dev_set, {'id': cfg.psp_dev_id,