Lines Matching refs:mig
813 struct vfio_device_feature_mig_state *mig) in vfio_ioct_mig_return_fd() argument
824 mig->data_fd = fd; in vfio_ioct_mig_return_fd()
825 if (copy_to_user(arg, mig, sizeof(*mig))) { in vfio_ioct_mig_return_fd()
846 struct vfio_device_feature_mig_state mig; in vfio_ioctl_device_feature_mig_device_state() local
856 sizeof(mig)); in vfio_ioctl_device_feature_mig_device_state()
860 if (copy_from_user(&mig, arg, minsz)) in vfio_ioctl_device_feature_mig_device_state()
870 mig.device_state = curr_state; in vfio_ioctl_device_feature_mig_device_state()
875 filp = device->mig_ops->migration_set_state(device, mig.device_state); in vfio_ioctl_device_feature_mig_device_state()
879 return vfio_ioct_mig_return_fd(filp, arg, &mig); in vfio_ioctl_device_feature_mig_device_state()
881 mig.data_fd = -1; in vfio_ioctl_device_feature_mig_device_state()
882 if (copy_to_user(arg, &mig, sizeof(mig))) in vfio_ioctl_device_feature_mig_device_state()
921 struct vfio_device_feature_migration mig = { in vfio_ioctl_device_feature_migration() local
930 sizeof(mig)); in vfio_ioctl_device_feature_migration()
933 if (copy_to_user(arg, &mig, sizeof(mig))) in vfio_ioctl_device_feature_migration()