Searched refs:dev_set (Results 1 – 7 of 7) sorted by relevance
/drivers/vfio/ |
D | device_cdev.c | 82 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd() 119 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd() 129 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd() 146 mutex_lock(&device->dev_set->lock); in vfio_df_unbind_iommufd() 151 mutex_unlock(&device->dev_set->lock); in vfio_df_unbind_iommufd() 171 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt() 180 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt() 187 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt() 206 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt() 208 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt()
|
D | iommufd.c | 26 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_bind() 37 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_compat_attach_ioas() 55 lockdep_assert_held(&vdev->dev_set->lock); in vfio_df_iommufd_unbind() 128 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_unbind() 143 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_attach_ioas() 161 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_detach_ioas() 197 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_bind() 209 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_unbind() 223 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_attach_ioas() 238 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_detach_ioas()
|
D | vfio_main.c | 64 struct vfio_device_set *dev_set; in vfio_assign_device_set() local 73 dev_set = xa_load(&vfio_device_set_xa, idx); in vfio_assign_device_set() 74 if (dev_set) in vfio_assign_device_set() 86 dev_set = __xa_cmpxchg(&vfio_device_set_xa, idx, NULL, new_dev_set, in vfio_assign_device_set() 88 if (!dev_set) { in vfio_assign_device_set() 89 dev_set = new_dev_set; in vfio_assign_device_set() 94 if (xa_is_err(dev_set)) { in vfio_assign_device_set() 96 return xa_err(dev_set); in vfio_assign_device_set() 100 dev_set->device_count++; in vfio_assign_device_set() 102 mutex_lock(&dev_set->lock); in vfio_assign_device_set() [all …]
|
D | group.c | 178 mutex_lock(&device->dev_set->lock); in vfio_df_group_open() 220 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open() 230 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open() 241 mutex_lock(&device->dev_set->lock); in vfio_df_group_close() 249 mutex_unlock(&device->dev_set->lock); in vfio_df_group_close()
|
/drivers/vfio/pci/ |
D | vfio_pci_core.c | 182 static void vfio_pci_dev_set_try_reset(struct vfio_device_set *dev_set); 183 static int vfio_pci_dev_set_hot_reset(struct vfio_device_set *dev_set, 569 lockdep_assert_held(&vdev->vdev.dev_set->lock); in vfio_pci_core_disable() 679 vfio_pci_dev_set_try_reset(vdev->vdev.dev_set); in vfio_pci_core_disable() 804 struct vfio_device_set *dev_set = fill->vdev->dev_set; in vfio_pci_fill_devs() local 811 vdev = vfio_find_device_in_devset(dev_set, &pdev->dev); in vfio_pci_fill_devs() 1302 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info() 1305 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info() 1395 ret = vfio_pci_dev_set_hot_reset(vdev->vdev.dev_set, &info, NULL); in vfio_pci_ioctl_pci_hot_reset_groups() 1431 return vfio_pci_dev_set_hot_reset(vdev->vdev.dev_set, NULL, in vfio_pci_ioctl_pci_hot_reset() [all …]
|
/drivers/vfio/fsl-mc/ |
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() 157 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_fsl_mc_set_irq_trigger()
|
/drivers/firmware/ |
D | arm_scpi.c | 773 struct dev_pstate_set dev_set = { in scpi_device_set_power_state() local 778 return scpi_send_message(CMD_SET_DEVICE_PWR_STATE, &dev_set, in scpi_device_set_power_state() 779 sizeof(dev_set), &stat, sizeof(stat)); in scpi_device_set_power_state()
|