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()
150 struct virtiovf_pci_core_device *virtvdev; in virtiovf_pci_probe() local
166 virtvdev = vfio_alloc_device(virtiovf_pci_core_device, core_device.vdev, in virtiovf_pci_probe()
168 if (IS_ERR(virtvdev)) in virtiovf_pci_probe()
169 return PTR_ERR(virtvdev); in virtiovf_pci_probe()
172 virtiovf_set_migratable(virtvdev); in virtiovf_pci_probe()
174 dev_set_drvdata(&pdev->dev, &virtvdev->core_device); in virtiovf_pci_probe()
175 ret = vfio_pci_core_register_device(&virtvdev->core_device); in virtiovf_pci_probe()
180 vfio_put_device(&virtvdev->core_device.vdev); in virtiovf_pci_probe()
186 struct virtiovf_pci_core_device *virtvdev = dev_get_drvdata(&pdev->dev); in virtiovf_pci_remove() local
188 vfio_pci_core_unregister_device(&virtvdev->core_device); in virtiovf_pci_remove()
189 vfio_put_device(&virtvdev->core_device.vdev); in virtiovf_pci_remove()