/linux-6.6.21/drivers/usb/serial/ |
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 …]
|
D | spcp8x5.c | 287 const struct ktermios *old_termios) in spcp8x5_set_termios() argument 300 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios() 306 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios() 308 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
|
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()
|
D | cp210x.c | 1049 const struct ktermios *old_termios) in cp210x_change_speed() argument 1072 if (old_termios) in cp210x_change_speed() 1073 baud = old_termios->c_ospeed; in cp210x_change_speed() 1133 const struct ktermios *old_termios) in cp210x_set_flow_control() argument 1154 old_termios && old_termios->c_ospeed != 0 && in cp210x_set_flow_control() 1155 C_CRTSCTS(tty) == (old_termios->c_cflag & CRTSCTS) && in cp210x_set_flow_control() 1156 I_IXON(tty) == (old_termios->c_iflag & IXON) && in cp210x_set_flow_control() 1157 I_IXOFF(tty) == (old_termios->c_iflag & IXOFF) && in cp210x_set_flow_control() 1158 START_CHAR(tty) == old_termios->c_cc[VSTART] && in cp210x_set_flow_control() 1159 STOP_CHAR(tty) == old_termios->c_cc[VSTOP]) { in cp210x_set_flow_control() [all …]
|
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()
|
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()
|
D | kl5kusb105.c | 60 const struct ktermios *old_termios); 370 const struct ktermios *old_termios) in klsi_105_set_termios() argument 375 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios() 377 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios()
|
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()
|
D | belkin_sa.c | 48 const struct ktermios *old_termios); 278 const struct ktermios *old_termios) in belkin_sa_set_termios() argument 304 old_iflag = old_termios->c_iflag; in belkin_sa_set_termios() 305 old_cflag = old_termios->c_cflag; in belkin_sa_set_termios()
|
D | ir-usb.c | 55 const struct ktermios *old_termios); 381 const struct ktermios *old_termios) in ir_set_termios() argument 437 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios()
|
D | pl2303.c | 793 const struct ktermios *old_termios) in pl2303_set_termios() argument 803 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios)) in pl2303_set_termios() 809 if (old_termios) in pl2303_set_termios() 810 tty->termios = *old_termios; in pl2303_set_termios() 882 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios() 893 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in pl2303_set_termios()
|
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()
|
D | mct_u232.c | 49 const struct ktermios *old_termios); 597 const struct ktermios *old_termios) in mct_u232_set_termios() argument 603 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
|
D | digi_acceleport.c | 219 const struct ktermios *old_termios); 654 const struct ktermios *old_termios) in digi_set_termios() argument 660 unsigned int old_iflag = old_termios->c_iflag; in digi_set_termios() 661 unsigned int old_cflag = old_termios->c_cflag; in digi_set_termios() 674 if (baud != tty_termios_baud_rate(old_termios)) { in digi_set_termios()
|
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()
|
D | ftdi_sio.c | 1112 const struct ktermios *old_termios); 2607 const struct ktermios *old_termios) in ftdi_set_termios() argument 2649 if (old_termios) in ftdi_set_termios() 2650 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios() 2657 if (!old_termios) in ftdi_set_termios() 2660 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios() 2661 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios() 2662 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios() 2669 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios() 2740 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ftdi_set_termios()
|
D | whiteheat.c | 86 const struct ktermios *old_termios); 447 const struct ktermios *old_termios) in whiteheat_set_termios() argument
|
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-6.6.21/drivers/tty/ |
D | tty_ioctl.c | 334 struct ktermios old_termios; in tty_set_termios() local 347 old_termios = tty->termios; in tty_set_termios() 349 unset_locked_termios(tty, &old_termios); in tty_set_termios() 351 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB; in tty_set_termios() 354 tty->ops->set_termios(tty, &old_termios); in tty_set_termios() 356 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios() 361 ld->ops->set_termios(tty, &old_termios); in tty_set_termios()
|
D | amiserial.c | 569 const struct ktermios *old_termios) in change_speed() argument 610 if (!quot && old_termios) { in change_speed() 613 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed() 1172 static void rs_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) in rs_set_termios() argument 1178 change_speed(tty, info, old_termios); in rs_set_termios() 1181 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) { in rs_set_termios() 1189 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in rs_set_termios() 1199 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in rs_set_termios() 1211 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in rs_set_termios()
|
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()
|
D | mxser.c | 576 const struct ktermios *old_termios) in mxser_change_speed() argument 585 if (old_termios) { in mxser_change_speed() 586 speed_t baud = tty_termios_baud_rate(old_termios); in mxser_change_speed() 1354 const struct ktermios *old_termios) in mxser_set_termios() argument 1360 mxser_change_speed(tty, old_termios); in mxser_set_termios() 1363 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in mxser_set_termios() 1369 if ((old_termios->c_iflag & IXON) && !I_IXON(tty)) { in mxser_set_termios()
|
/linux-6.6.21/drivers/mmc/core/ |
D | sdio_uart.c | 861 const struct ktermios *old_termios) in sdio_uart_set_termios() argument 869 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios() 872 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) in sdio_uart_set_termios() 876 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in sdio_uart_set_termios() 884 if ((old_termios->c_cflag & CRTSCTS) && !(cflag & CRTSCTS)) { in sdio_uart_set_termios() 890 if (!(old_termios->c_cflag & CRTSCTS) && (cflag & CRTSCTS)) { in sdio_uart_set_termios()
|
/linux-6.6.21/drivers/tty/serial/ |
D | dz.c | 561 const struct ktermios *old_termios) in dz_set_termios() argument 592 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); in dz_set_termios() 595 if (old_termios) { in dz_set_termios() 597 baud = tty_termios_baud_rate(old_termios); in dz_set_termios()
|
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() 1672 const struct ktermios *old_termios) in uart_set_termios() argument 1692 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios() 1693 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios() 1702 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios() 1703 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios() 1704 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios() 1705 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios() 1710 uart_change_line_settings(tty, state, old_termios); in uart_set_termios() [all …]
|