Lines Matching refs:kterm

651 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm)  in copy_termios()  argument
654 *kterm = tty->termios; in copy_termios()
658 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
661 *kterm = tty->termios_locked; in copy_termios_locked()
667 struct ktermios kterm; in get_termio() local
668 copy_termios(tty, &kterm); in get_termio()
669 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
942 struct ktermios kterm; in tty_mode_ioctl() local
980 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
981 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
986 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
987 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
991 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
992 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
1012 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1013 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1019 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1020 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
1024 real_tty->termios_locked = kterm; in tty_mode_ioctl()
1029 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1030 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1036 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1037 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
1041 real_tty->termios_locked = kterm; in tty_mode_ioctl()
1065 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
1066 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()