Home
last modified time | relevance | path

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

12345

/drivers/char/
Dtty_ioctl.c174 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios()
235 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate()
246 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate()
269 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate()
282 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate()
334 if ((termios->c_cflag & CBAUD) == BOTHER) in tty_termios_encode_baud_rate()
336 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate()
338 if ((termios->c_cflag >> IBSHIFT) & CBAUD) in tty_termios_encode_baud_rate()
341 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate()
353 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate()
[all …]
Damiserial.c596 if (info->tty->termios->c_cflag & CBAUD) in startup()
678 if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) in shutdown()
704 cflag = info->tty->termios->c_cflag; in change_speed()
742 info->tty->termios->c_cflag &= ~CBAUD; in change_speed()
743 info->tty->termios->c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed()
1022 if (tty->termios->c_cflag & CRTSCTS) in rs_throttle()
1050 if (tty->termios->c_cflag & CRTSCTS) in rs_unthrottle()
1373 unsigned int cflag = tty->termios->c_cflag; in rs_set_termios()
1378 if ((old_termios->c_cflag & CBAUD) && in rs_set_termios()
1387 if (!(old_termios->c_cflag & CBAUD) && in rs_set_termios()
[all …]
Dgeneric_serial.c636 if(tiosp->c_cflag != old_termios->c_cflag) printk("c_cflag changed\n"); in gs_set_termios()
644 if ((tiosp->c_cflag & CBAUD) == B38400) { in gs_set_termios()
682 (old_termios->c_cflag & CRTSCTS)) && in gs_set_termios()
683 !( tiosp->c_cflag & CRTSCTS)) { in gs_set_termios()
691 if (!(old_termios->c_cflag & CLOCAL) && in gs_set_termios()
692 (tty->termios->c_cflag & CLOCAL)) in gs_set_termios()
Dpty.c226 tty->termios->c_cflag &= ~(CSIZE | PARENB); in pty_set_termios()
227 tty->termios->c_cflag |= (CS8 | CREAD); in pty_set_termios()
393 pty_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in legacy_pty_init()
409 pty_slave_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in legacy_pty_init()
713 ptm_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in unix98_pty_init()
730 pts_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; in unix98_pty_init()
Dstallion.c117 .c_cflag = (B9600 | CS8 | CREAD | HUPCL | CLOCAL),
855 if (tty->termios->c_cflag & HUPCL) in stl_close()
1234 if ((tiosp->c_cflag == old->c_cflag) && in stl_settermios()
1239 stl_setsignals(portp, ((tiosp->c_cflag & (CBAUD & ~CBAUDEX)) ? 1 : 0), in stl_settermios()
1241 if ((old->c_cflag & CRTSCTS) && ((tiosp->c_cflag & CRTSCTS) == 0)) { in stl_settermios()
1245 if (((old->c_cflag & CLOCAL) == 0) && (tiosp->c_cflag & CLOCAL)) in stl_settermios()
1331 if (tty->termios->c_cflag & HUPCL) in stl_hangup()
2419 portp->stats.cflags = tty->termios->c_cflag; in stl_getportstats()
2779 switch (tiosp->c_cflag & CSIZE) { in stl_cd1400setport()
2794 if (tiosp->c_cflag & CSTOPB) in stl_cd1400setport()
[all …]
/drivers/mmc/card/
Dsdio_uart.c272 switch (termios->c_cflag & CSIZE) { in sdio_uart_change_speed()
288 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed()
290 if (termios->c_cflag & PARENB) in sdio_uart_change_speed()
292 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed()
305 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed()
307 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed()
310 termios->c_cflag |= B9600; in sdio_uart_change_speed()
344 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed()
351 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed()
491 if (port->tty->termios->c_cflag & CRTSCTS) { in sdio_uart_check_modem_status()
[all …]
/drivers/char/rio/
Drioparam.c236 switch (TtyP->termios->c_cflag & CSIZE) { in RIOParam()
263 if (TtyP->termios->c_cflag & CSTOPB) { in RIOParam()
271 if (TtyP->termios->c_cflag & PARENB) { in RIOParam()
278 if (TtyP->termios->c_cflag & PARODD) { in RIOParam()
313 if (TtyP->termios->c_cflag & HUPCL) { in RIOParam()
329 if (TtyP->termios->c_cflag & CLOCAL) { in RIOParam()
435 rio_dprintk(RIO_DEBUG_PARAM, "Mapping of rx/tx baud %x (%x)\n", TtyP->termios->c_cflag, CBAUD); in RIOParam()
437 switch (TtyP->termios->c_cflag & CBAUD) { in RIOParam()
464 if (TtyP->termios->c_cflag & CREAD) in RIOParam()
467 if (TtyP->termios->c_cflag & RCV1EN) in RIOParam()
[all …]
/drivers/serial/
D21285.c224 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios()
225 termios->c_cflag |= CLOCAL; in serial21285_set_termios()
244 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios()
259 if (termios->c_cflag & CSTOPB) in serial21285_set_termios()
261 if (termios->c_cflag & PARENB) { in serial21285_set_termios()
263 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios()
275 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios()
296 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()
Dpnx8xxx_uart.c438 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in pnx8xxx_set_termios()
443 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios()
444 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios()
445 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios()
446 termios->c_cflag |= old_csize; in pnx8xxx_set_termios()
450 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios()
455 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios()
457 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios()
459 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios()
505 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios()
[all …]
Dserial_core.c189 if (info->port.tty->termios->c_cflag & CBAUD) in uart_startup()
234 if (!tty || (tty->termios->c_cflag & HUPCL)) in uart_shutdown()
382 termios->c_cflag &= ~CBAUD; in uart_get_baud_rate()
450 if (termios->c_cflag & CRTSCTS) in uart_change_speed()
455 if (termios->c_cflag & CLOCAL) in uart_change_speed()
616 if (tty->termios->c_cflag & CRTSCTS) in uart_throttle()
632 if (tty->termios->c_cflag & CRTSCTS) in uart_unthrottle()
1190 unsigned int cflag = tty->termios->c_cflag; in uart_set_termios()
1200 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios()
1210 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) in uart_set_termios()
[all …]
Dserial_ks8695.c392 switch (termios->c_cflag & CSIZE) { in ks8695uart_set_termios()
408 if (termios->c_cflag & CSTOPB) in ks8695uart_set_termios()
412 if (termios->c_cflag & PARENB) { in ks8695uart_set_termios()
413 if (termios->c_cflag & CMSPAR) { /* Mark or Space parity */ in ks8695uart_set_termios()
414 if (termios->c_cflag & PARODD) in ks8695uart_set_termios()
419 else if (termios->c_cflag & PARODD) in ks8695uart_set_termios()
433 uart_update_timeout(port, termios->c_cflag, baud); in ks8695uart_set_termios()
460 if ((termios->c_cflag & CREAD) == 0) in ks8695uart_set_termios()
464 if (UART_ENABLE_MS(port, termios->c_cflag)) in ks8695uart_set_termios()
Dsa1100.c414 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in sa1100_set_termios()
419 while ((termios->c_cflag & CSIZE) != CS7 && in sa1100_set_termios()
420 (termios->c_cflag & CSIZE) != CS8) { in sa1100_set_termios()
421 termios->c_cflag &= ~CSIZE; in sa1100_set_termios()
422 termios->c_cflag |= old_csize; in sa1100_set_termios()
426 if ((termios->c_cflag & CSIZE) == CS8) in sa1100_set_termios()
431 if (termios->c_cflag & CSTOPB) in sa1100_set_termios()
433 if (termios->c_cflag & PARENB) { in sa1100_set_termios()
435 if (!(termios->c_cflag & PARODD)) in sa1100_set_termios()
480 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios()
[all …]
Dimx.c667 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in imx_set_termios()
675 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in imx_set_termios()
676 termios->c_cflag |= CLOCAL; in imx_set_termios()
682 while ((termios->c_cflag & CSIZE) != CS7 && in imx_set_termios()
683 (termios->c_cflag & CSIZE) != CS8) { in imx_set_termios()
684 termios->c_cflag &= ~CSIZE; in imx_set_termios()
685 termios->c_cflag |= old_csize; in imx_set_termios()
689 if ((termios->c_cflag & CSIZE) == CS8) in imx_set_termios()
694 if (termios->c_cflag & CRTSCTS) { in imx_set_termios()
699 termios->c_cflag &= ~CRTSCTS; in imx_set_termios()
[all …]
Dvr41xx_siu.c520 tcflag_t c_cflag, c_iflag; in siu_set_termios() local
525 c_cflag = new->c_cflag; in siu_set_termios()
526 switch (c_cflag & CSIZE) { in siu_set_termios()
541 if (c_cflag & CSTOPB) in siu_set_termios()
543 if (c_cflag & PARENB) in siu_set_termios()
545 if ((c_cflag & PARODD) != PARODD) in siu_set_termios()
547 if (c_cflag & CMSPAR) in siu_set_termios()
557 uart_update_timeout(port, c_cflag, baud); in siu_set_termios()
576 if ((c_cflag & CREAD) == 0) in siu_set_termios()
581 if (UART_ENABLE_MS(port, c_cflag)) in siu_set_termios()
Dclps711x.c295 termios->c_cflag |= CREAD; in clps711xuart_set_termios()
303 switch (termios->c_cflag & CSIZE) { in clps711xuart_set_termios()
317 if (termios->c_cflag & CSTOPB) in clps711xuart_set_termios()
319 if (termios->c_cflag & PARENB) { in clps711xuart_set_termios()
321 if (!(termios->c_cflag & PARODD)) in clps711xuart_set_termios()
332 uart_update_timeout(port, termios->c_cflag, baud); in clps711xuart_set_termios()
Dserial_lh7a40x.c365 switch (termios->c_cflag & CSIZE) { in lh7a40xuart_set_termios()
380 if (termios->c_cflag & CSTOPB) in lh7a40xuart_set_termios()
382 if (termios->c_cflag & PARENB) { in lh7a40xuart_set_termios()
384 if (!(termios->c_cflag & PARODD)) in lh7a40xuart_set_termios()
392 uart_update_timeout (port, termios->c_cflag, baud); in lh7a40xuart_set_termios()
413 if ((termios->c_cflag & CREAD) == 0) in lh7a40xuart_set_termios()
419 if (UART_ENABLE_MS (port, termios->c_cflag)) in lh7a40xuart_set_termios()
Dmcf.c231 switch (termios->c_cflag & CSIZE) { in mcf_set_termios()
239 if (termios->c_cflag & PARENB) { in mcf_set_termios()
240 if (termios->c_cflag & CMSPAR) { in mcf_set_termios()
241 if (termios->c_cflag & PARODD) in mcf_set_termios()
246 if (termios->c_cflag & PARODD) in mcf_set_termios()
255 if (termios->c_cflag & CSTOPB) in mcf_set_termios()
260 if (termios->c_cflag & CRTSCTS) { in mcf_set_termios()
Dnetx-serial.c347 switch (termios->c_cflag & CSIZE) { in netx_set_termios()
362 if (termios->c_cflag & CSTOPB) in netx_set_termios()
365 if (termios->c_cflag & PARENB) { in netx_set_termios()
367 if (!(termios->c_cflag & PARODD)) in netx_set_termios()
371 if (termios->c_cflag & CRTSCTS) in netx_set_termios()
382 uart_update_timeout(port, termios->c_cflag, baud); in netx_set_termios()
398 if (UART_ENABLE_MS(port, termios->c_cflag)) in netx_set_termios()
Dpxa.c448 switch (termios->c_cflag & CSIZE) { in serial_pxa_set_termios()
464 if (termios->c_cflag & CSTOPB) in serial_pxa_set_termios()
466 if (termios->c_cflag & PARENB) in serial_pxa_set_termios()
468 if (!(termios->c_cflag & PARODD)) in serial_pxa_set_termios()
499 uart_update_timeout(port, termios->c_cflag, baud); in serial_pxa_set_termios()
526 if ((termios->c_cflag & CREAD) == 0) in serial_pxa_set_termios()
533 if (UART_ENABLE_MS(&up->port, termios->c_cflag)) in serial_pxa_set_termios()
538 if (termios->c_cflag & CRTSCTS) in serial_pxa_set_termios()
Damba-pl010.c391 switch (termios->c_cflag & CSIZE) { in pl010_set_termios()
405 if (termios->c_cflag & CSTOPB) in pl010_set_termios()
407 if (termios->c_cflag & PARENB) { in pl010_set_termios()
409 if (!(termios->c_cflag & PARODD)) in pl010_set_termios()
420 uart_update_timeout(port, termios->c_cflag, baud); in pl010_set_termios()
447 if ((termios->c_cflag & CREAD) == 0) in pl010_set_termios()
453 if (UART_ENABLE_MS(port, termios->c_cflag)) in pl010_set_termios()
Damba-pl011.c453 switch (termios->c_cflag & CSIZE) { in pl011_set_termios()
467 if (termios->c_cflag & CSTOPB) in pl011_set_termios()
469 if (termios->c_cflag & PARENB) { in pl011_set_termios()
471 if (!(termios->c_cflag & PARODD)) in pl011_set_termios()
482 uart_update_timeout(port, termios->c_cflag, baud); in pl011_set_termios()
509 if ((termios->c_cflag & CREAD) == 0) in pl011_set_termios()
512 if (UART_ENABLE_MS(port, termios->c_cflag)) in pl011_set_termios()
/drivers/usb/serial/
Dmct_u232.c454 if (tty && (tty->termios->c_cflag & CBAUD)) in mct_u232_open()
503 unsigned int c_cflag; in mct_u232_close() local
509 c_cflag = tty->termios->c_cflag; in mct_u232_close()
511 if (c_cflag & HUPCL && !port->serial->disconnected) { in mct_u232_close()
634 unsigned int cflag = termios->c_cflag; in mct_u232_set_termios()
635 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
697 termios->c_cflag &= ~CMSPAR; in mct_u232_set_termios()
Dark3116.c168 unsigned int cflag = termios->c_cflag; in ark3116_set_termios()
182 termios->c_cflag = B9600 | CS8 in ark3116_set_termios()
190 cflag = termios->c_cflag; in ark3116_set_termios()
191 termios->c_cflag &= ~(CMSPAR|CRTSCTS); in ark3116_set_termios()
Dkobil_sct.c638 int c_cflag = tty->termios->c_cflag; in kobil_set_termios() local
661 urb_val |= (c_cflag & CSTOPB) ? SUSBCR_SPASB_2StopBits : in kobil_set_termios()
670 if (c_cflag & PARENB) { in kobil_set_termios()
671 if (c_cflag & PARODD) { in kobil_set_termios()
682 tty->termios->c_cflag &= ~CMSPAR; in kobil_set_termios()
Dspcp8x5.c456 unsigned int c_cflag; in spcp8x5_close() local
500 c_cflag = tty->termios->c_cflag; in spcp8x5_close()
501 if (c_cflag & HUPCL) { in spcp8x5_close()
529 unsigned int cflag = tty->termios->c_cflag; in spcp8x5_set_termios()
530 unsigned int old_cflag = old_termios->c_cflag; in spcp8x5_set_termios()
541 tty->termios->c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL; in spcp8x5_set_termios()
669 if (tty && (tty->termios->c_cflag & CBAUD)) in spcp8x5_open()

12345