Home
last modified time | relevance | path

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

123456

/netbsd-src/sys/compat/linux/common/
H A Dlinux_termios.h69 unsigned short c_cflag; member
78 linux_tcflag_t c_cflag; member
221 switch (lt->c_cflag & LINUX_CSIZE) { in linux32_termio_to_bsd_termios()
223 bts->c_cflag = CS5; in linux32_termio_to_bsd_termios()
226 bts->c_cflag = CS6; in linux32_termio_to_bsd_termios()
229 bts->c_cflag = CS7; in linux32_termio_to_bsd_termios()
232 bts->c_cflag = CS8; in linux32_termio_to_bsd_termios()
235 bts->c_cflag |= cvtto_bsd_mask(lt->c_cflag, LINUX_CSTOPB, CSTOPB); in linux32_termio_to_bsd_termios()
236 bts->c_cflag |= cvtto_bsd_mask(lt->c_cflag, LINUX_CREAD, CREAD); in linux32_termio_to_bsd_termios()
237 bts->c_cflag |= cvtto_bsd_mask(lt->c_cflag, LINUX_PARENB, PARENB); in linux32_termio_to_bsd_termios()
[all …]
/netbsd-src/usr.sbin/lpr/lpd/
H A Dttcompat.c66 tcflag_t cflag = tp->c_cflag; in sttygetoflags()
103 tcflag_t cflag = tp->c_cflag; in sttysetoflags()
158 tp->c_cflag = cflag; in sttysetoflags()
167 tcflag_t cflag = tp->c_cflag; in sttyclearflags()
185 tp->c_cflag = cflag; in sttyclearflags()
196 tcflag_t cflag = tp->c_cflag; in sttysetflags()
213 tp->c_cflag = cflag; in sttysetflags()
224 tcflag_t cflag = tp->c_cflag; in sttyclearlflags()
248 tp->c_cflag = cflag; in sttyclearlflags()
259 tcflag_t cflag = tp->c_cflag; in sttysetlflags()
[all …]
H A Dkey.c220 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw()
221 ip->t.c_cflag |= CS8; in f_raw()
238 ip->t.c_cflag = TTYDEF_CFLAG | (ip->t.c_cflag & (CLOCAL|CRTSCTS|CDTRCTS)); in f_sane()
/netbsd-src/sys/arch/zaurus/stand/zboot/
H A Dtermios.c55 t->c_cflag &= ~LINUX_CBAUD; in linux_cfsetspeed()
56 t->c_cflag |= mask; in linux_cfsetspeed()
79 t->c_cflag &= ~(LINUX_CSIZE|LINUX_PARENB); in linux_cfmakeraw()
80 t->c_cflag |= LINUX_CS8; in linux_cfmakeraw()
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dttymodes.h165 TTYMODE(CS7, c_cflag, 90)
166 TTYMODE(CS8, c_cflag, 91)
167 TTYMODE(PARENB, c_cflag, 92)
168 TTYMODE(PARODD, c_cflag, 93)
/netbsd-src/sys/dev/ic/
H A Dcd18xx.c438 t.c_cflag = TTYDEF_CFLAG; in cdttyopen()
441 SET(t.c_cflag, CLOCAL); in cdttyopen()
443 SET(t.c_cflag, CRTSCTS); in cdttyopen()
445 SET(t.c_cflag, CDTRCTS); in cdttyopen()
447 SET(t.c_cflag, MDMBUF); in cdttyopen()
768 SET(t->c_cflag, CLOCAL); in cdttyparam()
769 CLR(t->c_cflag, HUPCL); in cdttyparam()
778 tp->t_cflag == t->c_cflag) in cdttyparam()
790 switch (t->c_cflag & CSIZE) { in cdttyparam()
804 if (ISSET(t->c_cflag, PARENB)) { in cdttyparam()
[all …]
/netbsd-src/sys/arch/arm/clps711x/
H A Dclpscom.c490 SET(t->c_cflag, CLOCAL); in clpscom_param()
491 CLR(t->c_cflag, HUPCL); in clpscom_param()
500 tp->t_cflag == t->c_cflag) in clpscom_param()
507 if (ISSET(t->c_cflag, CLOCAL | MDMBUF)) in clpscom_param()
515 if (ISSET(t->c_cflag, CRTSCTS)) { in clpscom_param()
517 } else if (ISSET(t->c_cflag, MDMBUF)) { in clpscom_param()
537 clpscom_cflag2ubrlcr(t->c_cflag)); in clpscom_param()
542 tp->t_cflag = t->c_cflag; in clpscom_param()
552 if (!ISSET(t->c_cflag, CHWFLOW)) in clpscom_param()
618 t.c_cflag = clpscom_cncflag; in clpscomopen()
[all …]
/netbsd-src/sys/dev/usb/
H A Ducycom.c390 t.c_cflag = TTYDEF_CFLAG; in ucycomopen()
392 SET(t.c_cflag, CLOCAL); in ucycomopen()
394 SET(t.c_cflag, CRTSCTS); in ucycomopen()
396 SET(t.c_cflag, MDMBUF); in ucycomopen()
694 SET(t->c_cflag, CLOCAL); in ucycomparam()
695 CLR(t->c_cflag, HUPCL); in ucycomparam()
704 tp->t_cflag == t->c_cflag) in ucycomparam()
712 tp->t_cflag = t->c_cflag; in ucycomparam()
717 if (t->c_cflag & CIGNORE) { in ucycomparam()
721 switch (t->c_cflag & CSIZE) { in ucycomparam()
[all …]
H A Duxrcom.c256 if (ISSET(t->c_cflag, CSTOPB)) in uxrcom_param()
260 if (ISSET(t->c_cflag, PARENB)) { in uxrcom_param()
261 if (ISSET(t->c_cflag, PARODD)) in uxrcom_param()
267 switch (ISSET(t->c_cflag, CSIZE)) { in uxrcom_param()
288 if (ISSET(t->c_cflag, CRTSCTS)) { in uxrcom_param()
H A Duark.c266 if (ISSET(t->c_cflag, CSTOPB)) in uark_param()
271 if (ISSET(t->c_cflag, PARENB)) { in uark_param()
272 if (ISSET(t->c_cflag, PARODD)) in uark_param()
279 switch (ISSET(t->c_cflag, CSIZE)) { in uark_param()
299 if (ISSET(t->c_cflag, CRTSCTS)) { in uark_param()
/netbsd-src/sys/arch/atari/dev/
H A Dser.c426 t.c_cflag = CONSCFLAG; in seropen()
429 t.c_cflag = TTYDEF_CFLAG; in seropen()
432 SET(t.c_cflag, CLOCAL); in seropen()
434 SET(t.c_cflag, CRTSCTS); in seropen()
436 SET(t.c_cflag, MDMBUF); in seropen()
679 switch (ISSET(t->c_cflag, CSIZE)) { in serparam()
693 if (ISSET(t->c_cflag, PARENB)) { in serparam()
695 if (!ISSET(t->c_cflag, PARODD)) in serparam()
698 if (ISSET(t->c_cflag, CSTOPB)) in serparam()
713 SET(t->c_cflag, CLOCAL); in serparam()
[all …]
/netbsd-src/share/examples/rump/tipsy/
H A Dtipsy.c117 tios.c_cflag &= ~(CSIZE|PARENB); in main()
118 tios.c_cflag |= CS8; in main()
119 tios.c_cflag |= CLOCAL; in main()
/netbsd-src/sys/arch/sh3/dev/
H A Dsci.c509 SET(t->c_cflag, CLOCAL); in sciparam()
510 CLR(t->c_cflag, HUPCL); in sciparam()
519 tp->t_cflag == t->c_cflag) in sciparam()
524 lcr = ISSET(sc->sc_lcr, LCR_SBREAK) | cflag2lcr(t->c_cflag); in sciparam()
553 tp->t_cflag = t->c_cflag; in sciparam()
568 if (!ISSET(t->c_cflag, CHWFLOW)) { in sciparam()
585 if (!ISSET(t->c_cflag, CHWFLOW)) { in sciparam()
667 t.c_cflag = sciconscflag; in sciopen()
670 t.c_cflag = TTYDEF_CFLAG; in sciopen()
673 SET(t.c_cflag, CLOCAL); in sciopen()
[all …]
H A Dscif.c606 SET(t->c_cflag, CLOCAL); in scifparam()
607 CLR(t->c_cflag, HUPCL); in scifparam()
616 tp->t_cflag == t->c_cflag) in scifparam()
621 lcr = ISSET(sc->sc_lcr, LCR_SBREAK) | cflag2lcr(t->c_cflag); in scifparam()
630 if (ISSET(t->c_cflag, CRTSCTS)) { in scifparam()
662 tp->t_cflag = t->c_cflag; in scifparam()
677 if (!ISSET(t->c_cflag, CHWFLOW)) { in scifparam()
694 if (!ISSET(t->c_cflag, CHWFLOW)) { in scifparam()
771 t.c_cflag = scifconscflag; in scifopen()
774 t.c_cflag = TTYDEF_CFLAG; in scifopen()
[all …]
/netbsd-src/bin/stty/
H A Dkey.c223 ip->t.c_cflag = random(); in f_insane()
269 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw()
270 ip->t.c_cflag |= CS8; in f_raw()
285 ip->t.c_cflag = TTYDEF_CFLAG | (ip->t.c_cflag & (CLOCAL|CRTSCTS|CDTRCTS)); in f_sane()
/netbsd-src/usr.sbin/btattach/
H A Dbtattach.c267 tio.c_cflag |= (cflag | type->cflag); in main()
268 tio.c_cflag &= ~Cflag; in main()
605 tio.c_cflag |= (CLOCAL | CRTSCTS | PARENB); in test()
606 tio.c_cflag |= cflag; in test()
607 tio.c_cflag &= ~Cflag; in test()
656 if (tio.c_cflag & PARENB) in test()
658 tio.c_cflag & PARODD ? "odd " : ""); in test()
/netbsd-src/sys/arch/mips/sibyte/dev/
H A Dsbjcn.c553 t.c_cflag = sbjcn_cons_cflag; in sbjcnopen()
556 t.c_cflag = TTYDEF_CFLAG; in sbjcnopen()
559 SET(t.c_cflag, CLOCAL); in sbjcnopen()
561 SET(t.c_cflag, CRTSCTS); in sbjcnopen()
563 SET(t.c_cflag, MDMBUF); in sbjcnopen()
921 SET(t->c_cflag, CLOCAL); in sbjcn_param()
922 CLR(t->c_cflag, HUPCL); in sbjcn_param()
931 tp->t_cflag == t->c_cflag) in sbjcn_param()
934 if (cflag2modes(t->c_cflag, &mode1, &mode2) < 0) in sbjcn_param()
946 if (ISSET(t->c_cflag, CLOCAL | MDMBUF)) in sbjcn_param()
[all …]
/netbsd-src/sys/compat/ultrix/
H A Dultrix_ioctl.c196 l = st->c_cflag; in stios2btios()
219 bt->c_cflag = r; in stios2btios()
329 l = bt->c_cflag; in btios2stios()
352 st->c_cflag = r; in btios2stios()
374 st->c_cflag |= speed; in btios2stios()
430 t->c_cflag = ts->c_cflag; in stios2stio()
446 ts->c_cflag = t->c_cflag; in stio2stios()
/netbsd-src/sys/arch/arm/ixp12x0/
H A Dixp12x0_com.c279 SET(t->c_cflag, CLOCAL); in ixpcomparam()
280 CLR(t->c_cflag, HUPCL); in ixpcomparam()
289 tp->t_cflag == t->c_cflag) in ixpcomparam()
292 cr |= cflag2cr(t->c_cflag); in ixpcomparam()
307 tp->t_cflag = t->c_cflag; in ixpcomparam()
332 if (!ISSET(t->c_cflag, CHWFLOW)) { in ixpcomparam()
544 t.c_cflag = ixpcomcn_sc.sc_cflag; in ixpcomopen()
547 t.c_cflag = TTYDEF_CFLAG; in ixpcomopen()
550 SET(t.c_cflag, CLOCAL); in ixpcomopen()
552 SET(t.c_cflag, CRTSCTS); in ixpcomopen()
[all …]
/netbsd-src/external/bsd/tmux/dist/compat/
H A Dcfmakeraw.c31 tio->c_cflag &= ~(CSIZE|PARENB); in cfmakeraw()
32 tio->c_cflag |= CS8; in cfmakeraw()
/netbsd-src/sys/arch/epoc32/windermere/
H A Dwmcom.c415 SET(t->c_cflag, CLOCAL); in wmcom_param()
416 CLR(t->c_cflag, HUPCL); in wmcom_param()
425 tp->t_cflag == t->c_cflag) in wmcom_param()
430 bus_space_write_1(iot, ioh, UARTFCR, wmcom_cflag2fcr(t->c_cflag)); in wmcom_param()
435 tp->t_cflag = t->c_cflag; in wmcom_param()
506 t.c_cflag = wmcom_cncflag; in wmcomopen()
509 t.c_cflag = TTYDEF_CFLAG; in wmcomopen()
512 SET(t.c_cflag, CLOCAL); in wmcomopen()
514 SET(t.c_cflag, CRTSCTS); in wmcomopen()
516 SET(t.c_cflag, MDMBUF); in wmcomopen()
/netbsd-src/sys/arch/arm/at91/
H A Dat91dbgu.c310 SET(t->c_cflag, CLOCAL); in at91dbgu_param()
311 CLR(t->c_cflag, HUPCL); in at91dbgu_param()
320 tp->t_cflag == t->c_cflag) in at91dbgu_param()
330 tp->t_cflag = t->c_cflag; in at91dbgu_param()
346 if (!ISSET(t->c_cflag, CHWFLOW)) { in at91dbgu_param()
538 t.c_cflag = dbgu_cn_sc.sc_cflag; in at91dbgu_open()
541 t.c_cflag = TTYDEF_CFLAG; in at91dbgu_open()
544 SET(t.c_cflag, CLOCAL); in at91dbgu_open()
546 SET(t.c_cflag, CRTSCTS); in at91dbgu_open()
548 SET(t.c_cflag, MDMBUF); in at91dbgu_open()
/netbsd-src/sys/compat/linux32/common/
H A Dlinux32_termios.h51 unsigned short c_cflag; member
60 linux32_tcflag_t c_cflag; member
/netbsd-src/lib/libc/termios/
H A Dcfmakeraw.c64 t->c_cflag &= ~(CSIZE|PARENB); in __weak_alias()
65 t->c_cflag |= CS8; in __weak_alias()
/netbsd-src/sys/arch/arm/ep93xx/
H A Depcom.c305 SET(t->c_cflag, CLOCAL); in epcomparam()
306 CLR(t->c_cflag, HUPCL); in epcomparam()
315 tp->t_cflag == t->c_cflag) in epcomparam()
320 sc->sc_lcrhi = cflag2lcrhi(t->c_cflag); in epcomparam()
327 tp->t_cflag = t->c_cflag; in epcomparam()
343 if (!ISSET(t->c_cflag, CHWFLOW)) { in epcomparam()
539 t.c_cflag = epcomcn_sc.sc_cflag; in epcomopen()
542 t.c_cflag = TTYDEF_CFLAG; in epcomopen()
545 SET(t.c_cflag, CLOCAL); in epcomopen()
547 SET(t.c_cflag, CRTSCTS); in epcomopen()
[all …]

123456