Lines Matching refs:arg
16 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
29 if (copy_to_user(arg, &l, sizeof(l))) in ceph_ioctl_get_layout()
63 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
73 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout()
135 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
144 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout_policy()
178 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument
193 if (copy_from_user(&dl, arg, sizeof(dl))) in ceph_ioctl_get_dataloc()
236 if (copy_to_user(arg, &dl, sizeof(dl))) in ceph_ioctl_get_dataloc()
271 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ceph_ioctl() argument
273 dout("ioctl file %p cmd %u arg %lu\n", file, cmd, arg); in ceph_ioctl()
276 return ceph_ioctl_get_layout(file, (void __user *)arg); in ceph_ioctl()
279 return ceph_ioctl_set_layout(file, (void __user *)arg); in ceph_ioctl()
282 return ceph_ioctl_set_layout_policy(file, (void __user *)arg); in ceph_ioctl()
285 return ceph_ioctl_get_dataloc(file, (void __user *)arg); in ceph_ioctl()