/drivers/usb/serial/ |
H A D | empeg.c | 99 struct ktermios *termios = tty->termios; local 110 termios->c_iflag 120 termios->c_oflag 123 termios->c_lflag 130 termios->c_cflag 135 termios->c_cflag
|
H A D | belkin_sa.c | 323 struct ktermios *termios = tty->termios; local 325 iflag = termios->c_iflag; 326 cflag = termios->c_cflag; 328 termios->c_cflag &= ~CMSPAR;
|
H A D | kl5kusb105.c | 133 struct ktermios termios; member in struct:klsi_105_private 266 /* priv->termios is left uninitialized until port opening */ 323 /* set up termios structure */ 325 priv->termios.c_iflag = tty->termios->c_iflag; 326 priv->termios.c_oflag = tty->termios->c_oflag; 327 priv->termios.c_cflag = tty->termios->c_cflag; 328 priv->termios [all...] |
H A D | ark3116.c | 218 struct ktermios *termios = tty->termios; local 219 *termios = tty_std_termios; 220 termios->c_cflag = B9600 | CS8 222 termios->c_ispeed = 9600; 223 termios->c_ospeed = 9600; 232 struct ktermios *termios = tty->termios; local 233 unsigned int cflag = termios->c_cflag; 343 if (tty_termios_baud_rate(termios)) [all...] |
H A D | mct_u232.c | 469 if (tty && (tty->termios->c_cflag & CBAUD)) 652 struct ktermios *termios = tty->termios; local 653 unsigned int cflag = termios->c_cflag; 716 termios->c_cflag &= ~CMSPAR;
|
/drivers/tty/serial/jsm/ |
H A D | jsm_tty.c | 161 struct ktermios *termios; local 164 termios = port->state->port.tty->termios; 165 if (ch == termios->c_cc[VSTART]) 168 if (ch == termios->c_cc[VSTOP]) 203 struct ktermios *termios; local 253 termios = port->state->port.tty->termios; 254 channel->ch_c_cflag = termios->c_cflag; 255 channel->ch_c_iflag = termios 310 jsm_tty_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old_termios) argument [all...] |
/drivers/tty/serial/ |
H A D | timbuart.c | 295 struct ktermios *termios, 302 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 313 tty_termios_copy_hw(termios, old); 314 tty_termios_encode_baud_rate(termios, baud, baud); 318 uart_update_timeout(port, termios->c_cflag, baud); 294 timbuart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
|
H A D | 21285.c | 214 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, argument 223 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); 224 termios->c_cflag |= CLOCAL; 229 termios->c_iflag &= ~(IGNBRK | BRKINT); 234 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 237 tty_termios_encode_baud_rate(termios, b, b); 239 switch (termios->c_cflag & CSIZE) { 254 if (termios->c_cflag & CSTOPB) 256 if (termios->c_cflag & PARENB) { 258 if (!(termios [all...] |
H A D | altera_jtaguart.c | 117 struct ktermios *termios, 120 /* Just copy the old termios settings back */ 122 tty_termios_copy_hw(termios, old); 116 altera_jtaguart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
|
H A D | clps711x.c | 286 clps711xuart_set_termios(struct uart_port *port, struct ktermios *termios, argument 295 termios->c_cflag |= CREAD; 300 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 303 switch (termios->c_cflag & CSIZE) { 317 if (termios->c_cflag & CSTOPB) 319 if (termios->c_cflag & PARENB) { 321 if (!(termios->c_cflag & PARODD)) 332 uart_update_timeout(port, termios->c_cflag, baud); 335 if (termios->c_iflag & INPCK) 342 if (termios [all...] |
H A D | max3107.c | 730 struct ktermios *termios, 749 if ((termios->c_cflag & CSIZE) == CS7) 755 if (termios->c_cflag & PARENB) { 757 if (!(termios->c_cflag & PARODD)) 762 if (termios->c_cflag & CSTOPB) { 767 /* Mask termios capabilities we don't support */ 768 termios->c_cflag &= ~CMSPAR; 772 if (termios->c_iflag & IGNPAR) 789 tty_termios_encode_baud_rate(termios, baud, baud); 793 uart_update_timeout(port, termios 729 max3107_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
H A D | mcf.c | 196 static void mcf_set_termios(struct uart_port *port, struct ktermios *termios, argument 206 baud = uart_get_baud_rate(port, termios, old, 0, 230400); 217 switch (termios->c_cflag & CSIZE) { 225 if (termios->c_cflag & PARENB) { 226 if (termios->c_cflag & CMSPAR) { 227 if (termios->c_cflag & PARODD) 232 if (termios->c_cflag & PARODD) 241 if (termios->c_cflag & CSTOPB) 246 if (termios->c_cflag & CRTSCTS) { 252 uart_update_timeout(port, termios [all...] |
H A D | mux.c | 304 * @termios: new termios settings. 305 * @old: old termios settings. 310 mux_set_termios(struct uart_port *port, struct ktermios *termios, argument
|
H A D | nwpserial.c | 217 struct ktermios *termios, struct ktermios *old) 227 if ((termios->c_cflag & CREAD) == 0) 232 tty_termios_copy_hw(termios, old); 216 nwpserial_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
|
H A D | amba-pl010.c | 383 pl010_set_termios(struct uart_port *port, struct ktermios *termios, argument 394 baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16); 397 switch (termios->c_cflag & CSIZE) { 411 if (termios->c_cflag & CSTOPB) 413 if (termios->c_cflag & PARENB) { 415 if (!(termios->c_cflag & PARODD)) 426 uart_update_timeout(port, termios->c_cflag, baud); 429 if (termios->c_iflag & INPCK) 431 if (termios->c_iflag & (BRKINT | PARMRK)) 438 if (termios [all...] |
H A D | apbuart.c | 240 struct ktermios *termios, struct ktermios *old) 247 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 256 if (termios->c_cflag & PARENB) { 258 if ((termios->c_cflag & PARODD)) 263 if (termios->c_cflag & CRTSCTS) 269 uart_update_timeout(port, termios->c_cflag, baud); 272 if (termios->c_iflag & INPCK) 277 if (termios->c_iflag & IGNPAR) 281 if ((termios->c_cflag & CREAD) == 0) 239 apbuart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
|
H A D | bfin_sport_uart.c | 492 struct ktermios *termios, struct ktermios *old) 498 pr_debug("%s enter, c_cflag:%08x\n", __func__, termios->c_cflag); 500 switch (termios->c_cflag & CSIZE) { 517 if (termios->c_cflag & CSTOPB) { 520 if (termios->c_cflag & PARENB) { 550 port->uartclk = uart_get_baud_rate(port, termios, old, 0, get_sclk()/16); 571 uart_update_timeout(port, termios->c_cflag, port->uartclk); 491 sport_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
|
H A D | dz.c | 571 static void dz_set_termios(struct uart_port *uport, struct ktermios *termios, argument 581 switch (termios->c_cflag & CSIZE) { 596 if (termios->c_cflag & CSTOPB) 598 if (termios->c_cflag & PARENB) 600 if (termios->c_cflag & PARODD) 603 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); 612 tty_termios_encode_baud_rate(termios, baud, baud); 616 if (termios->c_cflag & CREAD) 621 uart_update_timeout(uport, termios->c_cflag, baud); 628 if (termios [all...] |
H A D | msm_serial.c | 494 static void msm_set_termios(struct uart_port *port, struct ktermios *termios, argument 503 baud = uart_get_baud_rate(port, termios, old, 300, 115200); 505 if (tty_termios_baud_rate(termios)) 506 tty_termios_encode_baud_rate(termios, baud, baud); 511 if (termios->c_cflag & PARENB) { 512 if (termios->c_cflag & PARODD) 514 else if (termios->c_cflag & CMSPAR) 522 switch (termios->c_cflag & CSIZE) { 540 if (termios->c_cflag & CSTOPB) 551 if (termios [all...] |
H A D | pnx8xxx_uart.c | 432 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, argument 443 while ((termios->c_cflag & CSIZE) != CS7 && 444 (termios->c_cflag & CSIZE) != CS8) { 445 termios->c_cflag &= ~CSIZE; 446 termios->c_cflag |= old_csize; 450 if ((termios->c_cflag & CSIZE) == CS8) 455 if (termios->c_cflag & CSTOPB) 457 if (termios->c_cflag & PARENB) { 459 if (!(termios->c_cflag & PARODD)) 466 baud = uart_get_baud_rate(port, termios, ol [all...] |
H A D | pxa.c | 456 serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios, argument 465 switch (termios->c_cflag & CSIZE) { 481 if (termios->c_cflag & CSTOPB) 483 if (termios->c_cflag & PARENB) 485 if (!(termios->c_cflag & PARODD)) 491 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 516 uart_update_timeout(port, termios->c_cflag, baud); 519 if (termios->c_iflag & INPCK) 521 if (termios->c_iflag & (BRKINT | PARMRK)) 528 if (termios [all...] |
H A D | sa1100.c | 407 sa1100_set_termios(struct uart_port *port, struct ktermios *termios, argument 418 while ((termios->c_cflag & CSIZE) != CS7 && 419 (termios->c_cflag & CSIZE) != CS8) { 420 termios->c_cflag &= ~CSIZE; 421 termios->c_cflag |= old_csize; 425 if ((termios->c_cflag & CSIZE) == CS8) 430 if (termios->c_cflag & CSTOPB) 432 if (termios->c_cflag & PARENB) { 434 if (!(termios->c_cflag & PARODD)) 441 baud = uart_get_baud_rate(port, termios, ol [all...] |
H A D | serial_ks8695.c | 383 static void ks8695uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument 392 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 395 switch (termios->c_cflag & CSIZE) { 411 if (termios->c_cflag & CSTOPB) 415 if (termios->c_cflag & PARENB) { 416 if (termios->c_cflag & CMSPAR) { /* Mark or Space parity */ 417 if (termios->c_cflag & PARODD) 422 else if (termios->c_cflag & PARODD) 436 uart_update_timeout(port, termios->c_cflag, baud); 439 if (termios [all...] |
H A D | sirfsoc_uart.c | 344 struct ktermios *termios, 361 switch (termios->c_cflag & CSIZE) { 376 if (termios->c_cflag & CSTOPB) 378 baud_rate = uart_get_baud_rate(port, termios, old, 0, 4000000); 383 if (termios->c_iflag & INPCK) 386 if (termios->c_iflag & (BRKINT | PARMRK)) 389 if (termios->c_iflag & IGNPAR) 392 if ((termios->c_cflag & CREAD) == 0) 395 if (termios->c_cflag & PARENB) { 396 if (termios 343 sirfsoc_uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |
/drivers/tty/serial/cpm_uart/ |
H A D | cpm_uart_core.c | 493 struct ktermios *termios, 506 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 522 switch (termios->c_cflag & CSIZE) { 542 if (termios->c_cflag & CSTOPB) { 548 if (termios->c_cflag & PARENB) { 552 if (!(termios->c_cflag & PARODD)) { 561 uart_update_timeout(port, termios->c_cflag, baud); 569 if (termios->c_iflag & INPCK) 571 if ((termios->c_iflag & BRKINT) || (termios 492 cpm_uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument [all...] |