Lines Matching defs:arg
446 * @arg: user data
456 static int set_termios(struct tty_struct *tty, void __user *arg, int opt)
471 (struct termio __user *)arg))
476 (struct termios __user *)arg))
480 (struct termios2 __user *)arg))
485 (struct termios __user *)arg))
768 * @arg: ioctl argument
775 int tty_mode_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
778 void __user *p = (void __user *)arg;
791 return get_sgttyb(real_tty, (struct sgttyb __user *) arg);
794 return set_sgttyb(real_tty, (struct sgttyb __user *) arg);
817 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
823 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
828 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm))
849 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
857 (struct termios __user *) arg))
866 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
874 (struct termios __user *) arg))
891 (int __user *)arg);
894 if (get_user(arg, (unsigned int __user *) arg))
896 return tty_change_softcar(real_tty, arg);
905 static int __tty_perform_flush(struct tty_struct *tty, unsigned long arg)
909 switch (arg) {
931 int tty_perform_flush(struct tty_struct *tty, unsigned long arg)
939 retval = __tty_perform_flush(tty, arg);
947 unsigned long arg)
956 switch (arg) {
989 return __tty_perform_flush(tty, arg);
992 return tty_mode_ioctl(tty, cmd, arg);