Lines Matching refs:kterm

648 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm)  in copy_termios()  argument
651 *kterm = tty->termios; in copy_termios()
655 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
658 *kterm = tty->termios_locked; in copy_termios_locked()
664 struct ktermios kterm; in get_termio() local
665 copy_termios(tty, &kterm); in get_termio()
666 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
939 struct ktermios kterm; in tty_mode_ioctl() local
977 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
978 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
983 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
984 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
988 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
989 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
1009 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1010 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1016 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1017 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
1021 real_tty->termios_locked = kterm; in tty_mode_ioctl()
1026 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1027 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
1033 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
1034 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
1038 real_tty->termios_locked = kterm; in tty_mode_ioctl()
1062 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
1063 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()