Lines Matching defs:arg
353 * @arg: user data
363 static int set_termios(struct tty_struct *tty, void __user *arg, int opt)
378 (struct termio __user *)arg))
383 (struct termios __user *)arg))
387 (struct termios2 __user *)arg))
392 (struct termios __user *)arg))
649 * @arg: enable/disable CLOCAL
655 static int tty_change_softcar(struct tty_struct *tty, int arg)
658 int bit = arg ? CLOCAL : 0;
678 * @arg: ioctl argument
686 unsigned int cmd, unsigned long arg)
689 void __user *p = (void __user *)arg;
704 return get_sgttyb(real_tty, (struct sgttyb __user *) arg);
707 return set_sgttyb(real_tty, (struct sgttyb __user *) arg);
730 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
736 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
741 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm))
762 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
770 (struct termios __user *) arg))
779 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
787 (struct termios __user *) arg))
804 (int __user *)arg);
807 if (get_user(arg, (unsigned int __user *) arg))
809 return tty_change_softcar(real_tty, arg);
818 static int __tty_perform_flush(struct tty_struct *tty, unsigned long arg)
822 switch (arg) {
844 int tty_perform_flush(struct tty_struct *tty, unsigned long arg)
852 retval = __tty_perform_flush(tty, arg);
860 unsigned int cmd, unsigned long arg)
869 switch (arg) {
902 return __tty_perform_flush(tty, arg);
905 return tty_mode_ioctl(tty, file, cmd, arg);