/freebsd/contrib/tcsh/ |
H A D | mi.termios.c | 232 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 D | ed.init.c | 204 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 D | uart_tty.c | 213 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 D | termios.c | 39 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 D | Terminal.cpp | 308 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 D | ttymodes.h | 166 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 D | key.c | 234 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw() 235 ip->t.c_cflag |= CS8; in f_raw() 254 ip->t.c_cflag = def.c_cflag | (ip->t.c_cflag & CLOCAL); in f_sane()
|
H A D | gfmt.c | 57 (u_long)tp->c_cflag, (u_long)tp->c_iflag, (u_long)tp->c_lflag, in gprint() 85 tp->c_cflag = tmp; in gread()
|
/freebsd/lib/libc/gen/ |
H A D | termios.c | 61 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 D | tty.c | 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() 719 (u_long)ios.c_iflag, (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create() 723 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Create() 725 ios.c_cflag |= CLOCAL; 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() 751 (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()
|
/freebsd/crypto/heimdal/appl/telnet/telnetd/ |
H A D | sys_term.c | 150 # 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 D | nmdm.c | 304 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 D | linux_ioctl.c | 319 unsigned short c_cflag; member 328 unsigned int c_cflag; member 435 lios->c_cflag = bsd_to_linux_speed(bios->c_ispeed, sptab); in bsd_to_linux_termios() 436 lios->c_cflag |= (bios->c_cflag & CSIZE) >> 4; in bsd_to_linux_termios() 437 if (bios->c_cflag & CSTOPB) in bsd_to_linux_termios() 438 lios->c_cflag |= LINUX_CSTOPB; in bsd_to_linux_termios() 439 if (bios->c_cflag & CREAD) in bsd_to_linux_termios() 440 lios->c_cflag |= LINUX_CREAD; in bsd_to_linux_termios() 441 if (bios->c_cflag & PARENB) in bsd_to_linux_termios() 442 lios->c_cflag |= LINUX_PARENB; in bsd_to_linux_termios() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_neoclock4x.c | 200 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 D | sys_bsd.c | 68 # 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/kern/ |
H A D | tty.c | 130 if (tp->t_termios.c_cflag & CREAD) in tty_watermarks() 327 tp->t_termios.c_cflag |= CLOCAL; in ttydev_open() 329 if ((tp->t_termios.c_cflag & CNO_RTSDTR) == 0) in ttydev_open() 344 (tp->t_termios.c_cflag & CLOCAL) == 0) { in ttydev_open() 628 new->c_cflag = (old->c_cflag & lock->c_cflag) | in ttydev_ioctl() 629 (new->c_cflag & ~lock->c_cflag); in ttydev_ioctl() 907 t->c_cflag = TTYDEF_CFLAG; in tty_init_termios() 929 ti->c_cflag |= CLOCAL; in tty_init_console() 930 to->c_cflag |= CLOCAL; in tty_init_console() 998 t->c_cflag |= CREAD; in ttydevsw_defparam() [all …]
|
H A D | tty_compat.c | 277 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/contrib/ncurses/include/ |
H A D | nc_termios.h | 64 #define cfgetospeed(t) ((t)->c_cflag & CBAUD) 145 #define cfgetospeed(t) ((t)->c_cflag & CBAUD)
|
/freebsd/sys/dev/usb/serial/ |
H A D | uark.c | 386 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 D | ucycom.c | 507 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 D | ubser.c | 357 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 D | ubsa.c | 481 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 D | sys_bsd.c | 93 # 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/libexec/getty/ |
H A D | subr.c | 239 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 D | lib_tracebits.c | 183 if (tty->c_cflag & ALLCTRL) in _nc_trace_ttymode() 184 lookup_bits(buf, cflags, "cflags", tty->c_cflag); in _nc_trace_ttymode() 203 int value = (int) (tty->c_cflag & CSIZE); in _nc_trace_ttymode()
|