Lines Matching refs:arg
17 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
30 if (copy_to_user(arg, &l, sizeof(l))) in ceph_ioctl_get_layout()
64 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
74 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout()
136 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
145 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout_policy()
179 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument
194 if (copy_from_user(&dl, arg, sizeof(dl))) in ceph_ioctl_get_dataloc()
235 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()