Lines Matching refs:argp

273 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp)  in vhost_vdpa_get_device_id()  argument
281 if (copy_to_user(argp, &device_id, sizeof(device_id))) in vhost_vdpa_get_device_id()
498 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) in vhost_vdpa_get_vring_num() argument
506 if (copy_to_user(argp, &num, sizeof(num))) in vhost_vdpa_get_vring_num()
520 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_set_config_call() argument
528 if (copy_from_user(&fd, argp, sizeof(fd))) in vhost_vdpa_set_config_call()
549 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_iova_range() argument
556 if (copy_to_user(argp, &range, sizeof(range))) in vhost_vdpa_get_iova_range()
561 static long vhost_vdpa_get_config_size(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_config_size() argument
569 if (copy_to_user(argp, &size, sizeof(size))) in vhost_vdpa_get_config_size()
575 static long vhost_vdpa_get_vqs_count(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_vqs_count() argument
579 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
633 void __user *argp) in vhost_vdpa_vring_ioctl() argument
644 r = get_user(idx, (u32 __user *)argp); in vhost_vdpa_vring_ioctl()
656 if (copy_from_user(&s, argp, sizeof(s))) in vhost_vdpa_vring_ioctl()
667 else if (copy_to_user(argp, &s, sizeof(s))) in vhost_vdpa_vring_ioctl()
677 else if (copy_to_user(argp, &s, sizeof(s))) in vhost_vdpa_vring_ioctl()
681 if (copy_from_user(&s, argp, sizeof(s))) in vhost_vdpa_vring_ioctl()
695 if (copy_to_user(argp, &s, sizeof(s))) in vhost_vdpa_vring_ioctl()
721 r = vhost_vring_ioctl(&v->vdev, cmd, argp); in vhost_vdpa_vring_ioctl()
781 void __user *argp = (void __user *)arg; in vhost_vdpa_unlocked_ioctl() local
782 u64 __user *featurep = argp; in vhost_vdpa_unlocked_ioctl()
819 r = vhost_vdpa_get_device_id(v, argp); in vhost_vdpa_unlocked_ioctl()
822 r = vhost_vdpa_get_status(v, argp); in vhost_vdpa_unlocked_ioctl()
825 r = vhost_vdpa_set_status(v, argp); in vhost_vdpa_unlocked_ioctl()
828 r = vhost_vdpa_get_config(v, argp); in vhost_vdpa_unlocked_ioctl()
831 r = vhost_vdpa_set_config(v, argp); in vhost_vdpa_unlocked_ioctl()
834 r = vhost_vdpa_get_features(v, argp); in vhost_vdpa_unlocked_ioctl()
837 r = vhost_vdpa_set_features(v, argp); in vhost_vdpa_unlocked_ioctl()
840 r = vhost_vdpa_get_vring_num(v, argp); in vhost_vdpa_unlocked_ioctl()
843 if (copy_to_user(argp, &v->vdpa->ngroups, in vhost_vdpa_unlocked_ioctl()
848 if (copy_to_user(argp, &v->vdpa->nas, sizeof(v->vdpa->nas))) in vhost_vdpa_unlocked_ioctl()
856 r = vhost_vdpa_set_config_call(v, argp); in vhost_vdpa_unlocked_ioctl()
873 r = vhost_vdpa_get_iova_range(v, argp); in vhost_vdpa_unlocked_ioctl()
876 r = vhost_vdpa_get_config_size(v, argp); in vhost_vdpa_unlocked_ioctl()
879 r = vhost_vdpa_get_vqs_count(v, argp); in vhost_vdpa_unlocked_ioctl()
888 r = vhost_dev_ioctl(&v->vdev, cmd, argp); in vhost_vdpa_unlocked_ioctl()
890 r = vhost_vdpa_vring_ioctl(v, cmd, argp); in vhost_vdpa_unlocked_ioctl()