Home
last modified time | relevance | path

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

1234

/fs/
Dcompat_ioctl.c119 static int w_long(unsigned int fd, unsigned int cmd, in w_long() argument
127 err = sys_ioctl(fd, cmd, (unsigned long)&val); in w_long()
143 static int do_video_get_event(unsigned int fd, unsigned int cmd, in do_video_get_event() argument
151 err = sys_ioctl(fd, cmd, (unsigned long) &kevent); in do_video_get_event()
173 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, in do_video_stillpicture() argument
194 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_stillpicture()
204 static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, in do_video_set_spu_palette() argument
222 err = sys_ioctl(fd, cmd, (unsigned long) up_native); in do_video_set_spu_palette()
280 static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, in sg_ioctl_trans() argument
293 return sys_ioctl(fd, cmd, (unsigned long)sgio32); in sg_ioctl_trans()
[all …]
Dfcntl.c251 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl() argument
256 switch (cmd) { in do_fcntl()
281 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
328 err = pipe_fcntl(filp, cmd, arg); in do_fcntl()
336 static int check_fcntl_cmd(unsigned cmd) in check_fcntl_cmd() argument
338 switch (cmd) { in check_fcntl_cmd()
349 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
358 if (!check_fcntl_cmd(cmd)) in SYSCALL_DEFINE3()
362 err = security_file_fcntl(f.file, cmd, arg); in SYSCALL_DEFINE3()
364 err = do_fcntl(fd, cmd, arg, f.file); 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()
449 static int file_ioctl(struct file *filp, unsigned int cmd, in file_ioctl() argument
455 switch (cmd) { in file_ioctl()
465 return vfs_ioctl(filp, cmd, arg); in file_ioctl()
546 int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, in do_vfs_ioctl() argument
553 switch (cmd) { in do_vfs_ioctl()
596 error = file_ioctl(filp, cmd, arg); in do_vfs_ioctl()
598 error = vfs_ioctl(filp, cmd, arg); in do_vfs_ioctl()
604 SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
[all …]
Dlocks.c270 static inline int flock_translate_cmd(int cmd) { in flock_translate_cmd() argument
271 if (cmd & LOCK_MAND) in flock_translate_cmd()
272 return cmd & (LOCK_MAND | LOCK_RW); in flock_translate_cmd()
273 switch (cmd) { in flock_translate_cmd()
286 unsigned int cmd) in flock_make_lock() argument
289 int type = flock_translate_cmd(cmd); in flock_make_lock()
1626 SYSCALL_DEFINE2(flock, unsigned int, fd, unsigned int, cmd) in SYSCALL_DEFINE2() argument
1637 can_sleep = !(cmd & LOCK_NB); in SYSCALL_DEFINE2()
1638 cmd &= ~LOCK_NB; in SYSCALL_DEFINE2()
1639 unlock = (cmd == LOCK_UN); in SYSCALL_DEFINE2()
[all …]
/fs/ext3/
Dioctl.c15 long ext3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext3_ioctl() argument
22 ext3_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext3_ioctl()
24 switch (cmd) { in ext3_ioctl()
284 long ext3_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext3_compat_ioctl() argument
287 switch (cmd) { in ext3_compat_ioctl()
289 cmd = EXT3_IOC_GETFLAGS; in ext3_compat_ioctl()
292 cmd = EXT3_IOC_SETFLAGS; in ext3_compat_ioctl()
295 cmd = EXT3_IOC_GETVERSION; in ext3_compat_ioctl()
298 cmd = EXT3_IOC_SETVERSION; in ext3_compat_ioctl()
301 cmd = EXT3_IOC_GROUP_EXTEND; in ext3_compat_ioctl()
[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/quota/
Dquota.c21 static int check_quotactl_permission(struct super_block *sb, int type, int cmd, in check_quotactl_permission() argument
24 switch (cmd) { in check_quotactl_permission()
44 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
65 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument
196 static int quota_setxstate(struct super_block *sb, int cmd, void __user *addr) in quota_setxstate() argument
204 return sb->s_qcop->set_xstate(sb, flags, cmd); in quota_setxstate()
255 static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, in do_quotactl() argument
260 if (type >= (XQM_COMMAND(cmd) ? XQM_MAXQUOTAS : MAXQUOTAS)) in do_quotactl()
265 ret = check_quotactl_permission(sb, type, cmd, id); in do_quotactl()
269 switch (cmd) { in do_quotactl()
[all …]
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()
/fs/reiserfs/
Dioctl.c22 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument
30 switch (cmd) { in reiserfs_ioctl()
132 long reiserfs_compat_ioctl(struct file *file, unsigned int cmd, in reiserfs_compat_ioctl() argument
136 switch (cmd) { in reiserfs_compat_ioctl()
138 cmd = REISERFS_IOC_UNPACK; in reiserfs_compat_ioctl()
141 cmd = REISERFS_IOC_GETFLAGS; in reiserfs_compat_ioctl()
144 cmd = REISERFS_IOC_SETFLAGS; in reiserfs_compat_ioctl()
147 cmd = REISERFS_IOC_GETVERSION; in reiserfs_compat_ioctl()
150 cmd = REISERFS_IOC_SETVERSION; in reiserfs_compat_ioctl()
156 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()
119 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
123 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
126 "supplied for cmd(0x%08x)", cmd); in validate_dev_ioctl()
135 cmd); in validate_dev_ioctl()
142 cmd); in validate_dev_ioctl()
560 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) argument
562 static ioctl_fn lookup_dev_ioctl(unsigned int cmd) in lookup_dev_ioctl() argument
565 int cmd; in lookup_dev_ioctl() member
[all …]
Droot.c827 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl_unlocked() argument
833 cmd,arg,sbi,task_pgrp_nr(current)); in autofs4_root_ioctl_unlocked()
835 if (_IOC_TYPE(cmd) != _IOC_TYPE(AUTOFS_IOC_FIRST) || in autofs4_root_ioctl_unlocked()
836 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs4_root_ioctl_unlocked()
842 switch(cmd) { in autofs4_root_ioctl_unlocked()
877 unsigned int cmd, unsigned long arg) in autofs4_root_ioctl() argument
880 return autofs4_root_ioctl_unlocked(inode, filp, cmd, arg); in autofs4_root_ioctl()
885 unsigned int cmd, unsigned long arg) in autofs4_root_compat_ioctl() argument
890 if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL) in autofs4_root_compat_ioctl()
891 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()
92 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
108 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock() argument
123 return ocfs2_do_funlock(file, cmd, fl); in ocfs2_flock()
125 return ocfs2_do_flock(file, inode, cmd, fl); in ocfs2_flock()
128 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock() argument
138 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/nilfs2/
Dioctl.c167 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument
203 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument
246 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_cpstat() argument
277 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_sustat() argument
333 unsigned int cmd, void __user *argp) in nilfs_ioctl_get_bdescs() argument
345 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), in nilfs_ioctl_get_bdescs()
575 unsigned int cmd, void __user *argp) in nilfs_ioctl_clean_segments() argument
686 unsigned int cmd, void __user *argp) in nilfs_ioctl_sync() argument
771 unsigned int cmd, void __user *argp, in nilfs_ioctl_get_info() argument
788 ret = nilfs_ioctl_wrap_copy(nilfs, &argv, _IOC_DIR(cmd), dofunc); in nilfs_ioctl_get_info()
[all …]
/fs/9p/
Dvfs_file.c129 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock() argument
140 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
148 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock() argument
187 if (IS_SETLKW(cmd)) in v9fs_file_do_lock()
201 if (status == P9_LOCK_BLOCKED && !IS_SETLKW(cmd)) in v9fs_file_do_lock()
299 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl() argument
305 filp, cmd, fl, filp->f_path.dentry->d_name.name); in v9fs_file_lock_dotl()
311 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
316 if (IS_SETLK(cmd) || IS_SETLKW(cmd)) in v9fs_file_lock_dotl()
317 ret = v9fs_file_do_lock(filp, cmd, fl); in v9fs_file_lock_dotl()
[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 cmd = FITRIM; in jfs_compat_ioctl()
187 return jfs_ioctl(filp, cmd, arg); in jfs_compat_ioctl()
/fs/xfs/
Dxfs_ioctl32.c46 #define _NATIVE_IOC(cmd, type) \ argument
47 _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type))
248 unsigned int cmd, in xfs_compat_ioc_bulkstat() argument
287 if (cmd == XFS_IOC_FSINUMBERS_32) { in xfs_compat_ioc_bulkstat()
290 } else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE_32) { in xfs_compat_ioc_bulkstat()
295 } else if (cmd == XFS_IOC_FSBULKSTAT_32) { in xfs_compat_ioc_bulkstat()
536 unsigned cmd, in xfs_file_compat_ioctl() argument
551 switch (cmd) { in xfs_file_compat_ioctl()
569 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
584 return xfs_file_ioctl(filp, cmd, p); in xfs_file_compat_ioctl()
[all …]
Dxfs_ioctl.h27 unsigned int cmd,
32 unsigned int cmd,
76 unsigned int cmd,
82 unsigned int cmd,
Dxfs_ioctl.c68 unsigned int cmd, in xfs_find_handle() argument
79 if (cmd == XFS_IOC_FD_TO_HANDLE) { in xfs_find_handle()
109 if (cmd == XFS_IOC_PATH_TO_FSHANDLE) { in xfs_find_handle()
137 if (cmd == XFS_IOC_FD_TO_HANDLE) in xfs_find_handle()
619 unsigned int cmd, in xfs_ioc_space() argument
654 error = xfs_change_file_space(ip, cmd, bf, filp->f_pos, attr_flags); in xfs_ioc_space()
662 unsigned int cmd, in xfs_ioc_bulkstat() argument
692 if (cmd == XFS_IOC_FSINUMBERS) in xfs_ioc_bulkstat()
695 else if (cmd == XFS_IOC_FSBULKSTAT_SINGLE) in xfs_ioc_bulkstat()
1263 unsigned int cmd, in xfs_ioc_getbmap() argument
[all …]
/fs/ceph/
Dlocks.c14 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument
41 req->r_args.filelock_change.type = cmd; in ceph_lock_message()
83 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument
94 if (F_SETLKW == cmd) in ceph_lock()
96 if (F_GETLK == cmd) in ceph_lock()
130 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock() argument
140 if (cmd & LOCK_NB) in ceph_flock()
142 cmd = cmd & (LOCK_SH | LOCK_EX | LOCK_UN); in ceph_flock()
145 if (LOCK_SH == cmd) in ceph_flock()
147 else if (LOCK_EX == cmd) in ceph_flock()
/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/ext4/
Dioctl.c212 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument
219 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in ext4_ioctl()
221 switch (cmd) { in ext4_ioctl()
607 int flags = cmd == FIDTRIM ? BLKDEV_DISCARD_SECURE : 0; in ext4_ioctl()
713 long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext4_compat_ioctl() argument
716 switch (cmd) { in ext4_compat_ioctl()
718 cmd = EXT4_IOC_GETFLAGS; in ext4_compat_ioctl()
721 cmd = EXT4_IOC_SETFLAGS; in ext4_compat_ioctl()
724 cmd = EXT4_IOC_GETVERSION; in ext4_compat_ioctl()
727 cmd = EXT4_IOC_SETVERSION; in ext4_compat_ioctl()
[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()
527 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/nfs/
Dfile.c701 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk() argument
721 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk()
746 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument
775 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk()
787 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument
805 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk()
832 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument
859 if (IS_GETLK(cmd)) in nfs_lock()
860 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock()
862 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock()
[all …]
/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()

1234