Searched refs:dev_set (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/vfio/ |
| H A D | iommufd.c | 26 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 D | vfio_main.c | 71 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 D | device_cdev.c | 117 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 D | group.c | 176 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 D | vfio_pci_core.c | 211 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 D | vfio_fsl_mc_intr.c | 122 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 D | vfio.h | 52 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 D | arm_scpi.c | 780 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 D | psp.py | 135 cfg.pspnl.dev_set({'id': cfg.psp_dev_id, 'psp-versions-ena': cap}) 136 defer(cfg.pspnl.dev_set, {'id': cfg.psp_dev_id,
|