Lines Matching refs:kterm
526 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm) in copy_termios() argument
529 *kterm = tty->termios; in copy_termios()
533 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
536 *kterm = tty->termios_locked; in copy_termios_locked()
542 struct ktermios kterm; in get_termio() local
543 copy_termios(tty, &kterm); in get_termio()
544 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
768 struct ktermios kterm; in tty_mode_ioctl() local
804 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
805 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
810 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
811 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
815 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
816 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
836 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
837 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
843 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
844 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
848 real_tty->termios_locked = kterm; in tty_mode_ioctl()
853 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
854 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
860 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
861 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
865 real_tty->termios_locked = kterm; in tty_mode_ioctl()
877 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
878 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()