Lines Matching refs:cmd
152 static long tty_compat_ioctl(struct file *file, unsigned int cmd,
439 static long hung_up_tty_ioctl(struct file *file, unsigned int cmd, in hung_up_tty_ioctl() argument
442 return cmd == TIOCSPGRP ? -ENOTTY : -EIO; in hung_up_tty_ioctl()
446 unsigned int cmd, unsigned long arg) in hung_up_tty_compat_ioctl() argument
448 return cmd == TIOCSPGRP ? -ENOTTY : -EIO; in hung_up_tty_compat_ioctl()
2534 static int tty_tiocmset(struct tty_struct *tty, unsigned int cmd, in tty_tiocmset() argument
2547 switch (cmd) { in tty_tiocmset()
2655 long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in tty_ioctl() argument
2671 switch (cmd) { in tty_ioctl()
2680 if (cmd != TIOCCBRK) { in tty_ioctl()
2691 switch (cmd) { in tty_ioctl()
2754 return tty_tiocmset(tty, cmd, p); in tty_ioctl()
2774 retval = tty_jobctrl_ioctl(tty, real_tty, file, cmd, arg); in tty_ioctl()
2779 retval = tty->ops->ioctl(tty, cmd, arg); in tty_ioctl()
2785 return hung_up_tty_ioctl(file, cmd, arg); in tty_ioctl()
2788 retval = ld->ops->ioctl(tty, cmd, arg); in tty_ioctl()
2862 static long tty_compat_ioctl(struct file *file, unsigned int cmd, in tty_compat_ioctl() argument
2869 switch (cmd) { in tty_compat_ioctl()
2929 return tty_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in tty_compat_ioctl()
2945 return tty_ioctl(file, cmd, arg); in tty_compat_ioctl()
2951 switch (cmd) { in tty_compat_ioctl()
2958 retval = tty->ops->compat_ioctl(tty, cmd, arg); in tty_compat_ioctl()
2965 return hung_up_tty_compat_ioctl(file, cmd, arg); in tty_compat_ioctl()
2967 retval = ld->ops->compat_ioctl(tty, cmd, arg); in tty_compat_ioctl()
2969 retval = ld->ops->ioctl(tty, (unsigned long)compat_ptr(cmd), in tty_compat_ioctl()