/linux/drivers/usb/serial/ |
H A D | xr_serial.c | 109 const struct ktermios *old_termios); 139 const struct ktermios *old_termios); 629 const struct ktermios *old_termios) in xr_set_flow_mode() argument 686 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in xr_set_flow_mode() 692 const struct ktermios *old_termios) in xr21v141x_set_line_settings() argument 698 if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed)) in xr21v141x_set_line_settings() 706 if (old_termios) in xr21v141x_set_line_settings() 707 termios->c_cflag |= old_termios->c_cflag & CSIZE; in xr21v141x_set_line_settings() 751 const struct ktermios *old_termios) in xr_cdc_set_line_coding() argument 792 if (old_termios) in xr_cdc_set_line_coding() [all …]
|
H A D | spcp8x5.c | 277 const struct ktermios *old_termios) in spcp8x5_set_termios() argument 290 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios() 296 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios() 298 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
|
H A D | cp210x.c | 1052 const struct ktermios *old_termios) in cp210x_change_speed() argument 1075 if (old_termios) in cp210x_change_speed() 1076 baud = old_termios->c_ospeed; in cp210x_change_speed() 1136 const struct ktermios *old_termios) in cp210x_set_flow_control() argument 1157 old_termios && old_termios->c_ospeed != 0 && in cp210x_set_flow_control() 1158 C_CRTSCTS(tty) == (old_termios->c_cflag & CRTSCTS) && in cp210x_set_flow_control() 1159 I_IXON(tty) == (old_termios->c_iflag & IXON) && in cp210x_set_flow_control() 1160 I_IXOFF(tty) == (old_termios->c_iflag & IXOFF) && in cp210x_set_flow_control() 1161 START_CHAR(tty) == old_termios->c_cc[VSTART] && in cp210x_set_flow_control() 1162 STOP_CHAR(tty) == old_termios->c_cc[VSTOP]) { in cp210x_set_flow_control() [all …]
|
H A D | upd78f0730.c | 303 const struct ktermios *old_termios) in upd78f0730_set_termios() argument 309 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in upd78f0730_set_termios() 314 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios()
|
H A D | ch341.c | 109 const struct ktermios *old_termios); 486 const struct ktermios *old_termios) in ch341_set_termios() argument 495 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in ch341_set_termios() 533 if (r < 0 && old_termios) { in ch341_set_termios() 534 priv->baud_rate = tty_termios_baud_rate(old_termios); in ch341_set_termios() 535 tty_termios_copy_hw(&tty->termios, old_termios); in ch341_set_termios() 544 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ch341_set_termios()
|
H A D | mxuport.c | 763 const struct ktermios *old_termios, in mxuport_set_termios_flow() argument 804 if (!old_termios || in mxuport_set_termios_flow() 805 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) { in mxuport_set_termios_flow() 813 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in mxuport_set_termios_flow() 837 const struct ktermios *old_termios) in mxuport_set_termios() argument 847 if (old_termios && in mxuport_set_termios() 848 !tty_termios_hw_change(&tty->termios, old_termios) && in mxuport_set_termios() 849 tty->termios.c_iflag == old_termios->c_iflag) { in mxuport_set_termios() 908 err = mxuport_set_termios_flow(tty, old_termios, port, serial); in mxuport_set_termios()
|
H A D | kl5kusb105.c | 60 const struct ktermios *old_termios); 369 const struct ktermios *old_termios) in klsi_105_set_termios() argument 374 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios() 376 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios()
|
H A D | f81232.c | 611 const struct ktermios *old_termios) in f81232_set_termios() argument 620 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios() 625 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81232_set_termios() 630 if (old_termios) in f81232_set_termios() 631 old_baud = tty_termios_baud_rate(old_termios); in f81232_set_termios()
|
H A D | belkin_sa.c | 48 const struct ktermios *old_termios); 277 const struct ktermios *old_termios) in belkin_sa_set_termios() argument 303 old_iflag = old_termios->c_iflag; in belkin_sa_set_termios() 304 old_cflag = old_termios->c_cflag; in belkin_sa_set_termios()
|
H A D | pl2303.c | 794 const struct ktermios *old_termios) in pl2303_set_termios() argument 804 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios)) in pl2303_set_termios() 810 if (old_termios) in pl2303_set_termios() 811 tty->termios = *old_termios; in pl2303_set_termios() 883 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios() 894 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in pl2303_set_termios()
|
H A D | ir-usb.c | 55 const struct ktermios *old_termios); 380 const struct ktermios *old_termios) in ir_set_termios() argument 436 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios()
|
H A D | keyspan_pda.c | 329 const struct ktermios *old_termios) in keyspan_pda_set_termios() argument 361 speed = tty_termios_baud_rate(old_termios); in keyspan_pda_set_termios() 367 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios()
|
H A D | mct_u232.c | 49 const struct ktermios *old_termios); 596 const struct ktermios *old_termios) in mct_u232_set_termios() argument 602 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
|
H A D | digi_acceleport.c | 219 const struct ktermios *old_termios); 652 const struct ktermios *old_termios) in digi_set_termios() argument 658 unsigned int old_iflag = old_termios->c_iflag; in digi_set_termios() 659 unsigned int old_cflag = old_termios->c_cflag; in digi_set_termios() 672 if (baud != tty_termios_baud_rate(old_termios)) { in digi_set_termios()
|
H A D | f81534.c | 952 const struct ktermios *old_termios) in f81534_set_termios() argument 961 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81534_set_termios() 983 if (old_termios) in f81534_set_termios() 984 old_baud = tty_termios_baud_rate(old_termios); in f81534_set_termios()
|
H A D | ftdi_sio.c | 1114 const struct ktermios *old_termios); 2609 const struct ktermios *old_termios) in ftdi_set_termios() argument 2651 if (old_termios) in ftdi_set_termios() 2652 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios() 2659 if (!old_termios) in ftdi_set_termios() 2662 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios() 2663 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios() 2664 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios() 2671 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios() 2742 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ftdi_set_termios()
|
H A D | whiteheat.c | 86 const struct ktermios *old_termios); 445 const struct ktermios *old_termios) in whiteheat_set_termios() argument
|
H A D | iuu_phoenix.c | 883 const struct ktermios *old_termios) in iuu_set_termios() argument 926 if (old_termios) in iuu_set_termios() 927 tty_termios_copy_hw(&tty->termios, old_termios); in iuu_set_termios()
|
/linux/drivers/tty/ |
H A D | tty_ioctl.c | 325 struct ktermios old_termios; in tty_set_termios() local 338 old_termios = tty->termios; in tty_set_termios() 340 unset_locked_termios(tty, &old_termios); in tty_set_termios() 342 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB; in tty_set_termios() 345 tty->ops->set_termios(tty, &old_termios); in tty_set_termios() 347 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios() 352 ld->ops->set_termios(tty, &old_termios); in tty_set_termios()
|
H A D | amiserial.c | 567 const struct ktermios *old_termios) in change_speed() argument 608 if (!quot && old_termios) { in change_speed() 611 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed() 1170 static void rs_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) in rs_set_termios() argument 1176 change_speed(tty, info, old_termios); in rs_set_termios() 1179 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) { in rs_set_termios() 1187 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in rs_set_termios() 1197 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in rs_set_termios() 1209 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in rs_set_termios()
|
H A D | pty.c | 243 const struct ktermios *old_termios) in pty_set_termios() argument 247 int extproc = (old_termios->c_lflag & EXTPROC) | L_EXTPROC(tty); in pty_set_termios() 248 int old_flow = ((old_termios->c_iflag & IXON) && in pty_set_termios() 249 (old_termios->c_cc[VSTOP] == '\023') && in pty_set_termios() 250 (old_termios->c_cc[VSTART] == '\021')); in pty_set_termios()
|
H A D | mxser.c | 573 const struct ktermios *old_termios) in mxser_change_speed() argument 582 if (old_termios) { in mxser_change_speed() 583 speed_t baud = tty_termios_baud_rate(old_termios); in mxser_change_speed() 1351 const struct ktermios *old_termios) in mxser_set_termios() argument 1357 mxser_change_speed(tty, old_termios); in mxser_set_termios() 1360 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in mxser_set_termios() 1366 if ((old_termios->c_iflag & IXON) && !I_IXON(tty)) { in mxser_set_termios()
|
H A D | moxa.c | 1606 const struct ktermios *old_termios) in moxa_set_termios() argument 1612 moxa_set_tty_param(tty, old_termios); in moxa_set_termios() 1613 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in moxa_set_termios() 1766 const struct ktermios *old_termios) in moxa_set_tty_param() argument 1785 baud = tty_termios_baud_rate(old_termios); in moxa_set_tty_param()
|
/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 857 const struct ktermios *old_termios) in sdio_uart_set_termios() argument 865 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios() 868 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) in sdio_uart_set_termios() 872 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in sdio_uart_set_termios() 880 if ((old_termios->c_cflag & CRTSCTS) && !(cflag & CRTSCTS)) { in sdio_uart_set_termios() 886 if (!(old_termios->c_cflag & CRTSCTS) && (cflag & CRTSCTS)) { in sdio_uart_set_termios()
|
/linux/drivers/tty/serial/ |
H A D | serial_core.c | 203 const struct ktermios *old_termios) in uart_change_line_settings() argument 217 uport->ops->set_termios(uport, termios, old_termios); in uart_change_line_settings() 1696 const struct ktermios *old_termios) in uart_set_termios() argument 1717 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios() 1718 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios() 1727 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios() 1728 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios() 1729 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios() 1730 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios() 1734 uart_change_line_settings(tty, state, old_termios); in uart_set_termios() [all …]
|