Lines Matching refs:core_vdev
148 static int xe_vfio_pci_open_device(struct vfio_device *core_vdev)
151 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
166 static void xe_vfio_pci_close_device(struct vfio_device *core_vdev)
169 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
174 vfio_pci_core_close_device(core_vdev);
400 xe_vfio_pci_set_device_state(struct vfio_device *core_vdev,
404 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
411 ret = vfio_mig_get_next_state(core_vdev, xe_vdev->mig_state,
436 static int xe_vfio_pci_get_device_state(struct vfio_device *core_vdev,
440 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
470 struct vfio_device *core_vdev = &xe_vdev->core_device.vdev;
471 struct pci_dev *pdev = to_pci_dev(core_vdev->dev);
486 core_vdev->migration_flags = VFIO_MIGRATION_STOP_COPY | VFIO_MIGRATION_P2P;
487 core_vdev->mig_ops = &xe_vfio_pci_migration_ops;
498 static int xe_vfio_pci_init_dev(struct vfio_device *core_vdev)
501 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);
505 return vfio_pci_core_init_dev(core_vdev);
508 static void xe_vfio_pci_release_dev(struct vfio_device *core_vdev)
511 container_of(core_vdev, struct xe_vfio_pci_core_device, core_device.vdev);