Lines Matching refs:argp
132 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() argument
136 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags()
143 void __user *argp) in nilfs_ioctl_setflags() argument
152 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags()
197 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument
199 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion()
222 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
237 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode()
277 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
292 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint()
356 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
368 if (copy_to_user(argp, &cpstat, sizeof(cpstat))) in nilfs_ioctl_get_cpstat()
423 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
435 if (copy_to_user(argp, &sustat, sizeof(sustat))) in nilfs_ioctl_get_sustat()
532 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument
538 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_get_bdescs()
549 if (copy_to_user(argp, &argv, sizeof(argv))) in nilfs_ioctl_get_bdescs()
876 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument
900 if (copy_from_user(argv, argp, sizeof(argv))) in nilfs_ioctl_clean_segments()
1014 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument
1029 if (argp != NULL) { in nilfs_ioctl_sync()
1033 if (copy_to_user(argp, &cno, sizeof(cno))) in nilfs_ioctl_sync()
1048 void __user *argp) in nilfs_ioctl_resize() argument
1061 if (copy_from_user(&newsize, argp, sizeof(newsize))) in nilfs_ioctl_resize()
1083 static int nilfs_ioctl_trim_fs(struct inode *inode, void __user *argp) in nilfs_ioctl_trim_fs() argument
1096 if (copy_from_user(&range, argp, sizeof(range))) in nilfs_ioctl_trim_fs()
1108 if (copy_to_user(argp, &range, sizeof(range))) in nilfs_ioctl_trim_fs()
1125 static int nilfs_ioctl_set_alloc_range(struct inode *inode, void __user *argp) in nilfs_ioctl_set_alloc_range() argument
1137 if (copy_from_user(range, argp, sizeof(__u64[2]))) in nilfs_ioctl_set_alloc_range()
1180 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument
1191 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_get_info()
1201 if (copy_to_user(argp, &argv, sizeof(argv))) in nilfs_ioctl_get_info()
1231 unsigned int cmd, void __user *argp) in nilfs_ioctl_set_suinfo() argument
1249 if (copy_from_user(&argv, argp, sizeof(argv))) in nilfs_ioctl_set_suinfo()
1298 void __user *argp = (void __user *)arg; in nilfs_ioctl() local
1302 return nilfs_ioctl_getflags(inode, argp); in nilfs_ioctl()
1304 return nilfs_ioctl_setflags(inode, filp, argp); in nilfs_ioctl()
1306 return nilfs_ioctl_getversion(inode, argp); in nilfs_ioctl()
1308 return nilfs_ioctl_change_cpmode(inode, filp, cmd, argp); in nilfs_ioctl()
1310 return nilfs_ioctl_delete_checkpoint(inode, filp, cmd, argp); in nilfs_ioctl()
1312 return nilfs_ioctl_get_info(inode, filp, cmd, argp, in nilfs_ioctl()
1316 return nilfs_ioctl_get_cpstat(inode, filp, cmd, argp); in nilfs_ioctl()
1318 return nilfs_ioctl_get_info(inode, filp, cmd, argp, in nilfs_ioctl()
1322 return nilfs_ioctl_set_suinfo(inode, filp, cmd, argp); in nilfs_ioctl()
1324 return nilfs_ioctl_get_sustat(inode, filp, cmd, argp); in nilfs_ioctl()
1326 return nilfs_ioctl_get_info(inode, filp, cmd, argp, in nilfs_ioctl()
1330 return nilfs_ioctl_get_bdescs(inode, filp, cmd, argp); in nilfs_ioctl()
1332 return nilfs_ioctl_clean_segments(inode, filp, cmd, argp); in nilfs_ioctl()
1334 return nilfs_ioctl_sync(inode, filp, cmd, argp); in nilfs_ioctl()
1336 return nilfs_ioctl_resize(inode, filp, argp); in nilfs_ioctl()
1338 return nilfs_ioctl_set_alloc_range(inode, argp); in nilfs_ioctl()
1340 return nilfs_ioctl_trim_fs(inode, argp); in nilfs_ioctl()