Lines Matching refs:kterm
530 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm) in copy_termios() argument
533 *kterm = tty->termios; in copy_termios()
537 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
540 *kterm = tty->termios_locked; in copy_termios_locked()
546 struct ktermios kterm; in get_termio() local
547 copy_termios(tty, &kterm); in get_termio()
548 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
774 struct ktermios kterm; in tty_mode_ioctl() local
810 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
811 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
816 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
817 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
821 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
822 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
842 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
843 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
849 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
850 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
854 real_tty->termios_locked = kterm; in tty_mode_ioctl()
859 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
860 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
866 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
867 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
871 real_tty->termios_locked = kterm; in tty_mode_ioctl()
883 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
884 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()