Home
last modified time | relevance | path

Searched refs:virtvdev (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/vfio/pci/virtio/
H A Dlegacy_io.c22 virtiovf_issue_legacy_rw_cmd(struct virtiovf_pci_core_device *virtvdev, in virtiovf_issue_legacy_rw_cmd() argument
27 (virtvdev->core_device.irq_type == VFIO_PCI_MSIX_IRQ_INDEX); in virtiovf_issue_legacy_rw_cmd()
28 struct pci_dev *pdev = virtvdev->core_device.pdev; in virtiovf_issue_legacy_rw_cmd()
29 u8 *bar0_buf = virtvdev->bar0_virtual_buf; in virtiovf_issue_legacy_rw_cmd()
37 mutex_lock(&virtvdev->bar_mutex); in virtiovf_issue_legacy_rw_cmd()
63 mutex_unlock(&virtvdev->bar_mutex); in virtiovf_issue_legacy_rw_cmd()
68 virtiovf_pci_bar0_rw(struct virtiovf_pci_core_device *virtvdev, in virtiovf_pci_bar0_rw() argument
72 struct vfio_pci_core_device *core_device = &virtvdev->core_device; in virtiovf_pci_bar0_rw()
77 if (!(le16_to_cpu(virtvdev->pci_cmd) & PCI_COMMAND_IO)) in virtiovf_pci_bar0_rw()
80 if (pos + count > virtvdev->bar0_virtual_buf_size) in virtiovf_pci_bar0_rw()
[all …]
H A Dmigrate.c151 virtiovf_pci_alloc_obj_id(struct virtiovf_pci_core_device *virtvdev, u8 type, in virtiovf_pci_alloc_obj_id() argument
154 return virtio_pci_admin_obj_create(virtvdev->core_device.pdev, in virtiovf_pci_alloc_obj_id()
159 virtiovf_pci_free_obj_id(struct virtiovf_pci_core_device *virtvdev, u32 obj_id) in virtiovf_pci_free_obj_id() argument
161 virtio_pci_admin_obj_destroy(virtvdev->core_device.pdev, in virtiovf_pci_free_obj_id()
223 virtiovf_pci_free_obj_id(migf->virtvdev, migf->obj_id); in virtiovf_clean_migf_resources()
234 static void virtiovf_disable_fds(struct virtiovf_pci_core_device *virtvdev) in virtiovf_disable_fds() argument
236 if (virtvdev->resuming_migf) { in virtiovf_disable_fds()
237 virtiovf_disable_fd(virtvdev->resuming_migf); in virtiovf_disable_fds()
238 virtiovf_clean_migf_resources(virtvdev->resuming_migf); in virtiovf_disable_fds()
239 fput(virtvdev->resuming_migf->filp); in virtiovf_disable_fds()
[all …]
H A Dmain.c23 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()
[all …]
H A Dcommon.h76 struct virtiovf_pci_core_device *virtvdev; member
105 void virtiovf_set_migratable(struct virtiovf_pci_core_device *virtvdev);
106 void virtiovf_open_migration(struct virtiovf_pci_core_device *virtvdev);
107 void virtiovf_close_migration(struct virtiovf_pci_core_device *virtvdev);
111 int virtiovf_open_legacy_io(struct virtiovf_pci_core_device *virtvdev);
121 int virtiovf_init_legacy_io(struct virtiovf_pci_core_device *virtvdev);
122 void virtiovf_release_legacy_io(struct virtiovf_pci_core_device *virtvdev);