Lines Matching refs:vfio_device

107 	container_of((vfio_dev), struct intel_vgpu, vfio_device)
131 vfio_unpin_pages(&vgpu->vfio_device, gfn << PAGE_SHIFT, in gvt_unpin_guest_page()
152 ret = vfio_pin_pages(&vgpu->vfio_device, cur_iova, 1, in gvt_pin_guest_page()
612 static void intel_vgpu_dma_unmap(struct vfio_device *vfio_dev, u64 iova, in intel_vgpu_dma_unmap()
644 if (vgpu->vfio_device.kvm == itr->vfio_device.kvm) { in __kvmgt_vgpu_exist()
654 static int intel_vgpu_open_device(struct vfio_device *vfio_dev) in intel_vgpu_open_device()
664 ret = kvm_page_track_register_notifier(vgpu->vfio_device.kvm, in intel_vgpu_open_device()
692 static void intel_vgpu_close_device(struct vfio_device *vfio_dev) in intel_vgpu_close_device()
702 kvm_page_track_unregister_notifier(vgpu->vfio_device.kvm, in intel_vgpu_close_device()
857 static ssize_t intel_vgpu_read(struct vfio_device *vfio_dev, char __user *buf, in intel_vgpu_read()
931 static ssize_t intel_vgpu_write(struct vfio_device *vfio_dev, in intel_vgpu_write()
1005 static int intel_vgpu_mmap(struct vfio_device *vfio_dev, in intel_vgpu_mmap()
1135 static long intel_vgpu_ioctl(struct vfio_device *vfio_dev, unsigned int cmd, in intel_vgpu_ioctl()
1435 static int intel_vgpu_init_dev(struct vfio_device *vfio_dev) in intel_vgpu_init_dev()
1454 static void intel_vgpu_release_dev(struct vfio_device *vfio_dev) in intel_vgpu_release_dev()
1482 vgpu = vfio_alloc_device(intel_vgpu, vfio_device, &mdev->dev, in intel_vgpu_probe()
1490 ret = vfio_register_emulated_iommu_dev(&vgpu->vfio_device); in intel_vgpu_probe()
1499 vfio_put_device(&vgpu->vfio_device); in intel_vgpu_probe()
1507 vfio_unregister_group_dev(&vgpu->vfio_device); in intel_vgpu_remove()
1508 vfio_put_device(&vgpu->vfio_device); in intel_vgpu_remove()
1555 r = kvm_write_track_add_gfn(info->vfio_device.kvm, gfn); in intel_gvt_page_track_add()
1573 r = kvm_write_track_remove_gfn(info->vfio_device.kvm, gfn); in intel_gvt_page_track_remove()