Lines Matching refs:vhost_vdpa
45 struct vhost_vdpa { struct
68 static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v, argument
79 static struct vhost_vdpa_as *asid_to_as(struct vhost_vdpa *v, u32 asid) in asid_to_as()
91 static struct vhost_iotlb *asid_to_iotlb(struct vhost_vdpa *v, u32 asid) in asid_to_iotlb()
101 static struct vhost_vdpa_as *vhost_vdpa_alloc_as(struct vhost_vdpa *v, u32 asid) in vhost_vdpa_alloc_as()
123 static struct vhost_vdpa_as *vhost_vdpa_find_alloc_as(struct vhost_vdpa *v, in vhost_vdpa_find_alloc_as()
134 static int vhost_vdpa_remove_as(struct vhost_vdpa *v, u32 asid) in vhost_vdpa_remove_as()
152 struct vhost_vdpa *v = container_of(vq->dev, struct vhost_vdpa, vdev); in handle_vq_kick()
171 struct vhost_vdpa *v = private; in vhost_vdpa_config_cb()
180 static void vhost_vdpa_setup_vq_irq(struct vhost_vdpa *v, u16 qid) in vhost_vdpa_setup_vq_irq()
204 static void vhost_vdpa_unsetup_vq_irq(struct vhost_vdpa *v, u16 qid) in vhost_vdpa_unsetup_vq_irq()
211 static int vhost_vdpa_reset(struct vhost_vdpa *v) in vhost_vdpa_reset()
220 static long vhost_vdpa_bind_mm(struct vhost_vdpa *v) in vhost_vdpa_bind_mm()
231 static void vhost_vdpa_unbind_mm(struct vhost_vdpa *v) in vhost_vdpa_unbind_mm()
242 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp) in vhost_vdpa_get_device_id()
256 static long vhost_vdpa_get_status(struct vhost_vdpa *v, u8 __user *statusp) in vhost_vdpa_get_status()
270 static long vhost_vdpa_set_status(struct vhost_vdpa *v, u8 __user *statusp) in vhost_vdpa_set_status()
309 static int vhost_vdpa_config_validate(struct vhost_vdpa *v, in vhost_vdpa_config_validate()
324 static long vhost_vdpa_get_config(struct vhost_vdpa *v, in vhost_vdpa_get_config()
351 static long vhost_vdpa_set_config(struct vhost_vdpa *v, in vhost_vdpa_set_config()
374 static bool vhost_vdpa_can_suspend(const struct vhost_vdpa *v) in vhost_vdpa_can_suspend()
382 static bool vhost_vdpa_can_resume(const struct vhost_vdpa *v) in vhost_vdpa_can_resume()
390 static long vhost_vdpa_get_features(struct vhost_vdpa *v, u64 __user *featurep) in vhost_vdpa_get_features()
404 static u64 vhost_vdpa_get_backend_features(const struct vhost_vdpa *v) in vhost_vdpa_get_backend_features()
415 static long vhost_vdpa_set_features(struct vhost_vdpa *v, u64 __user *featurep) in vhost_vdpa_set_features()
450 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) in vhost_vdpa_get_vring_num()
464 static void vhost_vdpa_config_put(struct vhost_vdpa *v) in vhost_vdpa_config_put()
472 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_set_config_call()
501 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_iova_range()
513 static long vhost_vdpa_get_config_size(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_config_size()
527 static long vhost_vdpa_get_vqs_count(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_vqs_count()
542 static long vhost_vdpa_suspend(struct vhost_vdpa *v) in vhost_vdpa_suspend()
557 static long vhost_vdpa_resume(struct vhost_vdpa *v) in vhost_vdpa_resume()
568 static long vhost_vdpa_vring_ioctl(struct vhost_vdpa *v, unsigned int cmd, in vhost_vdpa_vring_ioctl()
691 struct vhost_vdpa *v = filep->private_data; in vhost_vdpa_unlocked_ioctl()
805 static void vhost_vdpa_general_unmap(struct vhost_vdpa *v, in vhost_vdpa_general_unmap()
817 static void vhost_vdpa_pa_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_pa_unmap()
840 static void vhost_vdpa_va_unmap(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_va_unmap()
855 static void vhost_vdpa_iotlb_unmap(struct vhost_vdpa *v, in vhost_vdpa_iotlb_unmap()
889 static int vhost_vdpa_map(struct vhost_vdpa *v, struct vhost_iotlb *iotlb, in vhost_vdpa_map()
923 static void vhost_vdpa_unmap(struct vhost_vdpa *v, in vhost_vdpa_unmap()
940 static int vhost_vdpa_va_map(struct vhost_vdpa *v, in vhost_vdpa_va_map()
991 static int vhost_vdpa_pa_map(struct vhost_vdpa *v, in vhost_vdpa_pa_map()
1116 static int vhost_vdpa_process_iotlb_update(struct vhost_vdpa *v, in vhost_vdpa_process_iotlb_update()
1142 struct vhost_vdpa *v = container_of(dev, struct vhost_vdpa, vdev); in vhost_vdpa_process_iotlb_msg()
1209 struct vhost_vdpa *v = file->private_data; in vhost_vdpa_chr_write_iter()
1215 static int vhost_vdpa_alloc_domain(struct vhost_vdpa *v) in vhost_vdpa_alloc_domain()
1253 static void vhost_vdpa_free_domain(struct vhost_vdpa *v) in vhost_vdpa_free_domain()
1266 static void vhost_vdpa_set_iova_range(struct vhost_vdpa *v) in vhost_vdpa_set_iova_range()
1283 static void vhost_vdpa_cleanup(struct vhost_vdpa *v) in vhost_vdpa_cleanup()
1301 struct vhost_vdpa *v; in vhost_vdpa_open()
1307 v = container_of(inode->i_cdev, struct vhost_vdpa, cdev); in vhost_vdpa_open()
1350 static void vhost_vdpa_clean_irq(struct vhost_vdpa *v) in vhost_vdpa_clean_irq()
1360 struct vhost_vdpa *v = filep->private_data; in vhost_vdpa_release()
1382 struct vhost_vdpa *v = vmf->vma->vm_file->private_data; in vhost_vdpa_fault()
1400 struct vhost_vdpa *v = vma->vm_file->private_data; in vhost_vdpa_mmap()
1447 struct vhost_vdpa *v = in vhost_vdpa_release_dev()
1448 container_of(device, struct vhost_vdpa, dev); in vhost_vdpa_release_dev()
1458 struct vhost_vdpa *v; in vhost_vdpa_probe()
1523 struct vhost_vdpa *v = vdpa_get_drvdata(vdpa); in vhost_vdpa_remove()