Home
last modified time | relevance | path

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

1234

/freebsd-14.2/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-14.2/sys/dev/uart/
H A Duart_tty.c233 if ((tp->t_termios.c_cflag & CRTS_IFLOW) && !sc->sc_hwiflow) in uart_tty_inwakeup()
275 switch (t->c_cflag & CSIZE) { in uart_tty_param()
281 stopbits = (t->c_cflag & CSTOPB) ? 2 : 1; in uart_tty_param()
282 if (t->c_cflag & PARENB) in uart_tty_param()
283 parity = (t->c_cflag & PARODD) ? UART_PARITY_ODD : in uart_tty_param()
289 if ((t->c_cflag & CNO_RTSDTR) == 0) in uart_tty_param()
293 if ((t->c_cflag & CRTS_IFLOW) && sc->sc_isquelch) in uart_tty_param()
296 if ((t->c_cflag & CNO_RTSDTR) == 0) in uart_tty_param()
300 UART_IOCTL(sc, UART_IOCTL_IFLOW, (t->c_cflag & CRTS_IFLOW)); in uart_tty_param()
303 UART_IOCTL(sc, UART_IOCTL_OFLOW, (t->c_cflag & CCTS_OFLOW)); in uart_tty_param()
[all …]
/freebsd-14.2/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-14.2/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-14.2/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-14.2/bin/stty/
H A Dkey.c240 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw()
241 ip->t.c_cflag |= CS8; in f_raw()
260 ip->t.c_cflag = def.c_cflag | (ip->t.c_cflag & CLOCAL); in f_sane()
H A Dgfmt.c63 (u_long)tp->c_cflag, (u_long)tp->c_iflag, (u_long)tp->c_lflag, in gprint()
91 tp->c_cflag = tmp; in gread()
/freebsd-14.2/lib/libc/gen/
H A Dtermios.c63 localterm.c_cflag |= CIGNORE; in tcsetattr()
172 t->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw()
173 t->c_cflag |= CS8|CREAD; in cfmakeraw()
186 t->c_cflag = TTYDEF_CFLAG; in cfmakesane()
/freebsd-14.2/usr.sbin/ppp/
H A Dtty.c452 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-14.2/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-14.2/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)
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-14.2/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-14.2/sys/compat/linux/
H A Dlinux_ioctl.c314 unsigned short c_cflag; member
323 unsigned int c_cflag; member
429 lios->c_cflag |= (bios->c_cflag & CSIZE) >> 4; in bsd_to_linux_termios()
545 bios->c_cflag = (lios->c_cflag & LINUX_CSIZE) << 4; in linux_to_bsd_termios()
547 bios->c_cflag |= CSTOPB; in linux_to_bsd_termios()
549 bios->c_cflag |= CREAD; in linux_to_bsd_termios()
551 bios->c_cflag |= PARENB; in linux_to_bsd_termios()
553 bios->c_cflag |= PARODD; in linux_to_bsd_termios()
555 bios->c_cflag |= HUPCL; in linux_to_bsd_termios()
631 lio->c_cflag = lios.c_cflag; in bsd_to_linux_termio()
[all …]
/freebsd-14.2/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-14.2/contrib/ncurses/include/
H A Dnc_termios.h64 #define cfgetospeed(t) ((t)->c_cflag & CBAUD)
145 #define cfgetospeed(t) ((t)->c_cflag & CBAUD)
/freebsd-14.2/sys/kern/
H A Dtty.c130 if (tp->t_termios.c_cflag & CREAD) in tty_watermarks()
327 tp->t_termios.c_cflag |= CLOCAL; 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()
1741 t->c_cflag &= TTYSUP_CFLAG; in tty_generic_ioctl()
1756 (tp->t_termios.c_cflag != t->c_cflag || in tty_generic_ioctl()
[all …]
H A Dtty_compat.c279 tcflag_t cflag = tp->t_termios.c_cflag; in ttcompatgetflags()
340 tcflag_t cflag = t->c_cflag; in ttcompatsetflags()
407 t->c_cflag = cflag; in ttcompatsetflags()
417 tcflag_t cflag = t->c_cflag; in ttcompatsetlflags()
483 t->c_cflag = cflag; in ttcompatsetlflags()
/freebsd-14.2/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.c508 if (t->c_cflag & CIGNORE) { in ucycom_cfg_param()
512 switch (t->c_cflag & CSIZE) { in ucycom_cfg_param()
524 if (t->c_cflag & CSTOPB) in ucycom_cfg_param()
526 if (t->c_cflag & PARENB) in ucycom_cfg_param()
528 if (t->c_cflag & PARODD) in ucycom_cfg_param()
H A Dubser.c358 if (t->c_cflag & CSTOPB) in ubser_pre_param()
362 if (t->c_cflag & PARENB) in ubser_pre_param()
366 switch (t->c_cflag & CSIZE) { in ubser_pre_param()
374 if ((t->c_cflag & in ubser_pre_param()
H A Dubsa.c482 if (t->c_cflag & PARENB) in ubsa_cfg_param()
483 value = (t->c_cflag & PARODD) ? UBSA_PARITY_ODD : UBSA_PARITY_EVEN; in ubsa_cfg_param()
489 switch (t->c_cflag & CSIZE) { in ubsa_cfg_param()
507 value = (t->c_cflag & CSTOPB) ? 1 : 0; in ubsa_cfg_param()
512 if (t->c_cflag & CRTSCTS) in ubsa_cfg_param()
/freebsd-14.2/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-14.2/contrib/ncurses/ncurses/trace/
H A Dlib_tracebits.c183 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()
/freebsd-14.2/libexec/getty/
H A Dsubr.c245 tmode.c_cflag = C0; in set_flags()
254 tmode.c_cflag = C1; in set_flags()
263 tmode.c_cflag = C2; in set_flags()
274 cflag = omode.c_cflag; in set_flags()
392 tmode.c_cflag = cflag; in set_flags()

1234