Lines Matching refs:argp

244 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp)
252 if (copy_to_user(argp, &device_id, sizeof(device_id)))
452 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp)
460 if (copy_to_user(argp, &num, sizeof(num)))
474 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp)
482 if (copy_from_user(&fd, argp, sizeof(fd)))
503 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp)
510 if (copy_to_user(argp, &range, sizeof(range)))
515 static long vhost_vdpa_get_config_size(struct vhost_vdpa *v, u32 __user *argp)
523 if (copy_to_user(argp, &size, sizeof(size)))
529 static long vhost_vdpa_get_vqs_count(struct vhost_vdpa *v, u32 __user *argp)
533 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs)))
571 void __user *argp)
582 r = get_user(idx, (u32 __user *)argp);
594 if (copy_from_user(&s, argp, sizeof(s)))
605 else if (copy_to_user(argp, &s, sizeof(s)))
609 if (copy_from_user(&s, argp, sizeof(s)))
632 r = vhost_vring_ioctl(&v->vdev, cmd, argp);
684 void __user *argp = (void __user *)arg;
685 u64 __user *featurep = argp;
711 r = vhost_vdpa_get_device_id(v, argp);
714 r = vhost_vdpa_get_status(v, argp);
717 r = vhost_vdpa_set_status(v, argp);
720 r = vhost_vdpa_get_config(v, argp);
723 r = vhost_vdpa_set_config(v, argp);
726 r = vhost_vdpa_get_features(v, argp);
729 r = vhost_vdpa_set_features(v, argp);
732 r = vhost_vdpa_get_vring_num(v, argp);
735 if (copy_to_user(argp, &v->vdpa->ngroups,
740 if (copy_to_user(argp, &v->vdpa->nas, sizeof(v->vdpa->nas)))
748 r = vhost_vdpa_set_config_call(v, argp);
761 r = vhost_vdpa_get_iova_range(v, argp);
764 r = vhost_vdpa_get_config_size(v, argp);
767 r = vhost_vdpa_get_vqs_count(v, argp);
776 r = vhost_dev_ioctl(&v->vdev, cmd, argp);
778 r = vhost_vdpa_vring_ioctl(v, cmd, argp);