Lines Matching refs:arg

587 static int set_termios(struct tty_struct *tty, void __user *arg, int opt)  in set_termios()  argument
602 (struct termio __user *)arg)) in set_termios()
607 (struct termios __user *)arg)) in set_termios()
611 (struct termios2 __user *)arg)) in set_termios()
616 (struct termios __user *)arg))
684 static int set_termiox(struct tty_struct *tty, void __user *arg, int opt) in set_termiox() argument
691 if (copy_from_user(&tnew, arg, sizeof(struct termiox))) in set_termiox()
903 static int tty_change_softcar(struct tty_struct *tty, int arg) in tty_change_softcar() argument
906 int bit = arg ? CLOCAL : 0; in tty_change_softcar()
934 unsigned int cmd, unsigned long arg) in tty_mode_ioctl() argument
937 void __user *p = (void __user *)arg; in tty_mode_ioctl()
952 return get_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
955 return set_sgttyb(real_tty, (struct sgttyb __user *) arg); in tty_mode_ioctl()
978 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
984 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
989 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
1010 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1018 (struct termios __user *) arg)) in tty_mode_ioctl()
1027 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1035 (struct termios __user *) arg)) in tty_mode_ioctl()
1064 (int __user *)arg); in tty_mode_ioctl()
1067 if (get_user(arg, (unsigned int __user *) arg)) in tty_mode_ioctl()
1069 return tty_change_softcar(real_tty, arg); in tty_mode_ioctl()
1078 static int __tty_perform_flush(struct tty_struct *tty, unsigned long arg) in __tty_perform_flush() argument
1082 switch (arg) { in __tty_perform_flush()
1104 int tty_perform_flush(struct tty_struct *tty, unsigned long arg) in tty_perform_flush() argument
1112 retval = __tty_perform_flush(tty, arg); in tty_perform_flush()
1120 unsigned int cmd, unsigned long arg) in n_tty_ioctl_helper() argument
1129 switch (arg) { in n_tty_ioctl_helper()
1162 return __tty_perform_flush(tty, arg); in n_tty_ioctl_helper()
1165 return tty_mode_ioctl(tty, file, cmd, arg); in n_tty_ioctl_helper()
1172 unsigned int cmd, unsigned long arg) in n_tty_compat_ioctl_helper() argument
1177 return tty_mode_ioctl(tty, file, cmd, (unsigned long) compat_ptr(arg)); in n_tty_compat_ioctl_helper()