• Home
  • Raw
  • Download

Lines Matching refs:arg

1810 static int f2fs_ioc_getflags(struct file *filp, unsigned long arg)  in f2fs_ioc_getflags()  argument
1827 return put_user(fsflags, (int __user *)arg); in f2fs_ioc_getflags()
1830 static int f2fs_ioc_setflags(struct file *filp, unsigned long arg) in f2fs_ioc_setflags() argument
1841 if (get_user(fsflags, (int __user *)arg)) in f2fs_ioc_setflags()
1871 static int f2fs_ioc_getversion(struct file *filp, unsigned long arg) in f2fs_ioc_getversion() argument
1875 return put_user(inode->i_generation, (int __user *)arg); in f2fs_ioc_getversion()
2083 static int f2fs_ioc_shutdown(struct file *filp, unsigned long arg) in f2fs_ioc_shutdown() argument
2094 if (get_user(in, (__u32 __user *)arg)) in f2fs_ioc_shutdown()
2161 static int f2fs_ioc_fitrim(struct file *filp, unsigned long arg) in f2fs_ioc_fitrim() argument
2175 if (copy_from_user(&range, (struct fstrim_range __user *)arg, in f2fs_ioc_fitrim()
2190 if (copy_to_user((struct fstrim_range __user *)arg, &range, in f2fs_ioc_fitrim()
2207 static int f2fs_ioc_set_encryption_policy(struct file *filp, unsigned long arg) in f2fs_ioc_set_encryption_policy() argument
2216 return fscrypt_ioctl_set_policy(filp, (const void __user *)arg); in f2fs_ioc_set_encryption_policy()
2219 static int f2fs_ioc_get_encryption_policy(struct file *filp, unsigned long arg) in f2fs_ioc_get_encryption_policy() argument
2223 return fscrypt_ioctl_get_policy(filp, (void __user *)arg); in f2fs_ioc_get_encryption_policy()
2226 static int f2fs_ioc_get_encryption_pwsalt(struct file *filp, unsigned long arg) in f2fs_ioc_get_encryption_pwsalt() argument
2254 if (copy_to_user((__u8 __user *)arg, sbi->raw_super->encrypt_pw_salt, in f2fs_ioc_get_encryption_pwsalt()
2264 unsigned long arg) in f2fs_ioc_get_encryption_policy_ex() argument
2269 return fscrypt_ioctl_get_policy_ex(filp, (void __user *)arg); in f2fs_ioc_get_encryption_policy_ex()
2272 static int f2fs_ioc_add_encryption_key(struct file *filp, unsigned long arg) in f2fs_ioc_add_encryption_key() argument
2277 return fscrypt_ioctl_add_key(filp, (void __user *)arg); in f2fs_ioc_add_encryption_key()
2280 static int f2fs_ioc_remove_encryption_key(struct file *filp, unsigned long arg) in f2fs_ioc_remove_encryption_key() argument
2285 return fscrypt_ioctl_remove_key(filp, (void __user *)arg); in f2fs_ioc_remove_encryption_key()
2289 unsigned long arg) in f2fs_ioc_remove_encryption_key_all_users() argument
2294 return fscrypt_ioctl_remove_key_all_users(filp, (void __user *)arg); in f2fs_ioc_remove_encryption_key_all_users()
2298 unsigned long arg) in f2fs_ioc_get_encryption_key_status() argument
2303 return fscrypt_ioctl_get_key_status(filp, (void __user *)arg); in f2fs_ioc_get_encryption_key_status()
2306 static int f2fs_ioc_gc(struct file *filp, unsigned long arg) in f2fs_ioc_gc() argument
2316 if (get_user(sync, (__u32 __user *)arg)) in f2fs_ioc_gc()
2341 static int f2fs_ioc_gc_range(struct file *filp, unsigned long arg) in f2fs_ioc_gc_range() argument
2352 if (copy_from_user(&range, (struct f2fs_gc_range __user *)arg, in f2fs_ioc_gc_range()
2387 static int f2fs_ioc_write_checkpoint(struct file *filp, unsigned long arg) in f2fs_ioc_write_checkpoint() argument
2562 static int f2fs_ioc_defragment(struct file *filp, unsigned long arg) in f2fs_ioc_defragment() argument
2578 if (copy_from_user(&range, (struct f2fs_defragment __user *)arg, in f2fs_ioc_defragment()
2601 if (copy_to_user((struct f2fs_defragment __user *)arg, &range, in f2fs_ioc_defragment()
2720 static int f2fs_ioc_move_range(struct file *filp, unsigned long arg) in f2fs_ioc_move_range() argument
2730 if (copy_from_user(&range, (struct f2fs_move_range __user *)arg, in f2fs_ioc_move_range()
2754 if (copy_to_user((struct f2fs_move_range __user *)arg, in f2fs_ioc_move_range()
2762 static int f2fs_ioc_flush_device(struct file *filp, unsigned long arg) in f2fs_ioc_flush_device() argument
2781 if (copy_from_user(&range, (struct f2fs_flush_device __user *)arg, in f2fs_ioc_flush_device()
2825 static int f2fs_ioc_get_features(struct file *filp, unsigned long arg) in f2fs_ioc_get_features() argument
2833 return put_user(sb_feature, (u32 __user *)arg); in f2fs_ioc_get_features()
2989 static int f2fs_ioc_fsgetxattr(struct file *filp, unsigned long arg) in f2fs_ioc_fsgetxattr() argument
2996 if (copy_to_user((struct fsxattr __user *)arg, &fa, sizeof(fa))) in f2fs_ioc_fsgetxattr()
3001 static int f2fs_ioc_fssetxattr(struct file *filp, unsigned long arg) in f2fs_ioc_fssetxattr() argument
3008 if (copy_from_user(&fa, (struct fsxattr __user *)arg, sizeof(fa))) in f2fs_ioc_fssetxattr()
3065 static int f2fs_ioc_set_pin_file(struct file *filp, unsigned long arg) in f2fs_ioc_set_pin_file() argument
3071 if (get_user(pin, (__u32 __user *)arg)) in f2fs_ioc_set_pin_file()
3115 static int f2fs_ioc_get_pin_file(struct file *filp, unsigned long arg) in f2fs_ioc_get_pin_file() argument
3122 return put_user(pin, (u32 __user *)arg); in f2fs_ioc_get_pin_file()
3158 static int f2fs_ioc_precache_extents(struct file *filp, unsigned long arg) in f2fs_ioc_precache_extents() argument
3163 static int f2fs_ioc_resize_fs(struct file *filp, unsigned long arg) in f2fs_ioc_resize_fs() argument
3175 if (copy_from_user(&block_count, (void __user *)arg, in f2fs_ioc_resize_fs()
3184 static int f2fs_ioc_enable_verity(struct file *filp, unsigned long arg) in f2fs_ioc_enable_verity() argument
3197 return fsverity_ioctl_enable(filp, (const void __user *)arg); in f2fs_ioc_enable_verity()
3200 static int f2fs_ioc_measure_verity(struct file *filp, unsigned long arg) in f2fs_ioc_measure_verity() argument
3205 return fsverity_ioctl_measure(filp, (void __user *)arg); in f2fs_ioc_measure_verity()
3208 static int f2fs_get_volume_name(struct file *filp, unsigned long arg) in f2fs_get_volume_name() argument
3226 if (copy_to_user((char __user *)arg, vbuf, in f2fs_get_volume_name()
3234 static int f2fs_set_volume_name(struct file *filp, unsigned long arg) in f2fs_set_volume_name() argument
3244 vbuf = strndup_user((const char __user *)arg, FSLABEL_MAX); in f2fs_set_volume_name()
3270 long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in f2fs_ioctl() argument
3279 return f2fs_ioc_getflags(filp, arg); in f2fs_ioctl()
3281 return f2fs_ioc_setflags(filp, arg); in f2fs_ioctl()
3283 return f2fs_ioc_getversion(filp, arg); in f2fs_ioctl()
3295 return f2fs_ioc_shutdown(filp, arg); in f2fs_ioctl()
3297 return f2fs_ioc_fitrim(filp, arg); in f2fs_ioctl()
3299 return f2fs_ioc_set_encryption_policy(filp, arg); in f2fs_ioctl()
3301 return f2fs_ioc_get_encryption_policy(filp, arg); in f2fs_ioctl()
3303 return f2fs_ioc_get_encryption_pwsalt(filp, arg); in f2fs_ioctl()
3305 return f2fs_ioc_get_encryption_policy_ex(filp, arg); in f2fs_ioctl()
3307 return f2fs_ioc_add_encryption_key(filp, arg); in f2fs_ioctl()
3309 return f2fs_ioc_remove_encryption_key(filp, arg); in f2fs_ioctl()
3311 return f2fs_ioc_remove_encryption_key_all_users(filp, arg); in f2fs_ioctl()
3313 return f2fs_ioc_get_encryption_key_status(filp, arg); in f2fs_ioctl()
3315 return f2fs_ioc_gc(filp, arg); in f2fs_ioctl()
3317 return f2fs_ioc_gc_range(filp, arg); in f2fs_ioctl()
3319 return f2fs_ioc_write_checkpoint(filp, arg); in f2fs_ioctl()
3321 return f2fs_ioc_defragment(filp, arg); in f2fs_ioctl()
3323 return f2fs_ioc_move_range(filp, arg); in f2fs_ioctl()
3325 return f2fs_ioc_flush_device(filp, arg); in f2fs_ioctl()
3327 return f2fs_ioc_get_features(filp, arg); in f2fs_ioctl()
3329 return f2fs_ioc_fsgetxattr(filp, arg); in f2fs_ioctl()
3331 return f2fs_ioc_fssetxattr(filp, arg); in f2fs_ioctl()
3333 return f2fs_ioc_get_pin_file(filp, arg); in f2fs_ioctl()
3335 return f2fs_ioc_set_pin_file(filp, arg); in f2fs_ioctl()
3337 return f2fs_ioc_precache_extents(filp, arg); in f2fs_ioctl()
3339 return f2fs_ioc_resize_fs(filp, arg); in f2fs_ioctl()
3341 return f2fs_ioc_enable_verity(filp, arg); in f2fs_ioctl()
3343 return f2fs_ioc_measure_verity(filp, arg); in f2fs_ioctl()
3345 return f2fs_get_volume_name(filp, arg); in f2fs_ioctl()
3347 return f2fs_set_volume_name(filp, arg); in f2fs_ioctl()
3424 long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in f2fs_compat_ioctl() argument
3471 return f2fs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in f2fs_compat_ioctl()