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()
770 struct ktermios kterm; in tty_mode_ioctl() local
806 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
807 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
812 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
813 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
817 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
818 if (kernel_termios_to_user_termios((struct termios2 __user *)arg, &kterm)) in tty_mode_ioctl()
838 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
839 if (kernel_termios_to_user_termios((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
845 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
846 if (user_termios_to_kernel_termios(&kterm, in tty_mode_ioctl()
850 real_tty->termios_locked = kterm; in tty_mode_ioctl()
855 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
856 if (kernel_termios_to_user_termios_1((struct termios __user *)arg, &kterm)) in tty_mode_ioctl()
862 copy_termios_locked(real_tty, &kterm); in tty_mode_ioctl()
863 if (user_termios_to_kernel_termios_1(&kterm, in tty_mode_ioctl()
867 real_tty->termios_locked = kterm; in tty_mode_ioctl()
879 copy_termios(real_tty, &kterm); in tty_mode_ioctl()
880 ret = put_user((kterm.c_cflag & CLOCAL) ? 1 : 0, in tty_mode_ioctl()