Lines Matching refs:tio
64 static int vcons_tty_param(struct tty *tp, struct termios *tio);
167 vcons_tty_param(struct tty *tp, struct termios *tio) in vcons_tty_param() argument
170 tp->t_ispeed = tio->c_ispeed; in vcons_tty_param()
171 tp->t_ospeed = tio->c_ospeed; in vcons_tty_param()
172 tp->t_cflag = tio->c_cflag; in vcons_tty_param()
443 struct termios tio; in vcons_set_mode() local
445 if (tcgetattr(0, &tio) < 0) { in vcons_set_mode()
448 cfmakeraw(&tio); in vcons_set_mode()
449 tio.c_oflag |= OPOST | ONLCR; in vcons_set_mode()
450 tio.c_lflag |= ISIG; in vcons_set_mode()
452 tio.c_cc[VINTR] = init_tio.c_cc[VINTR]; in vcons_set_mode()
453 tio.c_cc[VSUSP] = init_tio.c_cc[VSUSP]; in vcons_set_mode()
454 tio.c_cc[VSTATUS] = init_tio.c_cc[VSTATUS]; in vcons_set_mode()
456 tio.c_cc[VINTR] = _POSIX_VDISABLE; in vcons_set_mode()
457 tio.c_cc[VSUSP] = _POSIX_VDISABLE; in vcons_set_mode()
458 tio.c_cc[VSTATUS] = _POSIX_VDISABLE; in vcons_set_mode()
460 tcsetattr(0, TCSAFLUSH, &tio); in vcons_set_mode()