/drivers/tty/serial/ |
D | fsl_lpuart.c | 841 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10; in lpuart_start_rx_dma() 842 if (termios->c_cflag & PARENB) in lpuart_start_rx_dma() 1273 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in lpuart_set_termios() 1290 while ((termios->c_cflag & CSIZE) != CS8 && in lpuart_set_termios() 1291 (termios->c_cflag & CSIZE) != CS7) { in lpuart_set_termios() 1292 termios->c_cflag &= ~CSIZE; in lpuart_set_termios() 1293 termios->c_cflag |= old_csize; in lpuart_set_termios() 1297 if ((termios->c_cflag & CSIZE) == CS8 || in lpuart_set_termios() 1298 (termios->c_cflag & CSIZE) == CS7) in lpuart_set_termios() 1301 if (termios->c_cflag & CMSPAR) { in lpuart_set_termios() [all …]
|
D | 21285.c | 218 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios() 219 termios->c_cflag |= CLOCAL; in serial21285_set_termios() 234 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios() 249 if (termios->c_cflag & CSTOPB) in serial21285_set_termios() 251 if (termios->c_cflag & PARENB) { in serial21285_set_termios() 253 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios() 265 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 286 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()
|
D | pnx8xxx_uart.c | 450 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in pnx8xxx_set_termios() 455 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios() 456 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios() 457 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios() 458 termios->c_cflag |= old_csize; in pnx8xxx_set_termios() 462 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios() 467 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios() 469 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios() 471 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios() 517 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios() [all …]
|
D | serial_ks8695.c | 394 switch (termios->c_cflag & CSIZE) { in ks8695uart_set_termios() 410 if (termios->c_cflag & CSTOPB) in ks8695uart_set_termios() 414 if (termios->c_cflag & PARENB) { in ks8695uart_set_termios() 415 if (termios->c_cflag & CMSPAR) { /* Mark or Space parity */ in ks8695uart_set_termios() 416 if (termios->c_cflag & PARODD) in ks8695uart_set_termios() 421 else if (termios->c_cflag & PARODD) in ks8695uart_set_termios() 435 uart_update_timeout(port, termios->c_cflag, baud); in ks8695uart_set_termios() 462 if ((termios->c_cflag & CREAD) == 0) in ks8695uart_set_termios() 466 if (UART_ENABLE_MS(port, termios->c_cflag)) in ks8695uart_set_termios()
|
D | vt8500_serial.c | 391 if (termios->c_cflag & PARENB) { in vt8500_set_termios() 393 termios->c_cflag &= ~CMSPAR; in vt8500_set_termios() 394 if (termios->c_cflag & PARODD) in vt8500_set_termios() 400 switch (termios->c_cflag & CSIZE) { in vt8500_set_termios() 406 termios->c_cflag &= ~CSIZE; in vt8500_set_termios() 407 termios->c_cflag |= CS8; in vt8500_set_termios() 413 if (termios->c_cflag & CSTOPB) in vt8500_set_termios() 428 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 442 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) in vt8500_set_termios()
|
D | sa1100.c | 424 unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8; in sa1100_set_termios() 429 while ((termios->c_cflag & CSIZE) != CS7 && in sa1100_set_termios() 430 (termios->c_cflag & CSIZE) != CS8) { in sa1100_set_termios() 431 termios->c_cflag &= ~CSIZE; in sa1100_set_termios() 432 termios->c_cflag |= old_csize; in sa1100_set_termios() 436 if ((termios->c_cflag & CSIZE) == CS8) in sa1100_set_termios() 441 if (termios->c_cflag & CSTOPB) in sa1100_set_termios() 443 if (termios->c_cflag & PARENB) { in sa1100_set_termios() 445 if (!(termios->c_cflag & PARODD)) in sa1100_set_termios() 490 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios() [all …]
|
D | vr41xx_siu.c | 518 tcflag_t c_cflag, c_iflag; in siu_set_termios() local 523 c_cflag = new->c_cflag; in siu_set_termios() 524 switch (c_cflag & CSIZE) { in siu_set_termios() 539 if (c_cflag & CSTOPB) in siu_set_termios() 541 if (c_cflag & PARENB) in siu_set_termios() 543 if ((c_cflag & PARODD) != PARODD) in siu_set_termios() 545 if (c_cflag & CMSPAR) in siu_set_termios() 555 uart_update_timeout(port, c_cflag, baud); in siu_set_termios() 574 if ((c_cflag & CREAD) == 0) in siu_set_termios() 579 if (UART_ENABLE_MS(port, c_cflag)) in siu_set_termios()
|
D | digicolor-usart.c | 301 termios->c_cflag &= ~CMSPAR; in digicolor_uart_set_termios() 310 switch (termios->c_cflag & CSIZE) { in digicolor_uart_set_termios() 319 if (termios->c_cflag & CSTOPB) in digicolor_uart_set_termios() 322 if (termios->c_cflag & PARENB) { in digicolor_uart_set_termios() 324 if (termios->c_cflag & PARODD) in digicolor_uart_set_termios() 336 if (!(termios->c_cflag & CREAD)) in digicolor_uart_set_termios() 342 uart_update_timeout(port, termios->c_cflag, baud); in digicolor_uart_set_termios()
|
D | ar933x_uart.c | 246 new->c_cflag &= ~CSIZE; in ar933x_uart_set_termios() 247 new->c_cflag |= CS8; in ar933x_uart_set_termios() 250 new->c_cflag &= ~CSTOPB; in ar933x_uart_set_termios() 253 if (new->c_cflag & PARENB) { in ar933x_uart_set_termios() 254 if (!(new->c_cflag & PARODD)) in ar933x_uart_set_termios() 263 new->c_cflag &= ~CMSPAR; in ar933x_uart_set_termios() 279 uart_update_timeout(port, new->c_cflag, baud); in ar933x_uart_set_termios() 284 if ((new->c_cflag & CREAD) == 0) in ar933x_uart_set_termios()
|
D | mcf.c | 219 switch (termios->c_cflag & CSIZE) { in mcf_set_termios() 227 if (termios->c_cflag & PARENB) { in mcf_set_termios() 228 if (termios->c_cflag & CMSPAR) { in mcf_set_termios() 229 if (termios->c_cflag & PARODD) in mcf_set_termios() 234 if (termios->c_cflag & PARODD) in mcf_set_termios() 249 if (termios->c_cflag & CSTOPB) in mcf_set_termios() 254 if (termios->c_cflag & CRTSCTS) { in mcf_set_termios() 265 uart_update_timeout(port, termios->c_cflag, baud); in mcf_set_termios()
|
D | etraxfs-uart.c | 664 termios->c_cflag == old->c_cflag && in etraxfs_uart_set_termios() 717 if ((termios->c_cflag & CSIZE) == CS7) { in etraxfs_uart_set_termios() 723 if (termios->c_cflag & CSTOPB) { in etraxfs_uart_set_termios() 728 if (termios->c_cflag & PARENB) { in etraxfs_uart_set_termios() 734 if (termios->c_cflag & CMSPAR) { in etraxfs_uart_set_termios() 735 if (termios->c_cflag & PARODD) { in etraxfs_uart_set_termios() 744 if (termios->c_cflag & PARODD) { in etraxfs_uart_set_termios() 751 if (termios->c_cflag & CRTSCTS) { in etraxfs_uart_set_termios() 766 uart_update_timeout(port, termios->c_cflag, port->uartclk/8); in etraxfs_uart_set_termios()
|
D | clps711x.c | 268 termios->c_cflag &= ~CMSPAR; in uart_clps711x_set_termios() 276 switch (termios->c_cflag & CSIZE) { in uart_clps711x_set_termios() 292 if (termios->c_cflag & CSTOPB) in uart_clps711x_set_termios() 295 if (termios->c_cflag & PARENB) { in uart_clps711x_set_termios() 297 if (!(termios->c_cflag & PARODD)) in uart_clps711x_set_termios() 311 if (!(termios->c_cflag & CREAD)) in uart_clps711x_set_termios() 315 uart_update_timeout(port, termios->c_cflag, baud); in uart_clps711x_set_termios()
|
D | tilegx.c | 483 if ((termios->c_cflag & CSIZE) == CS7) in tilegx_set_termios() 489 if (termios->c_cflag & PARENB) { in tilegx_set_termios() 491 if (termios->c_cflag & CMSPAR) in tilegx_set_termios() 492 if (termios->c_cflag & PARODD) in tilegx_set_termios() 496 else if (termios->c_cflag & PARODD) in tilegx_set_termios() 504 if (termios->c_cflag & CSTOPB) in tilegx_set_termios() 664 tty_drv->init_termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL; in tilegx_init()
|
D | men_z135_uart.c | 667 switch (termios->c_cflag & CSIZE) { in men_z135_set_termios() 683 if (termios->c_cflag & CSTOPB) in men_z135_set_termios() 687 if (termios->c_cflag & PARENB) { in men_z135_set_termios() 690 if (termios->c_cflag & PARODD) in men_z135_set_termios() 698 if (termios->c_cflag & CRTSCTS) { in men_z135_set_termios() 701 termios->c_cflag &= ~CLOCAL; in men_z135_set_termios() 707 termios->c_cflag &= ~CMSPAR; /* Mark/Space parity is not supported */ in men_z135_set_termios() 725 uart_update_timeout(port, termios->c_cflag, baud); in men_z135_set_termios()
|
D | sprd_serial.c | 384 switch (termios->c_cflag & CSIZE) { in sprd_set_termios() 402 if (termios->c_cflag & CSTOPB) in sprd_set_termios() 409 termios->c_cflag &= ~CMSPAR; /* no support mark/space */ in sprd_set_termios() 410 if (termios->c_cflag & PARENB) { in sprd_set_termios() 412 if (termios->c_cflag & PARODD) in sprd_set_termios() 421 uart_update_timeout(port, termios->c_cflag, baud); in sprd_set_termios() 446 if (termios->c_cflag & CRTSCTS) { in sprd_set_termios()
|
D | netx-serial.c | 345 switch (termios->c_cflag & CSIZE) { in netx_set_termios() 360 if (termios->c_cflag & CSTOPB) in netx_set_termios() 363 if (termios->c_cflag & PARENB) { in netx_set_termios() 365 if (!(termios->c_cflag & PARODD)) in netx_set_termios() 369 if (termios->c_cflag & CRTSCTS) in netx_set_termios() 380 uart_update_timeout(port, termios->c_cflag, baud); in netx_set_termios() 396 if (UART_ENABLE_MS(port, termios->c_cflag)) in netx_set_termios()
|
D | amba-pl010.c | 409 switch (termios->c_cflag & CSIZE) { in pl010_set_termios() 423 if (termios->c_cflag & CSTOPB) in pl010_set_termios() 425 if (termios->c_cflag & PARENB) { in pl010_set_termios() 427 if (!(termios->c_cflag & PARODD)) in pl010_set_termios() 438 uart_update_timeout(port, termios->c_cflag, baud); in pl010_set_termios() 465 if ((termios->c_cflag & CREAD) == 0) in pl010_set_termios() 471 if (UART_ENABLE_MS(port, termios->c_cflag)) in pl010_set_termios() 501 if (!UART_ENABLE_MS(port, termios->c_cflag)) { in pl010_set_ldisc()
|
D | mps2-uart.c | 337 termios->c_cflag &= ~(CRTSCTS | CMSPAR); in mps2_uart_set_termios() 338 termios->c_cflag &= ~CSIZE; in mps2_uart_set_termios() 339 termios->c_cflag |= CS8; in mps2_uart_set_termios() 340 termios->c_cflag &= ~PARENB; in mps2_uart_set_termios() 341 termios->c_cflag &= ~CSTOPB; in mps2_uart_set_termios() 351 uart_update_timeout(port, termios->c_cflag, baud); in mps2_uart_set_termios()
|
/drivers/tty/ |
D | tty_ioctl.c | 252 NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag); in unset_locked_termios() 313 cbaud = termios->c_cflag & CBAUD; in tty_termios_baud_rate() 324 termios->c_cflag &= ~CBAUDEX; in tty_termios_baud_rate() 347 unsigned int cbaud = (termios->c_cflag >> IBSHIFT) & CBAUD; in tty_termios_input_baud_rate() 360 termios->c_cflag &= ~(CBAUDEX << IBSHIFT); in tty_termios_input_baud_rate() 412 if ((termios->c_cflag & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 414 if (((termios->c_cflag >> IBSHIFT) & CBAUD) == BOTHER) in tty_termios_encode_baud_rate() 416 if ((termios->c_cflag >> IBSHIFT) & CBAUD) in tty_termios_encode_baud_rate() 419 termios->c_cflag &= ~CBAUD; in tty_termios_encode_baud_rate() 431 termios->c_cflag |= baud_bits[i]; in tty_termios_encode_baud_rate() [all …]
|
/drivers/mmc/card/ |
D | sdio_uart.c | 259 switch (termios->c_cflag & CSIZE) { in sdio_uart_change_speed() 275 if (termios->c_cflag & CSTOPB) in sdio_uart_change_speed() 277 if (termios->c_cflag & PARENB) in sdio_uart_change_speed() 279 if (!(termios->c_cflag & PARODD)) in sdio_uart_change_speed() 292 termios->c_cflag &= ~CBAUD; in sdio_uart_change_speed() 294 termios->c_cflag |= old->c_cflag & CBAUD; in sdio_uart_change_speed() 297 termios->c_cflag |= B9600; in sdio_uart_change_speed() 331 if ((termios->c_cflag & CREAD) == 0) in sdio_uart_change_speed() 338 if ((termios->c_cflag & CRTSCTS) || !(termios->c_cflag & CLOCAL)) in sdio_uart_change_speed() 884 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios() [all …]
|
/drivers/staging/comedi/drivers/ |
D | serial2002.c | 200 termios.c_cflag = CLOCAL | CS8 | CREAD; in serial2002_tty_setspeed() 205 termios.c_cflag |= B2400; in serial2002_tty_setspeed() 208 termios.c_cflag |= B4800; in serial2002_tty_setspeed() 211 termios.c_cflag |= B9600; in serial2002_tty_setspeed() 214 termios.c_cflag |= B19200; in serial2002_tty_setspeed() 217 termios.c_cflag |= B38400; in serial2002_tty_setspeed() 220 termios.c_cflag |= B57600; in serial2002_tty_setspeed() 223 termios.c_cflag |= B115200; in serial2002_tty_setspeed() 226 termios.c_cflag |= B9600; in serial2002_tty_setspeed()
|
/drivers/usb/serial/ |
D | kl5kusb105.c | 285 priv->termios.c_cflag = tty->termios.c_cflag; in klsi_105_open() 423 unsigned int cflag = tty->termios.c_cflag; in klsi_105_set_termios() 424 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios() 530 tty->termios.c_cflag &= ~(PARENB|PARODD|CSTOPB); in klsi_105_set_termios() 556 tty->termios.c_cflag &= ~CRTSCTS; in klsi_105_set_termios()
|
D | kobil_sct.c | 487 int c_cflag = tty->termios.c_cflag; in kobil_set_termios() local 509 urb_val |= (c_cflag & CSTOPB) ? SUSBCR_SPASB_2StopBits : in kobil_set_termios() 511 if (c_cflag & PARENB) { in kobil_set_termios() 512 if (c_cflag & PARODD) in kobil_set_termios() 518 tty->termios.c_cflag &= ~CMSPAR; in kobil_set_termios()
|
D | empeg.c | 114 termios->c_cflag in empeg_init_termios() 119 termios->c_cflag in empeg_init_termios()
|
/drivers/staging/greybus/ |
D | uart.c | 504 newline.format = termios->c_cflag & CSTOPB ? in gb_tty_set_termios() 506 newline.parity = termios->c_cflag & PARENB ? in gb_tty_set_termios() 507 (termios->c_cflag & PARODD ? 1 : 2) + in gb_tty_set_termios() 508 (termios->c_cflag & CMSPAR ? 2 : 0) : 0; in gb_tty_set_termios() 510 switch (termios->c_cflag & CSIZE) { in gb_tty_set_termios() 527 gb_tty->clocal = ((termios->c_cflag & CLOCAL) != 0); in gb_tty_set_termios() 532 } else if (termios_old && (termios_old->c_cflag & CBAUD) == B0) { in gb_tty_set_termios() 596 if (tty->termios.c_cflag & CRTSCTS) { in gb_tty_throttle() 615 if (tty->termios.c_cflag & CRTSCTS) { in gb_tty_unthrottle() 1013 gb_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; in gb_tty_init()
|