Lines Matching refs:argp
51 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian() argument
58 if (copy_from_user(&s, argp, sizeof(s))) in vhost_set_vring_endian()
71 int __user *argp) in vhost_get_vring_endian() argument
78 if (copy_to_user(argp, &s, sizeof(s))) in vhost_get_vring_endian()
98 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian() argument
104 int __user *argp) in vhost_get_vring_endian() argument
733 long vhost_vring_ioctl(struct vhost_dev *d, int ioctl, void __user *argp) in vhost_vring_ioctl() argument
738 u32 __user *idxp = argp; in vhost_vring_ioctl()
764 if (copy_from_user(&s, argp, sizeof s)) { in vhost_vring_ioctl()
781 if (copy_from_user(&s, argp, sizeof s)) { in vhost_vring_ioctl()
796 if (copy_to_user(argp, &s, sizeof s)) in vhost_vring_ioctl()
800 if (copy_from_user(&a, argp, sizeof a)) { in vhost_vring_ioctl()
856 if (copy_from_user(&f, argp, sizeof f)) { in vhost_vring_ioctl()
872 if (copy_from_user(&f, argp, sizeof f)) { in vhost_vring_ioctl()
891 if (copy_from_user(&f, argp, sizeof f)) { in vhost_vring_ioctl()
910 r = vhost_set_vring_endian(vq, argp); in vhost_vring_ioctl()
913 r = vhost_get_vring_endian(vq, idx, argp); in vhost_vring_ioctl()
939 long vhost_dev_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *argp) in vhost_dev_ioctl() argument
960 r = vhost_set_memory(d, argp); in vhost_dev_ioctl()
963 if (copy_from_user(&p, argp, sizeof p)) { in vhost_dev_ioctl()
985 r = get_user(fd, (int __user *)argp); in vhost_dev_ioctl()