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