Lines Matching defs:core_vdev

1168 static int hisi_acc_pci_rw_access_check(struct vfio_device *core_vdev,
1174 container_of(core_vdev, struct vfio_pci_core_device, vdev);
1190 static int hisi_acc_vfio_pci_mmap(struct vfio_device *core_vdev,
1194 container_of(core_vdev, struct vfio_pci_core_device, vdev);
1211 return vfio_pci_core_mmap(core_vdev, vma);
1214 static ssize_t hisi_acc_vfio_pci_write(struct vfio_device *core_vdev,
1221 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count);
1225 return vfio_pci_core_write(core_vdev, buf, new_count, ppos);
1228 static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev,
1235 ret = hisi_acc_pci_rw_access_check(core_vdev, count, ppos, &new_count);
1239 return vfio_pci_core_read(core_vdev, buf, new_count, ppos);
1242 static long hisi_acc_vfio_pci_ioctl(struct vfio_device *core_vdev, unsigned int cmd,
1247 container_of(core_vdev, struct vfio_pci_core_device, vdev);
1278 return vfio_pci_core_ioctl(core_vdev, cmd, arg);
1281 static int hisi_acc_vfio_pci_open_device(struct vfio_device *core_vdev)
1283 struct hisi_acc_vf_core_device *hisi_acc_vdev = container_of(core_vdev,
1292 if (core_vdev->mig_ops) {
1305 static void hisi_acc_vfio_pci_close_device(struct vfio_device *core_vdev)
1307 struct hisi_acc_vf_core_device *hisi_acc_vdev = container_of(core_vdev,
1312 vfio_pci_core_close_device(core_vdev);
1321 static int hisi_acc_vfio_pci_migrn_init_dev(struct vfio_device *core_vdev)
1323 struct hisi_acc_vf_core_device *hisi_acc_vdev = container_of(core_vdev,
1325 struct pci_dev *pdev = to_pci_dev(core_vdev->dev);
1333 core_vdev->migration_flags = VFIO_MIGRATION_STOP_COPY | VFIO_MIGRATION_PRE_COPY;
1334 core_vdev->mig_ops = &hisi_acc_vfio_pci_migrn_state_ops;
1336 return vfio_pci_core_init_dev(core_vdev);