Lines Matching refs:argp
130 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp) in vhost_vdpa_get_device_id() argument
138 if (copy_to_user(argp, &device_id, sizeof(device_id))) in vhost_vdpa_get_device_id()
302 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) in vhost_vdpa_get_vring_num() argument
310 if (copy_to_user(argp, &num, sizeof(num))) in vhost_vdpa_get_vring_num()
324 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_set_config_call() argument
332 if (copy_from_user(&fd, argp, sizeof(fd))) in vhost_vdpa_set_config_call()
353 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_iova_range() argument
360 if (copy_to_user(argp, &range, sizeof(range))) in vhost_vdpa_get_iova_range()
366 void __user *argp) in vhost_vdpa_vring_ioctl() argument
377 r = get_user(idx, (u32 __user *)argp); in vhost_vdpa_vring_ioctl()
389 if (copy_from_user(&s, argp, sizeof(s))) in vhost_vdpa_vring_ioctl()
402 r = vhost_vring_ioctl(&v->vdev, cmd, argp); in vhost_vdpa_vring_ioctl()
446 void __user *argp = (void __user *)arg; in vhost_vdpa_unlocked_ioctl() local
447 u64 __user *featurep = argp; in vhost_vdpa_unlocked_ioctl()
464 r = vhost_vdpa_get_device_id(v, argp); in vhost_vdpa_unlocked_ioctl()
467 r = vhost_vdpa_get_status(v, argp); in vhost_vdpa_unlocked_ioctl()
470 r = vhost_vdpa_set_status(v, argp); in vhost_vdpa_unlocked_ioctl()
473 r = vhost_vdpa_get_config(v, argp); in vhost_vdpa_unlocked_ioctl()
476 r = vhost_vdpa_set_config(v, argp); in vhost_vdpa_unlocked_ioctl()
479 r = vhost_vdpa_get_features(v, argp); in vhost_vdpa_unlocked_ioctl()
482 r = vhost_vdpa_set_features(v, argp); in vhost_vdpa_unlocked_ioctl()
485 r = vhost_vdpa_get_vring_num(v, argp); in vhost_vdpa_unlocked_ioctl()
492 r = vhost_vdpa_set_config_call(v, argp); in vhost_vdpa_unlocked_ioctl()
500 r = vhost_vdpa_get_iova_range(v, argp); in vhost_vdpa_unlocked_ioctl()
503 r = vhost_dev_ioctl(&v->vdev, cmd, argp); in vhost_vdpa_unlocked_ioctl()
505 r = vhost_vdpa_vring_ioctl(v, cmd, argp); in vhost_vdpa_unlocked_ioctl()