Lines Matching refs:kterm
538 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm)
541 *kterm = tty->termios;
545 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm)
548 *kterm = tty->termios_locked;
554 struct ktermios kterm;
555 copy_termios(tty, &kterm);
556 if (kernel_termios_to_user_termio(termio, &kterm))
780 struct ktermios kterm;
816 copy_termios(real_tty, &kterm);
817 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
822 copy_termios(real_tty, &kterm);
823 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
827 copy_termios(real_tty, &kterm);
828 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm))
848 copy_termios_locked(real_tty, &kterm);
849 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
855 copy_termios_locked(real_tty, &kterm);
856 if (user_termios_to_kernel_termios(&kterm,
860 real_tty->termios_locked = kterm;
865 copy_termios_locked(real_tty, &kterm);
866 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
872 copy_termios_locked(real_tty, &kterm);
873 if (user_termios_to_kernel_termios_1(&kterm,
877 real_tty->termios_locked = kterm;
889 copy_termios(real_tty, &kterm);
890 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0,