Home
last modified time | relevance | path

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

/linux-6.15/drivers/vfio/
H A Diommufd.c26 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()
131 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_unbind()
151 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_attach_ioas()
171 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_detach_ioas()
186 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_pasid_attach_ioas()
210 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_physical_pasid_detach_ioas()
249 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_bind()
261 lockdep_assert_held(&vdev->dev_set->lock); in vfio_iommufd_emulated_unbind()
[all …]
H A Ddevice_cdev.c89 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
126 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
136 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_bind_iommufd()
153 mutex_lock(&device->dev_set->lock); in vfio_df_unbind_iommufd()
158 mutex_unlock(&device->dev_set->lock); in vfio_df_unbind_iommufd()
196 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
210 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
217 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_attach_pt()
254 mutex_lock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt()
259 mutex_unlock(&device->dev_set->lock); in vfio_df_ioctl_detach_pt()
H A Dvfio_main.c80 if (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()
109 device->dev_set = dev_set; in vfio_assign_device_set()
118 struct vfio_device_set *dev_set = device->dev_set; in vfio_release_device_set() local
120 if (!dev_set) in vfio_release_device_set()
132 kfree(dev_set); in vfio_release_device_set()
[all …]
H A Dgroup.c176 mutex_lock(&device->dev_set->lock); in vfio_df_group_open()
218 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open()
228 mutex_unlock(&device->dev_set->lock); in vfio_df_group_open()
239 mutex_lock(&device->dev_set->lock); in vfio_df_group_close()
247 mutex_unlock(&device->dev_set->lock); in vfio_df_group_close()
/linux-6.15/drivers/vfio/pci/
H A Dvfio_pci_core.c792 struct vfio_device_set *dev_set = fill->vdev->dev_set; in vfio_pci_fill_devs() local
1289 mutex_lock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
1292 mutex_unlock(&vdev->vdev.dev_set->lock); in vfio_pci_ioctl_get_pci_hot_reset_info()
2322 struct vfio_device_set *dev_set = data; in vfio_pci_is_device_in_set() local
2342 lockdep_assert_held(&dev_set->lock); in vfio_pci_dev_set_resettable()
2358 dev_set, in vfio_pci_dev_set_resettable()
2393 mutex_lock(&dev_set->lock); in vfio_pci_dev_set_hot_reset()
2395 pdev = vfio_pci_dev_set_resettable(dev_set); in vfio_pci_dev_set_hot_reset()
2493 mutex_unlock(&dev_set->lock); in vfio_pci_dev_set_hot_reset()
2503 if (vfio_device_set_open_count(dev_set) > 1) in vfio_pci_dev_set_needs_reset()
[all …]
/linux-6.15/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-6.15/include/linux/
H A Dvfio.h51 struct vfio_device_set *dev_set; member
298 unsigned int vfio_device_set_open_count(struct vfio_device_set *dev_set);
300 vfio_find_device_in_devset(struct vfio_device_set *dev_set,
/linux-6.15/drivers/firmware/
H A Darm_scpi.c779 struct dev_pstate_set dev_set = { in scpi_device_set_power_state() local
784 return scpi_send_message(CMD_SET_DEVICE_PWR_STATE, &dev_set, in scpi_device_set_power_state()
785 sizeof(dev_set), &stat, sizeof(stat)); in scpi_device_set_power_state()