Lines Matching refs:kterm

447 static void copy_termios(struct tty_struct *tty, struct ktermios *kterm)  in copy_termios()  argument
450 *kterm = tty->termios; in copy_termios()
454 static void copy_termios_locked(struct tty_struct *tty, struct ktermios *kterm) in copy_termios_locked() argument
457 *kterm = tty->termios_locked; in copy_termios_locked()
463 struct ktermios kterm; in get_termio() local
464 copy_termios(tty, &kterm); in get_termio()
465 if (kernel_termios_to_user_termio(termio, &kterm)) in get_termio()
691 struct ktermios kterm; in tty_mode_ioctl() local
727 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
728 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
733 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
734 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
738 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
739 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
759 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
760 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
766 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
767 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
771 real_tty->termios_locked = kterm; in tty_mode_ioctl()
776 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
777 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
783 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
784 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
788 real_tty->termios_locked = kterm; in tty_mode_ioctl()
800 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
801 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()