/linux-master/drivers/tty/serial/ |
H A D | sb1250-duart.c | 533 static void sbd_set_termios(struct uart_port *uport, struct ktermios *termios, argument 549 switch (termios->c_cflag & CSIZE) { 565 if (termios->c_cflag & CSTOPB) 569 if (termios->c_cflag & PARENB) 573 if (termios->c_cflag & PARODD) 578 baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000); 584 uart_update_timeout(uport, termios->c_cflag, baud); 587 if (termios->c_iflag & INPCK) 590 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) 594 if (termios [all...] |
H A D | ma35d1_serial.c | 414 struct ktermios *termios, 422 lcr = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); 424 if (termios->c_cflag & CSTOPB) 426 if (termios->c_cflag & PARENB) 428 if (!(termios->c_cflag & PARODD)) 430 if (termios->c_cflag & CMSPAR) 433 baud = uart_get_baud_rate(port, termios, old, 447 if (termios->c_iflag & INPCK) 449 if (termios->c_iflag & (BRKINT | PARMRK)) 454 if (termios 413 ma35d1serial_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument [all...] |
H A D | rda-uart.c | 240 struct ktermios *termios, 251 baud = uart_get_baud_rate(port, termios, old, 9600, port->uartclk / 4); 258 switch (termios->c_cflag & CSIZE) { 265 termios->c_cflag &= ~CSIZE; 266 termios->c_cflag |= CS7; 274 if (termios->c_cflag & CSTOPB) 280 if (termios->c_cflag & PARENB) { 284 if (termios->c_cflag & CMSPAR) { 285 if (termios->c_cflag & PARODD) 289 } else if (termios 239 rda_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument [all...] |
H A D | omap-serial.c | 776 serial_omap_set_termios(struct uart_port *port, struct ktermios *termios, argument 784 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); 786 if (termios->c_cflag & CSTOPB) 788 if (termios->c_cflag & PARENB) 790 if (!(termios->c_cflag & PARODD)) 792 if (termios->c_cflag & CMSPAR) 799 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/13); 823 uart_update_timeout(port, termios->c_cflag, baud); 826 if (termios->c_iflag & INPCK) 828 if (termios 1295 serial_omap_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument [all...] |
H A D | sprd_serial.c | 749 static void sprd_set_termios(struct uart_port *port, struct ktermios *termios, argument 757 baud = uart_get_baud_rate(port, termios, old, 0, SPRD_BAUD_IO_LIMIT); 762 switch (termios->c_cflag & CSIZE) { 780 if (termios->c_cflag & CSTOPB) 787 termios->c_cflag &= ~CMSPAR; /* no support mark/space */ 788 if (termios->c_cflag & PARENB) { 790 if (termios->c_cflag & PARODD) 799 uart_update_timeout(port, termios->c_cflag, baud); 802 if (termios->c_iflag & INPCK) 804 if (termios [all...] |
H A D | serial_core.c | 206 struct ktermios *termios; local 210 * If we have no tty, termios, or the port does not exist, 216 termios = &tty->termios; 217 uport->ops->set_termios(uport, termios, old_termios); 220 * Set modem status enables based on termios cflag 223 if (termios->c_cflag & CRTSCTS) 228 if (termios->c_cflag & CLOCAL) 291 tty->termios.c_cflag = uport->cons->cflag; 292 tty->termios 455 uart_get_baud_rate(struct uart_port *port, struct ktermios *termios, const struct ktermios *old, unsigned int min, unsigned int max) argument 2294 struct ktermios termios; local 2472 struct ktermios termios; local [all...] |
H A D | sc16is7xx.c | 1010 struct ktermios *termios, 1020 /* Mask termios capabilities we don't support */ 1021 termios->c_cflag &= ~CMSPAR; 1024 switch (termios->c_cflag & CSIZE) { 1039 termios->c_cflag &= ~CSIZE; 1040 termios->c_cflag |= CS8; 1045 if (termios->c_cflag & PARENB) { 1047 if (!(termios->c_cflag & PARODD)) 1052 if (termios->c_cflag & CSTOPB) 1057 if (termios 1009 sc16is7xx_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 1112 sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument [all...] |
H A D | zs.c | 848 static void zs_set_termios(struct uart_port *uport, struct ktermios *termios, argument 864 switch (termios->c_cflag & CSIZE) { 886 if (termios->c_cflag & CSTOPB) 890 if (termios->c_cflag & PARENB) 892 if (!(termios->c_cflag & PARODD)) 911 baud = uart_get_baud_rate(uport, termios, old_termios, 0, 918 uart_update_timeout(uport, termios->c_cflag, baud); 921 if (termios->c_iflag & INPCK) 923 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) 927 if (termios [all...] |
H A D | cpm_uart.c | 489 struct ktermios *termios, 503 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 523 if (termios->c_cflag & CSTOPB) { 528 if (termios->c_cflag & PARENB) { 531 if (!(termios->c_cflag & PARODD)) { 540 uart_update_timeout(port, termios->c_cflag, baud); 546 if (termios->c_iflag & INPCK) 548 if ((termios->c_iflag & BRKINT) || (termios->c_iflag & PARMRK)) 555 if (termios 488 cpm_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument [all...] |
H A D | timbuart.c | 277 struct ktermios *termios, 284 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 295 tty_termios_copy_hw(termios, old); 296 tty_termios_encode_baud_rate(termios, baud, baud); 300 uart_update_timeout(port, termios->c_cflag, baud); 276 timbuart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
|
H A D | st-asc.c | 464 static void asc_set_termios(struct uart_port *port, struct ktermios *termios, argument 475 /* Update termios to reflect hardware capabilities */ 476 termios->c_cflag &= ~(CMSPAR | 481 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 482 cflag = termios->c_cflag; 507 termios->c_cflag = cflag; 553 if (termios->c_iflag & INPCK) 555 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) 562 if (termios->c_iflag & IGNPAR) 564 if (termios [all...] |
H A D | ucc_uart.c | 844 struct ktermios *termios, 860 switch (termios->c_cflag & CSIZE) { 880 if (termios->c_cflag & CSTOPB) { 885 if (termios->c_cflag & PARENB) { 889 if (!(termios->c_cflag & PARODD)) { 905 if (termios->c_iflag & INPCK) 907 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) 914 if (termios->c_iflag & IGNPAR) 916 if (termios->c_iflag & IGNBRK) { 922 if (termios 843 qe_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument [all...] |
H A D | amba-pl011.c | 1997 pl011_setup_status_masks(struct uart_port *port, struct ktermios *termios) argument 2000 if (termios->c_iflag & INPCK) 2002 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) 2009 if (termios->c_iflag & IGNPAR) 2011 if (termios->c_iflag & IGNBRK) { 2017 if (termios->c_iflag & IGNPAR) 2024 if ((termios->c_cflag & CREAD) == 0) 2029 pl011_set_termios(struct uart_port *port, struct ktermios *termios, argument 2047 baud = uart_get_baud_rate(port, termios, old, 0, 2062 switch (termios 2168 sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 2222 pl011_rs485_config(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument [all...] |
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_omap.c | 381 struct ktermios *termios, 389 cval = UART_LCR_WLEN(tty_get_char_size(termios->c_cflag)); 391 if (termios->c_cflag & CSTOPB) 393 if (termios->c_cflag & PARENB) 395 if (!(termios->c_cflag & PARODD)) 397 if (termios->c_cflag & CMSPAR) 403 baud = uart_get_baud_rate(port, termios, old, 418 uart_update_timeout(port, termios->c_cflag, baud); 421 if (termios->c_iflag & INPCK) 423 if (termios 380 omap_8250_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument 842 omap8250_rs485_config(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485) argument [all...] |
H A D | 8250_fintek.c | 194 static int fintek_8250_rs485_config(struct uart_port *port, struct ktermios *termios, argument 280 struct ktermios *termios, 284 unsigned int baud = tty_termios_baud_rate(termios); 337 tty_termios_encode_baud_rate(termios, baud, baud); 341 serial8250_do_set_termios(port, termios, old); 279 fintek_8250_set_termios(struct uart_port *port, struct ktermios *termios, const struct ktermios *old) argument
|
/linux-master/arch/um/drivers/ |
H A D | pty.c | 12 #include <termios.h> 22 struct termios tt;
|
H A D | port_user.c | 10 #include <termios.h> 20 struct termios tt;
|
H A D | xterm.c | 12 #include <termios.h> 25 struct termios tt;
|
/linux-master/arch/sparc/include/uapi/asm/ |
H A D | termbits.h | 24 struct termios { struct 34 #define SIZEOF_USER_TERMIOS sizeof (struct termios) - (2*sizeof (cc_t))
|
/linux-master/arch/um/os-Linux/ |
H A D | util.c | 13 #include <termios.h> 30 struct termios tt;
|
/linux-master/include/linux/ |
H A D | serial_8250.h | 186 void serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios, 188 void serial8250_do_set_ldisc(struct uart_port *port, struct ktermios *termios);
|
/linux-master/drivers/usb/serial/ |
H A D | xr_serial.c | 567 baud = tty->termios.c_ospeed; 694 struct ktermios *termios = &tty->termios; local 698 if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed)) 705 termios->c_cflag &= ~CSIZE; 707 termios->c_cflag |= old_termios->c_cflag & CSIZE; 709 termios->c_cflag |= CS8; 763 if (tty->termios.c_ospeed) 764 lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed); 791 tty->termios [all...] |
H A D | belkin_sa.c | 291 struct ktermios *termios = &tty->termios; local 293 iflag = termios->c_iflag; 294 cflag = termios->c_cflag; 296 termios->c_cflag &= ~CMSPAR;
|
/linux-master/drivers/tty/ |
H A D | tty_ldisc.c | 410 tty->termios.c_line = disc; 622 tty->termios = tty->driver->init_termios; 623 tty->termios.c_ispeed = tty_termios_input_baud_rate(&tty->termios); 624 tty->termios.c_ospeed = tty_termios_baud_rate(&tty->termios); 674 * Some tty devices reset their termios when they receive a hangup event. In 676 * the termios data. 719 if (tty_ldisc_reinit(tty, tty->termios.c_line) < 0 && 781 * And the memory resources remaining (buffers, termios) wil [all...] |
/linux-master/drivers/bluetooth/ |
H A D | hci_ldisc.c | 324 ktermios = tty->termios; 328 (tty->termios.c_cflag & CRTSCTS) ? "failed" : "success"); 358 ktermios = tty->termios; 362 !(tty->termios.c_cflag & CRTSCTS) ? "failed" : "success"); 378 ktermios = tty->termios; 386 tty->termios.c_ispeed, tty->termios.c_ospeed);
|