Searched refs:c_cflag (Results 1 - 16 of 16) sorted by relevance

/haiku/src/libs/bsd/
H A Dtermios.c15 * Standard values are inlined in c_cflag. */
17 termios->c_cflag |= CBAUD;
23 termios->c_cflag &= ~CBAUD;
24 termios->c_cflag |= speed;
/haiku/src/system/libroot/posix/
H A Dtermios.c108 if ((termios->c_cflag & CBAUD) == CBAUD)
111 return termios->c_cflag & CBAUD;
123 termios->c_cflag |= CBAUD;
128 termios->c_cflag &= ~CBAUD;
129 termios->c_cflag |= speed;
137 if ((termios->c_cflag & CBAUD) == CBAUD)
140 return termios->c_cflag & CBAUD;
149 termios->c_cflag |= CBAUD;
154 termios->c_cflag &= ~CBAUD;
155 termios->c_cflag |
[all...]
/haiku/src/kits/device/
H A DSerialPort.cpp574 options.c_cflag &= ~(CRTSCTS | CSIZE | CSTOPB | PARODD | PARENB);
578 options.c_cflag |= CLOCAL;
582 options.c_cflag |= CRTSCTS;
588 options.c_cflag |= CSTOPB; // Set 2 stop bits
591 options.c_cflag |= CS8; // Set 8 data bits
595 options.c_cflag |= PARENB; //Enable parity
597 options.c_cflag |= PARODD; //Select odd parity
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DSerialDevice.cpp61 fTTYConfig.c_cflag = B9600 | CS8 | CREAD;
162 uint8 baud = tios->c_cflag & CBAUD;
171 fTTYConfig.c_cflag &= ~CBAUD;
172 fTTYConfig.c_cflag |= baud;
177 config.c_cflag = tios->c_cflag;
178 config.c_cflag &= ~CBAUD;
179 config.c_cflag |= baud;
184 SetHardwareFlowControl((tios->c_cflag & CRTSCTS) != 0);
188 lineCoding.stopbits = (tios->c_cflag
[all...]
H A DTracing.cpp117 tios->c_iflag, tios->c_oflag, tios->c_cflag, tios->c_lflag,
/haiku/src/tests/apps/miniterminal/
H A DMiniView.cpp153 tio.c_cflag &= ~(CBAUD);
154 tio.c_cflag |= B19200;
156 tio.c_cflag &= ~CSIZE;
157 tio.c_cflag |= CS8;
158 tio.c_cflag |= CREAD;
160 tio.c_cflag |= HUPCL;
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/
H A DSerialDevice.cpp55 fTTYConfig.c_cflag = B9600 | CS8 | CREAD;
112 uint32 baudIndex = tios->c_cflag & CBAUD;
118 fTTYConfig.c_cflag &= ~CBAUD;
119 fTTYConfig.c_cflag |= baudIndex;
124 config.c_cflag = tios->c_cflag;
125 config.c_cflag &= ~CBAUD;
126 config.c_cflag |= baudIndex;
134 switch (tios->c_cflag & CSIZE) {
153 if (tios->c_cflag
[all...]
H A DTracing.cpp114 tios->c_iflag, tios->c_oflag, tios->c_cflag, tios->c_lflag,
/haiku/src/apps/terminal/
H A DShell.cpp357 tio.c_cflag &= ~(CBAUD);
358 tio.c_cflag |= B19200;
360 tio.c_cflag &= ~CSIZE;
361 tio.c_cflag |= CS8;
362 tio.c_cflag |= CREAD;
364 tio.c_cflag |= HUPCL;
/haiku/src/bin/network/telnetd/
H A Dsys_term.c108 # define cfsetospeed(tp, val) (tp)->c_cflag &= ~CBAUD; \
109 (tp)->c_cflag |= (val)
110 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
112 # define cfsetispeed(tp, val) (tp)->c_cflag &= ~CIBAUD; \
113 (tp)->c_cflag |= ((val)<<IBSHIFT)
114 # define cfgetispeed(tp) (((tp)->c_cflag & CIBAUD)>>IBSHIFT)
116 # define cfsetispeed(tp, val) (tp)->c_cflag &= ~CBAUD; \
117 (tp)->c_cflag |= (val)
118 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
563 termbuf.c_cflag
[all...]
/haiku/src/add-ons/kernel/network/devices/dialup/
H A Ddialup.cpp274 device->line_config.c_cflag &= ~CBAUD;
275 device->line_config.c_cflag &= CSIZE;
276 device->line_config.c_cflag &= CS8;
277 device->line_config.c_cflag |= B115200; // TODO: make this configurable too...
278 device->line_config.c_cflag |= (CLOCAL | CREAD);
/haiku/src/bin/network/telnet/
H A Dsys_bsd.c95 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD)
97 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT)
577 tmp_tc.c_cflag &= ~(CSIZE|PARENB);
578 tmp_tc.c_cflag |= CS8;
581 tmp_tc.c_cflag &= ~(CSIZE|PARENB);
582 tmp_tc.c_cflag |= old_tc.c_cflag & (CSIZE|PARENB);
/haiku/src/add-ons/kernel/network/ppp/modem/
H A DModemDevice.cpp344 options.c_cflag &= ~CBAUD;
345 options.c_cflag |= B115200;
346 options.c_cflag |= (CLOCAL | CREAD);
/haiku/src/add-ons/kernel/generic/tty/
H A Dmodule.cpp33 kprintf(" c_cflag: 0x%08" B_PRIx32 "\n", settings.termios.c_cflag);
H A Dtty.cpp760 termios.c_cflag = B19200 | CS8 | CREAD | HUPCL;
1712 tty->settings->termios.c_cflag,
/haiku/headers/posix/
H A Dtermios.h21 tcflag_t c_cflag; /* control modes */ member in struct:termios
91 /* c_cflag - control modes */

Completed in 84 milliseconds