Lines Matching full:ios
101 struct termios ios; /* To be able to reset from raw mode */ member
435 struct termios ios; in tty_Raw() local
449 tcgetattr(p->fd, &ios); in tty_Raw()
450 cfmakeraw(&ios); in tty_Raw()
452 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Raw()
454 ios.c_cflag |= CLOCAL; in tty_Raw()
457 ios.c_cflag |= HUPCL; in tty_Raw()
459 if (tcsetattr(p->fd, TCSANOW, &ios) == -1) in tty_Raw()
502 if (!physical_IsSync(p) && tcsetattr(p->fd, TCSAFLUSH, &dev->ios) == -1) in tty_Cooked()
534 struct termios ios; in tty_Speed() local
536 if (tcgetattr(p->fd, &ios) == -1) in tty_Speed()
539 return SpeedToUnsigned(cfgetispeed(&ios)); in tty_Speed()
678 struct termios ios; in tty_Create() local
710 tcgetattr(p->fd, &ios); in tty_Create()
711 dev->ios = ios; in tty_Create()
719 (u_long)ios.c_iflag, (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()
721 cfmakeraw(&ios); in tty_Create()
723 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Create()
725 ios.c_cflag |= CLOCAL; in tty_Create()
726 ios.c_iflag |= IXOFF; in tty_Create()
728 ios.c_iflag |= IXON; in tty_Create()
730 ios.c_cflag |= HUPCL; in tty_Create()
734 ios.c_cflag &= ~(CSIZE | PARODD | PARENB); in tty_Create()
735 ios.c_cflag |= p->cfg.parity; in tty_Create()
736 if (cfsetspeed(&ios, UnsignedToSpeed(p->cfg.speed)) == -1) in tty_Create()
741 if (tcsetattr(p->fd, TCSADRAIN, &ios) == -1) { in tty_Create()
750 "cflag = %lx\n", p->link.name, (u_long)ios.c_iflag, in tty_Create()
751 (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()