Lines Matching refs:kterm
423 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm) in copy_termios() argument
426 *kterm = tty->termios; in copy_termios()
430 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
433 *kterm = tty->termios_locked; in copy_termios_locked()
439 struct ktermios kterm; in get_termio() local
440 copy_termios(tty, &kterm); in get_termio()
441 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
669 struct ktermios kterm; in tty_mode_ioctl() local
707 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
708 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
713 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
714 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
718 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
719 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
739 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
740 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
746 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
747 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
751 real_tty->termios_locked = kterm; in tty_mode_ioctl()
756 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
757 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
763 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
764 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
768 real_tty->termios_locked = kterm; in tty_mode_ioctl()
780 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
781 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()