Lines Matching refs:ios
103 struct termios ios; /* To be able to reset from raw mode */
437 struct termios ios;
451 tcgetattr(p->fd, &ios);
452 cfmakeraw(&ios);
454 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW;
456 ios.c_cflag |= CLOCAL;
459 ios.c_cflag |= HUPCL;
461 if (tcsetattr(p->fd, TCSANOW, &ios) == -1)
504 if (!physical_IsSync(p) && tcsetattr(p->fd, TCSAFLUSH, &dev->ios) == -1)
536 struct termios ios;
538 if (tcgetattr(p->fd, &ios) == -1)
541 return SpeedToUnsigned(cfgetispeed(&ios));
680 struct termios ios;
712 tcgetattr(p->fd, &ios);
713 dev->ios = ios;
721 (u_long)ios.c_iflag, (u_long)ios.c_oflag, (u_long)ios.c_cflag);
723 cfmakeraw(&ios);
725 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW;
727 ios.c_cflag |= CLOCAL;
728 ios.c_iflag |= IXOFF;
730 ios.c_iflag |= IXON;
732 ios.c_cflag |= HUPCL;
736 ios.c_cflag &= ~(CSIZE | PARODD | PARENB);
737 ios.c_cflag |= p->cfg.parity;
738 if (cfsetspeed(&ios, UnsignedToSpeed(p->cfg.speed)) == -1)
743 if (tcsetattr(p->fd, TCSADRAIN, &ios) == -1) {
752 "cflag = %lx\n", p->link.name, (u_long)ios.c_iflag,
753 (u_long)ios.c_oflag, (u_long)ios.c_cflag);