Lines Matching refs:vfio_device
57 int vfio_assign_device_set(struct vfio_device *device, void *set_id) in vfio_assign_device_set()
107 static void vfio_release_device_set(struct vfio_device *device) in vfio_release_device_set()
130 struct vfio_device *cur; in vfio_device_set_open_count()
264 static void vfio_device_remove_group(struct vfio_device *device) in vfio_device_remove_group()
315 static void vfio_device_put_registration(struct vfio_device *device) in vfio_device_put_registration()
321 static bool vfio_device_try_get_registration(struct vfio_device *device) in vfio_device_try_get_registration()
326 static struct vfio_device *vfio_group_get_device(struct vfio_group *group, in vfio_group_get_device()
329 struct vfio_device *device; in vfio_group_get_device()
349 struct vfio_device *device = in vfio_device_release()
350 container_of(dev, struct vfio_device, device); in vfio_device_release()
376 struct vfio_device *_vfio_alloc_device(size_t size, struct device *dev, in _vfio_alloc_device()
379 struct vfio_device *device; in _vfio_alloc_device()
382 if (WARN_ON(size < sizeof(struct vfio_device))) in _vfio_alloc_device()
405 int vfio_init_device(struct vfio_device *device, struct device *dev, in vfio_init_device()
445 void vfio_free_device(struct vfio_device *device) in vfio_free_device()
527 static int __vfio_register_dev(struct vfio_device *device, in __vfio_register_dev()
530 struct vfio_device *existing_device; in __vfio_register_dev()
584 int vfio_register_group_dev(struct vfio_device *device) in vfio_register_group_dev()
595 int vfio_register_emulated_iommu_dev(struct vfio_device *device) in vfio_register_emulated_iommu_dev()
602 static struct vfio_device *vfio_device_get_from_name(struct vfio_group *group, in vfio_device_get_from_name()
605 struct vfio_device *it, *device = ERR_PTR(-ENODEV); in vfio_device_get_from_name()
634 void vfio_unregister_group_dev(struct vfio_device *device) in vfio_unregister_group_dev()
745 bool vfio_assert_device_open(struct vfio_device *device) in vfio_assert_device_open()
750 static struct file *vfio_device_open(struct vfio_device *device) in vfio_device_open()
838 struct vfio_device *device; in vfio_group_ioctl_get_device_fd()
995 static inline int vfio_device_pm_runtime_get(struct vfio_device *device) in vfio_device_pm_runtime_get()
1016 static inline void vfio_device_pm_runtime_put(struct vfio_device *device) in vfio_device_pm_runtime_put()
1029 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1070 int vfio_mig_get_next_state(struct vfio_device *device, in vfio_mig_get_next_state()
1226 vfio_ioctl_device_feature_mig_device_state(struct vfio_device *device, in vfio_ioctl_device_feature_mig_device_state()
1275 static int vfio_ioctl_device_feature_migration(struct vfio_device *device, in vfio_ioctl_device_feature_migration()
1301 vfio_ioctl_device_feature_logging_start(struct vfio_device *device, in vfio_ioctl_device_feature_logging_start()
1386 vfio_ioctl_device_feature_logging_stop(struct vfio_device *device, in vfio_ioctl_device_feature_logging_stop()
1407 struct vfio_device *device = opaque; in vfio_device_log_read_and_clear()
1413 vfio_ioctl_device_feature_logging_report(struct vfio_device *device, in vfio_ioctl_device_feature_logging_report()
1457 static int vfio_ioctl_device_feature(struct vfio_device *device, in vfio_ioctl_device_feature()
1514 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1541 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
1553 struct vfio_device *device = filep->private_data; in vfio_device_fops_write()
1563 struct vfio_device *device = filep->private_data; in vfio_device_fops_mmap()
1682 bool vfio_file_has_dev(struct file *file, struct vfio_device *device) in vfio_file_has_dev()