Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 88) sorted by relevance

1234

/fs/
Dcompat_ioctl.c118 static int w_long(unsigned int fd, unsigned int cmd, in w_long() argument
126 err = sys_ioctl(fd, cmd, (unsigned long)&val); in w_long()
142 static int do_video_get_event(unsigned int fd, unsigned int cmd, in do_video_get_event() argument
150 err = sys_ioctl(fd, cmd, (unsigned long) &kevent); in do_video_get_event()
172 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, in do_video_stillpicture() argument
193 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_stillpicture()
203 static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, in do_video_set_spu_palette() argument
221 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_set_spu_palette()
279 static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, in sg_ioctl_trans() argument
292 return sys_ioctl(fd, cmd, (unsigned long)sgio32); in sg_ioctl_trans()
[all …]
Dfcntl.c247 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument
252 switch (cmd) { in do_fcntl()
277 err = fcntl_getlk(filp, cmd, (struct flock __user *) arg); in do_fcntl()
287 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
335 err = pipe_fcntl(filp, cmd, arg); in do_fcntl()
339 err = shmem_fcntl(filp, cmd, arg); in do_fcntl()
347 static int check_fcntl_cmd(unsigned cmd) in check_fcntl_cmd() argument
349 switch (cmd) { in check_fcntl_cmd()
360 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
369 if (!check_fcntl_cmd(cmd)) in SYSCALL_DEFINE3()
[all …]
Dioctl.c35 static long vfs_ioctl(struct file *filp, unsigned int cmd, in vfs_ioctl() argument
43 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl()
454 static int file_ioctl(struct file *filp, unsigned int cmd, in file_ioctl() argument
460 switch (cmd) { in file_ioctl()
470 return vfs_ioctl(filp, cmd, arg); in file_ioctl()
555 int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, in do_vfs_ioctl() argument
562 switch (cmd) { in do_vfs_ioctl()
605 error = file_ioctl(filp, cmd, arg); in do_vfs_ioctl()
607 error = vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl()
613 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
[all …]
Dlocks.c358 static inline int flock_translate_cmd(int cmd) { in flock_translate_cmd() argument
359 if (cmd & LOCK_MAND) in flock_translate_cmd()
360 return cmd & (LOCK_MAND | LOCK_RW); in flock_translate_cmd()
361 switch (cmd) { in flock_translate_cmd()
374 flock_make_lock(struct file *filp, unsigned int cmd) in flock_make_lock() argument
377 int type = flock_translate_cmd(cmd); in flock_make_lock()
1924 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument
1935 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2()
1936 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2()
1937 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2()
[all …]
/fs/ext2/
Dioctl.c20 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext2_ioctl() argument
28 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext2_ioctl()
30 switch (cmd) { in ext2_ioctl()
167 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument
170 switch (cmd) { in ext2_compat_ioctl()
172 cmd = EXT2_IOC_GETFLAGS; in ext2_compat_ioctl()
175 cmd = EXT2_IOC_SETFLAGS; in ext2_compat_ioctl()
178 cmd = EXT2_IOC_GETVERSION; in ext2_compat_ioctl()
181 cmd = EXT2_IOC_SETVERSION; in ext2_compat_ioctl()
186 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
/fs/reiserfs/
Dioctl.c23 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument
31 switch (cmd) { in reiserfs_ioctl()
133 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument
140 switch (cmd) { in reiserfs_compat_ioctl()
142 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl()
145 cmd = REISERFS_IOC_GETFLAGS; in reiserfs_compat_ioctl()
148 cmd = REISERFS_IOC_SETFLAGS; in reiserfs_compat_ioctl()
151 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl()
154 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl()
160 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
/fs/autofs4/
Ddev-ioctl.c71 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument
81 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version()
126 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
130 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
133 "supplied for cmd(0x%08x)", cmd); in validate_dev_ioctl()
142 cmd); in validate_dev_ioctl()
149 cmd); in validate_dev_ioctl()
580 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument
582 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument
585 int cmd; in lookup_dev_ioctl() member
[all …]
Droot.c852 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl_unlocked() argument
858 cmd,arg,sbi,task_pgrp_nr(current)); in autofs4_root_ioctl_unlocked()
860 if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || in autofs4_root_ioctl_unlocked()
861 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs4_root_ioctl_unlocked()
867 switch(cmd) { in autofs4_root_ioctl_unlocked()
902 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl() argument
905 return autofs4_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs4_root_ioctl()
910 unsigned int cmd, unsigned long arg) in autofs4_root_compat_ioctl() argument
915 if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL) in autofs4_root_compat_ioctl()
916 ret = autofs4_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs4_root_compat_ioctl()
[all …]
/fs/ocfs2/
Dlocks.c39 int cmd, struct file_lock *fl) in ocfs2_do_flock() argument
47 if (!IS_SETLKW(cmd)) in ocfs2_do_flock()
97 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
113 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
128 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
130 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
133 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
143 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
Dioctl.h13 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
14 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg);
/fs/9p/
Dvfs_file.c131 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument
142 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
150 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument
190 if (IS_SETLKW(cmd)) in v9fs_file_do_lock()
206 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock()
321 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument
327 filp, cmd, fl, filp); in v9fs_file_lock_dotl()
333 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
338 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl()
339 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl()
[all …]
/fs/nilfs2/
Dioctl.c222 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
277 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
356 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
423 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
532 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument
544 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs()
876 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument
1014 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument
1180 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument
1197 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
[all …]
/fs/xfs/
Dxfs_ioctl32.c40 #define _NATIVE_IOC(cmd, type) \ argument
41 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
244 unsigned int cmd, in xfs_compat_ioc_bulkstat() argument
283 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_bulkstat()
286 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_bulkstat()
291 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_bulkstat()
534 unsigned cmd, in xfs_file_compat_ioctl() argument
549 switch (cmd) { in xfs_file_compat_ioctl()
567 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
582 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
[all …]
Dxfs_ioctl.h27 unsigned int cmd,
36 unsigned int cmd,
80 unsigned int cmd,
86 unsigned int cmd,
Dxfs_ioctl.c66 unsigned int cmd, in xfs_find_handle() argument
77 if (cmd == XFS_IOC_FD_TO_HANDLE) { in xfs_find_handle()
107 if (cmd == XFS_IOC_PATH_TO_FSHANDLE) { in xfs_find_handle()
131 if (cmd == XFS_IOC_FD_TO_HANDLE) in xfs_find_handle()
624 unsigned int cmd, in xfs_ioc_space() argument
686 switch (cmd) { in xfs_ioc_space()
710 switch (cmd) { in xfs_ioc_space()
762 unsigned int cmd, in xfs_ioc_bulkstat() argument
792 if (cmd == XFS_IOC_FSINUMBERS) in xfs_ioc_bulkstat()
795 else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) in xfs_ioc_bulkstat()
[all …]
/fs/jfs/
Dioctl.c59 long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_ioctl() argument
65 switch (cmd) { in jfs_ioctl()
170 long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_compat_ioctl() argument
176 switch (cmd) { in jfs_compat_ioctl()
178 cmd = JFS_IOC_GETFLAGS; in jfs_compat_ioctl()
181 cmd = JFS_IOC_SETFLAGS; in jfs_compat_ioctl()
184 return jfs_ioctl(filp, cmd, arg); in jfs_compat_ioctl()
/fs/ubifs/
Dioctl.c147 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument
152 switch (cmd) { in ubifs_ioctl()
191 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument
193 switch (cmd) { in ubifs_compat_ioctl()
195 cmd = FS_IOC_GETFLAGS; in ubifs_compat_ioctl()
198 cmd = FS_IOC_SETFLAGS; in ubifs_compat_ioctl()
203 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
/fs/quota/
Dcompat.c43 asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, in sys32_quotactl() argument
55 cmds = cmd >> SUBCMDSHIFT; in sys32_quotactl()
61 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl()
77 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl()
82 ret = sys_quotactl(cmd, special, id, fsqstat); in sys32_quotactl()
115 ret = sys_quotactl(cmd, special, id, addr); in sys32_quotactl()
Dquota.c22 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
25 switch (cmd) { in check_quotactl_permission()
46 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
83 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument
641 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument
646 if (type >= (XQM_COMMAND(cmd) ? XQM_MAXQUOTAS : MAXQUOTAS)) in do_quotactl()
658 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl()
662 switch (cmd) { in do_quotactl()
664 return quota_quotaon(sb, type, cmd, id, path); in do_quotactl()
708 static int quotactl_cmd_write(int cmd) in quotactl_cmd_write() argument
[all …]
/fs/ext4/
Dioctl.c205 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument
212 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in ext4_ioctl()
214 switch (cmd) { in ext4_ioctl()
596 int flags = cmd == FIDTRIM ? BLKDEV_DISCARD_SECURE : 0; in ext4_ioctl()
721 long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext4_compat_ioctl() argument
724 switch (cmd) { in ext4_compat_ioctl()
726 cmd = EXT4_IOC_GETFLAGS; in ext4_compat_ioctl()
729 cmd = EXT4_IOC_SETFLAGS; in ext4_compat_ioctl()
732 cmd = EXT4_IOC_GETVERSION; in ext4_compat_ioctl()
735 cmd = EXT4_IOC_SETVERSION; in ext4_compat_ioctl()
[all …]
/fs/nfs/
Dfile.c711 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument
731 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk()
745 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument
774 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk()
786 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument
804 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk()
831 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument
856 if (IS_GETLK(cmd)) in nfs_lock()
857 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock()
859 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock()
[all …]
/fs/ncpfs/
Dioctl.c257 static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg) in __ncp_ioctl() argument
265 switch (cmd) { in __ncp_ioctl()
271 if (cmd == NCP_IOC_NCPREQUEST_32) { in __ncp_ioctl()
525 switch (rqdata.cmd) { in __ncp_ioctl()
550 if (rqdata.cmd == NCP_LOCK_CLEAR) in __ncp_ioctl()
562 switch (rqdata.cmd) in __ncp_ioctl()
649 if (cmd == NCP_IOC_SETOBJECTNAME_32) { in __ncp_ioctl()
696 if (cmd == NCP_IOC_GETPRIVATEDATA_32) { in __ncp_ioctl()
722 if (cmd == NCP_IOC_GETPRIVATEDATA_32) { in __ncp_ioctl()
747 if (cmd == NCP_IOC_SETPRIVATEDATA_32) { in __ncp_ioctl()
[all …]
/fs/ceph/
Dlocks.c36 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument
45 if (operation != CEPH_MDS_OP_SETFILELOCK || cmd == CEPH_LOCK_UNLOCK) in ceph_lock_message()
69 req->r_args.filelock_change.type = cmd; in ceph_lock_message()
157 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument
173 if (IS_GETLK(cmd)) in ceph_lock()
175 else if (IS_SETLKW(cmd)) in ceph_lock()
204 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() argument
218 if (IS_SETLKW(cmd)) in ceph_flock()
/fs/coda/
Dpioctl.c28 static long coda_pioctl(struct file *filp, unsigned int cmd,
49 static long coda_pioctl(struct file *filp, unsigned int cmd, in coda_pioctl() argument
86 error = venus_pioctl(inode->i_sb, &(cnp->c_fid), cmd, &data); in coda_pioctl()
/fs/ecryptfs/
Dfile.c350 ecryptfs_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_unlocked_ioctl() argument
358 switch (cmd) { in ecryptfs_unlocked_ioctl()
364 rc = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg); in ecryptfs_unlocked_ioctl()
375 ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_compat_ioctl() argument
383 switch (cmd) { in ecryptfs_compat_ioctl()
388 rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in ecryptfs_compat_ioctl()

1234