Lines Matching refs:kterm
445 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm)
448 *kterm = tty->termios;
452 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm)
455 *kterm = tty->termios_locked;
461 struct ktermios kterm;
462 copy_termios(tty, &kterm);
463 if (kernel_termios_to_user_termio(termio, &kterm))
691 struct ktermios kterm;
729 copy_termios(real_tty, &kterm);
730 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
735 copy_termios(real_tty, &kterm);
736 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
740 copy_termios(real_tty, &kterm);
741 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm))
761 copy_termios_locked(real_tty, &kterm);
762 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm))
768 copy_termios_locked(real_tty, &kterm);
769 if (user_termios_to_kernel_termios(&kterm,
773 real_tty->termios_locked = kterm;
778 copy_termios_locked(real_tty, &kterm);
779 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm))
785 copy_termios_locked(real_tty, &kterm);
786 if (user_termios_to_kernel_termios_1(&kterm,
790 real_tty->termios_locked = kterm;
802 copy_termios(real_tty, &kterm);
803 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0,