Lines Matching refs:cmd
119 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()
353 err = sys_ioctl(fd, cmd, (unsigned long) sgio); in sg_ioctl_trans()
384 static int sg_grt_trans(unsigned int fd, unsigned int cmd, struct in sg_grt_trans() argument
390 err = sys_ioctl(fd,cmd,(unsigned long)r); in sg_grt_trans()
416 static int ppp_sock_fprog_ioctl_trans(unsigned int fd, unsigned int cmd, in ppp_sock_fprog_ioctl_trans() argument
434 if (cmd == PPPIOCSPASS32) in ppp_sock_fprog_ioctl_trans()
435 cmd = PPPIOCSPASS; in ppp_sock_fprog_ioctl_trans()
437 cmd = PPPIOCSACTIVE; in ppp_sock_fprog_ioctl_trans()
439 return sys_ioctl(fd, cmd, (unsigned long) u_fprog64); in ppp_sock_fprog_ioctl_trans()
455 static int ppp_gidle(unsigned int fd, unsigned int cmd, in ppp_gidle() argument
476 static int ppp_scompress(unsigned int fd, unsigned int cmd, in ppp_scompress() argument
516 static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) in mt_ioctl_trans() argument
527 switch(cmd) { in mt_ioctl_trans()
542 switch (cmd) { in mt_ioctl_trans()
608 static int serial_struct_ioctl(unsigned fd, unsigned cmd, in serial_struct_ioctl() argument
619 if (cmd == TIOCSSERIAL) { in serial_struct_ioctl()
633 err = sys_ioctl(fd,cmd,(unsigned long)(&ss)); in serial_struct_ioctl()
635 if (cmd == TIOCGSERIAL && err >= 0) { in serial_struct_ioctl()
674 struct i2c_rdwr_ioctl_data cmd; member
678 static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd, in do_i2c_rdwr_ioctl() argument
700 if (put_user(nmsgs, &tdata->cmd.nmsgs) || in do_i2c_rdwr_ioctl()
701 put_user(tmsgs, &tdata->cmd.msgs)) in do_i2c_rdwr_ioctl()
711 return sys_ioctl(fd, cmd, (unsigned long)tdata); in do_i2c_rdwr_ioctl()
714 static int do_i2c_smbus_ioctl(unsigned int fd, unsigned int cmd, in do_i2c_smbus_ioctl() argument
737 return sys_ioctl(fd, cmd, (unsigned long)tdata); in do_i2c_smbus_ioctl()
745 static int rtc_ioctl(unsigned fd, unsigned cmd, void __user *argp) in rtc_ioctl() argument
752 switch (cmd) { in rtc_ioctl()
756 ret = sys_ioctl(fd, (cmd == RTC_IRQP_READ32) ? in rtc_ioctl()
814 #define COMPATIBLE_IOCTL(cmd) XFORM(cmd), argument
822 #define IGNORE_IOCTL(cmd) COMPATIBLE_IOCTL(cmd) argument
1428 static long do_ioctl_trans(int fd, unsigned int cmd, in do_ioctl_trans() argument
1433 switch (cmd) { in do_ioctl_trans()
1435 return ppp_gidle(fd, cmd, argp); in do_ioctl_trans()
1437 return ppp_scompress(fd, cmd, argp); in do_ioctl_trans()
1440 return ppp_sock_fprog_ioctl_trans(fd, cmd, argp); in do_ioctl_trans()
1443 return sg_ioctl_trans(fd, cmd, argp); in do_ioctl_trans()
1445 return sg_grt_trans(fd, cmd, argp); in do_ioctl_trans()
1448 return mt_ioctl_trans(fd, cmd, argp); in do_ioctl_trans()
1453 return serial_struct_ioctl(fd, cmd, argp); in do_ioctl_trans()
1456 return w_long(fd, cmd, argp); in do_ioctl_trans()
1458 return do_i2c_rdwr_ioctl(fd, cmd, argp); in do_ioctl_trans()
1460 return do_i2c_smbus_ioctl(fd, cmd, argp); in do_ioctl_trans()
1466 return rtc_ioctl(fd, cmd, argp); in do_ioctl_trans()
1470 return do_video_get_event(fd, cmd, argp); in do_ioctl_trans()
1472 return do_video_stillpicture(fd, cmd, argp); in do_ioctl_trans()
1474 return do_video_set_spu_palette(fd, cmd, argp); in do_ioctl_trans()
1481 switch (cmd) { in do_ioctl_trans()
1505 return do_vfs_ioctl(file, fd, cmd, arg); in do_ioctl_trans()
1533 asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, in compat_sys_ioctl() argument
1545 error = security_file_ioctl(filp, cmd, arg); in compat_sys_ioctl()
1554 switch (cmd) { in compat_sys_ioctl()
1583 error = filp->f_op->compat_ioctl(filp, cmd, arg); in compat_sys_ioctl()
1593 if (compat_ioctl_check_table(XFORM(cmd))) in compat_sys_ioctl()
1596 error = do_ioctl_trans(fd, cmd, arg, filp); in compat_sys_ioctl()
1605 error = do_vfs_ioctl(filp, fd, cmd, arg); in compat_sys_ioctl()