| /freebsd-13.1/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-13.1/sys/dev/uart/ |
| H A D | uart_tty.c | 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() 302 UART_IOCTL(sc, UART_IOCTL_OFLOW, (t->c_cflag & CCTS_OFLOW)); in uart_tty_param() [all …]
|
| /freebsd-13.1/usr.sbin/bluetooth/hcseriald/ |
| H A D | hcseriald.c | 185 t.c_cflag |= CLOCAL; /* clocal */ in open_device() 186 t.c_cflag &= ~CSIZE; /* cs8 */ in open_device() 187 t.c_cflag |= CS8; /* cs8 */ in open_device() 188 t.c_cflag &= ~PARENB; /* -parenb */ in open_device() 189 t.c_cflag &= ~CSTOPB; /* -cstopb */ in open_device() 190 t.c_cflag |= CRTSCTS; /* crtscts */ in open_device()
|
| /freebsd-13.1/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-13.1/usr.bin/tset/ |
| H A D | set.c | 129 mode.c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD | CLOCAL); in reset_mode() 130 mode.c_cflag |= (CS8 | CREAD); in reset_mode() 210 mode.c_cflag |= PARENB; in set_conversions() 211 mode.c_cflag &= ~PARODD; in set_conversions() 214 mode.c_cflag |= PARENB; in set_conversions() 215 mode.c_cflag |= PARODD; in set_conversions()
|
| /freebsd-13.1/contrib/telnet/telnetd/ |
| H A D | sys_term.c | 108 # define cfsetospeed(tp, val) (tp)->c_cflag &= ~CBAUD; \ 109 (tp)->c_cflag |= (val) 110 # define cfgetospeed(tp) ((tp)->c_cflag & CBAUD) 113 (tp)->c_cflag |= ((val)<<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 &= ~(CSIZE|PARENB); in tty_binaryout() 564 termbuf.c_cflag |= CS8; in tty_binaryout() 567 termbuf.c_cflag &= ~CSIZE; in tty_binaryout() [all …]
|
| /freebsd-13.1/bin/stty/ |
| H A D | key.c | 242 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw() 243 ip->t.c_cflag |= CS8; in f_raw() 262 ip->t.c_cflag = def.c_cflag | (ip->t.c_cflag & CLOCAL); in f_sane()
|
| H A D | gfmt.c | 65 (u_long)tp->c_cflag, (u_long)tp->c_iflag, (u_long)tp->c_lflag, in gprint() 93 tp->c_cflag = tmp; in gread()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | termios.c | 65 localterm.c_cflag |= CIGNORE; in tcsetattr() 174 t->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw() 175 t->c_cflag |= CS8|CREAD; in cfmakeraw() 188 t->c_cflag = TTYDEF_CFLAG; in cfmakesane()
|
| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | tty.c | 454 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Raw() 456 ios.c_cflag |= CLOCAL; in tty_Raw() 459 ios.c_cflag |= HUPCL; in tty_Raw() 721 (u_long)ios.c_iflag, (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create() 725 ios.c_cflag |= CLOCAL | CCTS_OFLOW | CRTS_IFLOW; in tty_Create() 727 ios.c_cflag |= CLOCAL; in tty_Create() 732 ios.c_cflag |= HUPCL; in tty_Create() 736 ios.c_cflag &= ~(CSIZE | PARODD | PARENB); in tty_Create() 737 ios.c_cflag |= p->cfg.parity; in tty_Create() 753 (u_long)ios.c_oflag, (u_long)ios.c_cflag); in tty_Create()
|
| /freebsd-13.1/sys/dev/nmdm/ |
| H A D | nmdm.c | 306 switch (t->c_cflag & CSIZE) { in bits_per_char() 313 if (t->c_cflag & PARENB) in bits_per_char() 315 if (t->c_cflag & CSTOPB) in bits_per_char() 329 if (!((t->c_cflag | tp2->t_termios.c_cflag) & CDSR_OFLOW)) { in nmdm_param()
|
| /freebsd-13.1/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) 155 (tp)->c_cflag |= ((val)<<IBSHIFT) 159 (tp)->c_cflag |= (val) 160 # define cfgetispeed(tp) ((tp)->c_cflag & CBAUD) 563 termbuf.c_cflag &= ~(CSIZE|PARENB); in tty_binaryout() 564 termbuf.c_cflag |= CS8; in tty_binaryout() 567 termbuf.c_cflag &= ~CSIZE; in tty_binaryout() 568 termbuf.c_cflag |= CS7|PARENB; in tty_binaryout() [all …]
|
| /freebsd-13.1/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-13.1/sys/compat/linux/ |
| H A D | linux_ioctl.c | 333 unsigned short c_cflag; member 342 unsigned int c_cflag; member 448 lios->c_cflag |= (bios->c_cflag & CSIZE) >> 4; in bsd_to_linux_termios() 564 bios->c_cflag = (lios->c_cflag & LINUX_CSIZE) << 4; in linux_to_bsd_termios() 566 bios->c_cflag |= CSTOPB; in linux_to_bsd_termios() 568 bios->c_cflag |= CREAD; in linux_to_bsd_termios() 570 bios->c_cflag |= PARENB; in linux_to_bsd_termios() 572 bios->c_cflag |= PARODD; in linux_to_bsd_termios() 574 bios->c_cflag |= HUPCL; in linux_to_bsd_termios() 650 lio->c_cflag = lios.c_cflag; in bsd_to_linux_termio() [all …]
|
| /freebsd-13.1/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-13.1/contrib/ncurses/include/ |
| H A D | nc_termios.h | 64 #define cfgetospeed(t) ((t)->c_cflag & CBAUD) 141 #define cfgetospeed(t) ((t)->c_cflag & CBAUD)
|
| /freebsd-13.1/sys/kern/ |
| H A D | tty.c | 131 if (tp->t_termios.c_cflag & CREAD) in tty_watermarks() 331 tp->t_termios.c_cflag |= CLOCAL; in ttydev_open() 629 new->c_cflag = (old->c_cflag & lock->c_cflag) | in ttydev_ioctl() 630 (new->c_cflag & ~lock->c_cflag); in ttydev_ioctl() 908 t->c_cflag = TTYDEF_CFLAG; in tty_init_termios() 930 ti->c_cflag |= CLOCAL; in tty_init_console() 931 to->c_cflag |= CLOCAL; in tty_init_console() 999 t->c_cflag |= CREAD; in ttydevsw_defparam() 1720 t->c_cflag &= TTYSUP_CFLAG; in tty_generic_ioctl() 1735 (tp->t_termios.c_cflag != t->c_cflag || in tty_generic_ioctl() [all …]
|
| H A D | tty_compat.c | 281 tcflag_t cflag = tp->t_termios.c_cflag; in ttcompatgetflags() 342 tcflag_t cflag = t->c_cflag; in ttcompatsetflags() 409 t->c_cflag = cflag; in ttcompatsetflags() 419 tcflag_t cflag = t->c_cflag; in ttcompatsetlflags() 485 t->c_cflag = cflag; in ttcompatsetlflags()
|
| /freebsd-13.1/contrib/ncurses/ncurses/trace/ |
| H A D | lib_tracebits.c | 177 if (tty->c_cflag & ALLCTRL) in _nc_trace_ttymode() 178 lookup_bits(buf, cflags, "cflags", tty->c_cflag); in _nc_trace_ttymode() 197 int value = (int) (tty->c_cflag & CSIZE); in _nc_trace_ttymode()
|
| /freebsd-13.1/contrib/ntp/lib/isc/unix/ |
| H A D | keyboard.c | 62 current_mode.c_cflag &= ~(CSIZE|PARENB); in isc_keyboard_open() 63 current_mode.c_cflag |= CS8; in isc_keyboard_open()
|
| /freebsd-13.1/contrib/telnet/telnet/ |
| H A D | sys_bsd.c | 95 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD) 97 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT) 577 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode() 578 tmp_tc.c_cflag |= CS8; in TerminalNewMode() 581 tmp_tc.c_cflag &= ~(CSIZE|PARENB); in TerminalNewMode() 582 tmp_tc.c_cflag |= old_tc.c_cflag & (CSIZE|PARENB); in TerminalNewMode()
|
| /freebsd-13.1/sys/dev/usb/serial/ |
| H A D | ucycom.c | 512 if (t->c_cflag & CIGNORE) { in ucycom_cfg_param() 516 switch (t->c_cflag & CSIZE) { in ucycom_cfg_param() 528 if (t->c_cflag & CSTOPB) in ucycom_cfg_param() 530 if (t->c_cflag & PARENB) in ucycom_cfg_param() 532 if (t->c_cflag & PARODD) in ucycom_cfg_param()
|
| H A D | ubser.c | 362 if (t->c_cflag & CSTOPB) in ubser_pre_param() 366 if (t->c_cflag & PARENB) in ubser_pre_param() 370 switch (t->c_cflag & CSIZE) { in ubser_pre_param() 378 if ((t->c_cflag & in ubser_pre_param()
|
| H A D | uark.c | 390 if (t->c_cflag & CSTOPB) in uark_cfg_param() 395 if (t->c_cflag & PARENB) { in uark_cfg_param() 396 if (t->c_cflag & PARODD) in uark_cfg_param() 403 switch (t->c_cflag & CSIZE) { in uark_cfg_param()
|