Lines Matching refs:vfio_device
33 struct vfio_device { struct
81 int (*init)(struct vfio_device *vdev);
82 void (*release)(struct vfio_device *vdev);
83 int (*open_device)(struct vfio_device *vdev);
84 void (*close_device)(struct vfio_device *vdev);
85 ssize_t (*read)(struct vfio_device *vdev, char __user *buf,
87 ssize_t (*write)(struct vfio_device *vdev, const char __user *buf,
89 long (*ioctl)(struct vfio_device *vdev, unsigned int cmd,
91 int (*mmap)(struct vfio_device *vdev, struct vm_area_struct *vma);
92 void (*request)(struct vfio_device *vdev, unsigned int count);
93 int (*match)(struct vfio_device *vdev, char *buf);
94 void (*dma_unmap)(struct vfio_device *vdev, u64 iova, u64 length);
95 int (*device_feature)(struct vfio_device *device, u32 flags,
113 struct vfio_device *device,
115 int (*migration_get_state)(struct vfio_device *device,
133 int (*log_start)(struct vfio_device *device,
135 int (*log_stop)(struct vfio_device *device);
136 int (*log_read_and_clear)(struct vfio_device *device,
170 struct vfio_device *_vfio_alloc_device(size_t size, struct device *dev,
179 int vfio_init_device(struct vfio_device *device, struct device *dev,
181 void vfio_free_device(struct vfio_device *device);
182 static inline void vfio_put_device(struct vfio_device *device) in vfio_put_device()
187 int vfio_register_group_dev(struct vfio_device *device);
188 int vfio_register_emulated_iommu_dev(struct vfio_device *device);
189 void vfio_unregister_group_dev(struct vfio_device *device);
191 int vfio_assign_device_set(struct vfio_device *device, void *set_id);
194 int vfio_mig_get_next_state(struct vfio_device *device,
206 bool vfio_file_has_dev(struct file *file, struct vfio_device *device);
210 int vfio_pin_pages(struct vfio_device *device, dma_addr_t iova,
212 void vfio_unpin_pages(struct vfio_device *device, dma_addr_t iova, int npage);
213 int vfio_dma_rw(struct vfio_device *device, dma_addr_t iova,