Lines Matching refs:virtvdev

23 	struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev,  in virtiovf_pci_open_device()  local
25 struct vfio_pci_core_device *vdev = &virtvdev->core_device; in virtiovf_pci_open_device()
33 ret = virtiovf_open_legacy_io(virtvdev); in virtiovf_pci_open_device()
40 virtiovf_open_migration(virtvdev); in virtiovf_pci_open_device()
47 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_close_device() local
50 virtiovf_close_migration(virtvdev); in virtiovf_pci_close_device()
57 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_init_device() local
69 return virtiovf_init_legacy_io(virtvdev); in virtiovf_pci_init_device()
76 struct virtiovf_pci_core_device *virtvdev = container_of(core_vdev, in virtiovf_pci_core_release_dev() local
79 virtiovf_release_legacy_io(virtvdev); in virtiovf_pci_core_release_dev()
153 struct virtiovf_pci_core_device *virtvdev; in virtiovf_pci_probe() local
169 virtvdev = vfio_alloc_device(virtiovf_pci_core_device, core_device.vdev, in virtiovf_pci_probe()
171 if (IS_ERR(virtvdev)) in virtiovf_pci_probe()
172 return PTR_ERR(virtvdev); in virtiovf_pci_probe()
175 virtiovf_set_migratable(virtvdev); in virtiovf_pci_probe()
177 dev_set_drvdata(&pdev->dev, &virtvdev->core_device); in virtiovf_pci_probe()
178 ret = vfio_pci_core_register_device(&virtvdev->core_device); in virtiovf_pci_probe()
183 vfio_put_device(&virtvdev->core_device.vdev); in virtiovf_pci_probe()
189 struct virtiovf_pci_core_device *virtvdev = dev_get_drvdata(&pdev->dev); in virtiovf_pci_remove() local
191 vfio_pci_core_unregister_device(&virtvdev->core_device); in virtiovf_pci_remove()
192 vfio_put_device(&virtvdev->core_device.vdev); in virtiovf_pci_remove()