Home
last modified time | relevance | path

Searched refs:c_cflag (Results 1 – 25 of 88) sorted by relevance

1234

/freebsd/contrib/tcsh/
H A Dmi.termios.c232 termios_p->c_cflag = CLOCAL | CREAD;
235 case BITS5: termios_p->c_cflag |= CS5; break;
236 case BITS6: termios_p->c_cflag |= CS6; break;
237 case BITS7: termios_p->c_cflag |= CS7; break;
238 case BITS8: termios_p->c_cflag |= CS8; break;
242 termios_p->c_cflag |= PARENB | PARODD;
246 termios_p->c_cflag |= PARENB;
250 termios_p->c_cflag |= CSTOPB;
358 switch (termios_p->c_cflag & CSIZE)
365 if (termios_p->c_cflag & PARENB)
[all …]
H A Ded.init.c204 extty.d_t.c_cflag &= ~ttylist[EX_IO][M_CONTROL].t_clrmask; in ed_Setup()
205 extty.d_t.c_cflag |= ttylist[EX_IO][M_CONTROL].t_setmask; in ed_Setup()
328 edtty.d_t.c_cflag &= ~ttylist[ED_IO][M_CONTROL].t_clrmask; in ed_Init()
329 edtty.d_t.c_cflag |= ttylist[ED_IO][M_CONTROL].t_setmask; in ed_Init()
428 extty.d_t.c_cflag = tstty.d_t.c_cflag; in Rawmode()
429 extty.d_t.c_cflag &= ~ttylist[EX_IO][M_CONTROL].t_clrmask; in Rawmode()
430 extty.d_t.c_cflag |= ttylist[EX_IO][M_CONTROL].t_setmask; in Rawmode()
432 edtty.d_t.c_cflag = tstty.d_t.c_cflag; in Rawmode()
433 edtty.d_t.c_cflag &= ~ttylist[ED_IO][M_CONTROL].t_clrmask; in Rawmode()
434 edtty.d_t.c_cflag |= ttylist[ED_IO][M_CONTROL].t_setmask; in Rawmode()
[all …]
/freebsd/sys/dev/uart/
H A Duart_tty.c213 if ((tp->t_termios.c_cflag & CCTS_OFLOW) && !sc->sc_hwoflow && in uart_tty_outwakeup()
232 if ((tp->t_termios.c_cflag & CRTS_IFLOW) && !sc->sc_hwiflow) in uart_tty_inwakeup()
274 switch (t->c_cflag & CSIZE) { in uart_tty_param()
280 stopbits = (t->c_cflag & CSTOPB) ? 2 : 1; in uart_tty_param()
281 if (t->c_cflag & PARENB) in uart_tty_param()
282 parity = (t->c_cflag & PARODD) ? UART_PARITY_ODD : in uart_tty_param()
288 if ((t->c_cflag & CNO_RTSDTR) == 0) in uart_tty_param()
292 if ((t->c_cflag & CRTS_IFLOW) && sc->sc_isquelch) in uart_tty_param()
295 if ((t->c_cflag & CNO_RTSDTR) == 0) in uart_tty_param()
299 UART_IOCTL(sc, UART_IOCTL_IFLOW, (t->c_cflag & CRTS_IFLOW)); in uart_tty_param()
[all …]
/freebsd/stand/kboot/libkboot/
H A Dtermios.c39 t->c_cflag &= ~(HOST_CSIZE | HOST_PARENB); in host_cfmakeraw()
40 t->c_cflag |= HOST_CS8; in host_cfmakeraw()
51 tio->c_cflag &= ~HOST_CBAUD; in host_cfsetospeed()
52 tio->c_cflag |= speed; in host_cfsetospeed()
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DTerminal.cpp308 fd_termios.c_cflag &= ~CSTOPB; in SetStopBits()
311 fd_termios.c_cflag |= CSTOPB; in SetStopBits()
331 fd_termios.c_cflag &= ~( in SetParity()
338 fd_termios.c_cflag |= PARENB; in SetParity()
340 fd_termios.c_cflag |= PARODD; in SetParity()
343 fd_termios.c_cflag |= CMSPAR; in SetParity()
387 fd_termios.c_cflag &= ~CRTSCTS; in SetHardwareFlowControl()
389 fd_termios.c_cflag |= CRTSCTS; in SetHardwareFlowControl()
/freebsd/crypto/openssh/
H A Dttymodes.h166 TTYMODE(CS7, c_cflag, 90)
167 TTYMODE(CS8, c_cflag, 91)
168 TTYMODE(PARENB, c_cflag, 92)
169 TTYMODE(PARODD, c_cflag, 93)
/freebsd/bin/stty/
H A Dkey.c236 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw()
237 ip->t.c_cflag |= CS8; in f_raw()
256 ip->t.c_cflag = def.c_cflag | (ip->t.c_cflag & CLOCAL); in f_sane()
H A Dgfmt.c59 (u_long)tp->c_cflag, (u_long)tp->c_iflag, (u_long)tp->c_lflag, in gprint()
87 tp->c_cflag = tmp; in gread()
/freebsd/lib/libc/gen/
H A Dtermios.c61 localterm.c_cflag |= CIGNORE; in tcsetattr()
170 t->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw()
171 t->c_cflag |= CS8|CREAD; in cfmakeraw()
184 t->c_cflag = TTYDEF_CFLAG; in cfmakesane()
/freebsd/usr.sbin/ppp/
H A Dtty.c451 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Raw()
453 ios.c_cflag |= CLOCAL; in tty_Raw()
456 ios.c_cflag |= HUPCL; in tty_Raw()
718 (u_long)ios.c_iflag, (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()
722 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Create()
724 ios.c_cflag |= CLOCAL; in tty_Create()
729 ios.c_cflag |= HUPCL; in tty_Create()
733 ios.c_cflag &= ~(CSIZE | PARODD | PARENB); in tty_Create()
734 ios.c_cflag |= p->cfg.parity; in tty_Create()
750 (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c150 # define cfsetospeed(tp, val) (tp)->c_cflag &= ~CBAUD; \
151 (tp)->c_cflag |= (val)
152 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD)
154 # define cfsetispeed(tp, val) (tp)->c_cflag &= ~CIBAUD; \
155 (tp)->c_cflag |= ((val)<<IBSHIFT)
156 # define cfgetispeed(tp) (((tp)->c_cflag & CIBAUD)>>IBSHIFT)
158 # define cfsetispeed(tp, val) (tp)->c_cflag &= ~CBAUD; \
159 (tp)->c_cflag |= (val)
160 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD)
563 termbuf.c_cflag &= ~(CSIZE|PARENB); in tty_binaryout()
[all …]
/freebsd/sys/dev/nmdm/
H A Dnmdm.c304 switch (t->c_cflag & CSIZE) { in bits_per_char()
311 if (t->c_cflag & PARENB) in bits_per_char()
313 if (t->c_cflag & CSTOPB) in bits_per_char()
327 if (!((t->c_cflag | tp2->t_termios.c_cflag) & CDSR_OFLOW)) { in nmdm_param()
/freebsd/sys/compat/linux/
H A Dlinux_ioctl.c338 unsigned short c_cflag; member
347 unsigned int c_cflag; member
356 unsigned int c_cflag; member
465 lios->c_cflag = bsd_to_linux_speed(bios->c_ispeed, sptab); in bsd_to_linux_termios()
466 lios->c_cflag |= (bios->c_cflag & CSIZE) >> 4; in bsd_to_linux_termios()
467 if (bios->c_cflag & CSTOPB) in bsd_to_linux_termios()
468 lios->c_cflag |= LINUX_CSTOPB; in bsd_to_linux_termios()
469 if (bios->c_cflag & CREAD) in bsd_to_linux_termios()
470 lios->c_cflag |= LINUX_CREAD; in bsd_to_linux_termios()
471 if (bios->c_cflag & PARENB) in bsd_to_linux_termios()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_neoclock4x.c200 termsettings.c_cflag = CS8 | CSTOPB | CLOCAL | CREAD; in neoclock4x_start()
220 termsettings.c_cflag &= ~PARENB; in neoclock4x_start()
221 termsettings.c_cflag |= CSTOPB; in neoclock4x_start()
222 termsettings.c_cflag &= ~CSIZE; in neoclock4x_start()
223 termsettings.c_cflag |= CS8; in neoclock4x_start()
242 termsettings.c_cflag &= ~PARENB; in neoclock4x_start()
243 termsettings.c_cflag |= CSTOPB; in neoclock4x_start()
244 termsettings.c_cflag &= ~CSIZE; in neoclock4x_start()
245 termsettings.c_cflag |= CS8; in neoclock4x_start()
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dsys_bsd.c68 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD)
70 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT)
441 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode()
442 tmp_tc.c_cflag |= CS8; in TerminalNewMode()
448 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode()
449 tmp_tc.c_cflag |= old_tc.c_cflag & (CSIZE|PARENB); in TerminalNewMode()
/freebsd/sys/dev/usb/serial/
H A Duark.c386 if (t->c_cflag & CSTOPB) in uark_cfg_param()
391 if (t->c_cflag & PARENB) { in uark_cfg_param()
392 if (t->c_cflag & PARODD) in uark_cfg_param()
399 switch (t->c_cflag & CSIZE) { in uark_cfg_param()
H A Ducycom.c507 if (t->c_cflag & CIGNORE) { in ucycom_cfg_param()
511 switch (t->c_cflag & CSIZE) { in ucycom_cfg_param()
523 if (t->c_cflag & CSTOPB) in ucycom_cfg_param()
525 if (t->c_cflag & PARENB) in ucycom_cfg_param()
527 if (t->c_cflag & PARODD) in ucycom_cfg_param()
H A Dubser.c357 if (t->c_cflag & CSTOPB) in ubser_pre_param()
361 if (t->c_cflag & PARENB) in ubser_pre_param()
365 switch (t->c_cflag & CSIZE) { in ubser_pre_param()
373 if ((t->c_cflag & in ubser_pre_param()
H A Dubsa.c481 if (t->c_cflag & PARENB) in ubsa_cfg_param()
482 value = (t->c_cflag & PARODD) ? UBSA_PARITY_ODD : UBSA_PARITY_EVEN; in ubsa_cfg_param()
488 switch (t->c_cflag & CSIZE) { in ubsa_cfg_param()
506 value = (t->c_cflag & CSTOPB) ? 1 : 0; in ubsa_cfg_param()
511 if (t->c_cflag & CRTSCTS) in ubsa_cfg_param()
/freebsd/contrib/telnet/telnet/
H A Dsys_bsd.c93 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD)
95 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT)
575 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode()
576 tmp_tc.c_cflag |= CS8; in TerminalNewMode()
579 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode()
580 tmp_tc.c_cflag |= old_tc.c_cflag & (CSIZE|PARENB); in TerminalNewMode()
/freebsd/sys/kern/
H A Dtty.c137 if (tp->t_termios.c_cflag & CREAD) in tty_watermarks()
336 tp->t_termios.c_cflag |= CLOCAL; in ttydev_open()
338 if ((tp->t_termios.c_cflag & CNO_RTSDTR) == 0) in ttydev_open()
353 (tp->t_termios.c_cflag & CLOCAL) == 0) { in ttydev_open()
851 new->c_cflag = (old->c_cflag & lock->c_cflag) | in ttydev_ioctl()
852 (new->c_cflag & ~lock->c_cflag); in ttydev_ioctl()
1132 t->c_cflag = TTYDEF_CFLAG; in tty_init_termios()
1154 ti->c_cflag |= CLOCAL; in tty_init_console()
1155 to->c_cflag |= CLOCAL; in tty_init_console()
1223 t->c_cflag |= CREAD; in ttydevsw_defparam()
[all …]
H A Dtty_compat.c277 tcflag_t cflag = tp->t_termios.c_cflag; in ttcompatgetflags()
338 tcflag_t cflag = t->c_cflag; in ttcompatsetflags()
405 t->c_cflag = cflag; in ttcompatsetflags()
415 tcflag_t cflag = t->c_cflag; in ttcompatsetlflags()
481 t->c_cflag = cflag; in ttcompatsetlflags()
/freebsd/libexec/getty/
H A Dsubr.c239 tmode.c_cflag = C0; in set_flags()
248 tmode.c_cflag = C1; in set_flags()
257 tmode.c_cflag = C2; in set_flags()
268 cflag = omode.c_cflag; in set_flags()
386 tmode.c_cflag = cflag; in set_flags()
/freebsd/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c179 if (tty->c_cflag & ALLCTRL) in _nc_trace_ttymode()
180 lookup_bits(buf, cflags, "cflags", tty->c_cflag); in _nc_trace_ttymode()
199 int value = (int) (tty->c_cflag & CSIZE); in _nc_trace_ttymode()
/freebsd/usr.bin/tip/tip/
H A Dtip.c548 cntrl.c_cflag &= ~(CSIZE|PARENB); in ttysetup()
549 cntrl.c_cflag |= CS8; in ttysetup()
551 cntrl.c_cflag |= CLOCAL; in ttysetup()
553 cntrl.c_cflag |= CRTSCTS; in ttysetup()

1234