Lines Matching refs:arg

590 static int set_termios(struct tty_struct *tty, void __user *arg, int opt)  in set_termios()  argument
605 (struct termio __user *)arg)) in set_termios()
610 (struct termios __user *)arg)) in set_termios()
614 (struct termios2 __user *)arg)) in set_termios()
619 (struct termios __user *)arg))
687 static int set_termiox(struct tty_struct *tty, void __user *arg, int opt) in set_termiox() argument
694 if (copy_from_user(&tnew, arg, sizeof(struct termiox))) in set_termiox()
906 static int tty_change_softcar(struct tty_struct *tty, int arg) in tty_change_softcar() argument
909 int bit = arg ? CLOCAL : 0; in tty_change_softcar()
937 unsigned int cmd, unsigned long arg) in tty_mode_ioctl() argument
940 void __user *p = (void __user *)arg; in tty_mode_ioctl()
955 return get_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
958 return set_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
981 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
987 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
992 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
1013 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1021 (struct termios __user *) arg)) in tty_mode_ioctl()
1030 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1038 (struct termios __user *) arg)) in tty_mode_ioctl()
1067 (int __user *)arg); in tty_mode_ioctl()
1070 if (get_user(arg, (unsigned int __user *) arg)) in tty_mode_ioctl()
1072 return tty_change_softcar(real_tty, arg); in tty_mode_ioctl()
1081 static int __tty_perform_flush(struct tty_struct *tty, unsigned long arg) in __tty_perform_flush() argument
1085 switch (arg) { in __tty_perform_flush()
1107 int tty_perform_flush(struct tty_struct *tty, unsigned long arg) in tty_perform_flush() argument
1115 retval = __tty_perform_flush(tty, arg); in tty_perform_flush()
1123 unsigned int cmd, unsigned long arg) in n_tty_ioctl_helper() argument
1132 switch (arg) { in n_tty_ioctl_helper()
1165 return __tty_perform_flush(tty, arg); in n_tty_ioctl_helper()
1168 return tty_mode_ioctl(tty, file, cmd, arg); in n_tty_ioctl_helper()
1175 unsigned int cmd, unsigned long arg) in n_tty_compat_ioctl_helper() argument
1180 return tty_mode_ioctl(tty, file, cmd, (unsigned long) compat_ptr(arg)); in n_tty_compat_ioctl_helper()