Home
last modified time | relevance | path

Searched refs:old_termios (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v5.15/drivers/usb/serial/
Dxr_serial.c107 struct usb_serial_port *port, struct ktermios *old_termios);
137 struct ktermios *old_termios);
626 struct ktermios *old_termios) in xr_set_flow_mode() argument
672 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in xr_set_flow_mode()
677 struct usb_serial_port *port, struct ktermios *old_termios) in xr21v141x_set_line_settings() argument
683 if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed)) in xr21v141x_set_line_settings()
691 if (old_termios) in xr21v141x_set_line_settings()
692 termios->c_cflag |= old_termios->c_cflag & CSIZE; in xr21v141x_set_line_settings()
735 struct usb_serial_port *port, struct ktermios *old_termios) in xr_cdc_set_line_coding() argument
749 else if (old_termios) in xr_cdc_set_line_coding()
[all …]
Dspcp8x5.c286 struct usb_serial_port *port, struct ktermios *old_termios) in spcp8x5_set_termios() argument
299 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios()
305 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios()
307 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
Dupd78f0730.c300 struct ktermios *old_termios) in upd78f0730_set_termios() argument
306 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in upd78f0730_set_termios()
311 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios()
Dch341.c106 struct ktermios *old_termios);
500 struct usb_serial_port *port, struct ktermios *old_termios) in ch341_set_termios() argument
509 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in ch341_set_termios()
547 if (r < 0 && old_termios) { in ch341_set_termios()
548 priv->baud_rate = tty_termios_baud_rate(old_termios); in ch341_set_termios()
549 tty_termios_copy_hw(&tty->termios, old_termios); in ch341_set_termios()
558 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ch341_set_termios()
Dcp210x.c1085 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_change_speed() argument
1107 if (old_termios) in cp210x_change_speed()
1108 baud = old_termios->c_ospeed; in cp210x_change_speed()
1167 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_set_flow_control() argument
1187 if (old_termios && in cp210x_set_flow_control()
1188 C_CRTSCTS(tty) == (old_termios->c_cflag & CRTSCTS) && in cp210x_set_flow_control()
1189 I_IXON(tty) == (old_termios->c_iflag & IXON) && in cp210x_set_flow_control()
1190 I_IXOFF(tty) == (old_termios->c_iflag & IXOFF) && in cp210x_set_flow_control()
1191 START_CHAR(tty) == old_termios->c_cc[VSTART] && in cp210x_set_flow_control()
1192 STOP_CHAR(tty) == old_termios->c_cc[VSTOP]) { in cp210x_set_flow_control()
[all …]
Dmxuport.c763 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 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()
Df81232.c627 struct usb_serial_port *port, struct ktermios *old_termios) in f81232_set_termios() argument
636 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios()
641 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81232_set_termios()
646 if (old_termios) in f81232_set_termios()
647 old_baud = tty_termios_baud_rate(old_termios); in f81232_set_termios()
Dir-usb.c54 struct usb_serial_port *port, struct ktermios *old_termios);
379 struct usb_serial_port *port, struct ktermios *old_termios) in ir_set_termios() argument
435 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios()
Dpl2303.c780 struct usb_serial_port *port, struct ktermios *old_termios) in pl2303_set_termios() argument
790 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios)) in pl2303_set_termios()
796 if (old_termios) in pl2303_set_termios()
797 tty->termios = *old_termios; in pl2303_set_termios()
869 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios()
880 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in pl2303_set_termios()
Dbelkin_sa.c276 struct usb_serial_port *port, struct ktermios *old_termios) in belkin_sa_set_termios() argument
302 old_iflag = old_termios->c_iflag; in belkin_sa_set_termios()
303 old_cflag = old_termios->c_cflag; in belkin_sa_set_termios()
Dkl5kusb105.c396 struct ktermios *old_termios) in klsi_105_set_termios() argument
401 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios()
403 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios()
Dkeyspan_pda.c333 struct usb_serial_port *port, struct ktermios *old_termios) in keyspan_pda_set_termios() argument
365 speed = tty_termios_baud_rate(old_termios); in keyspan_pda_set_termios()
371 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios()
Ddigi_acceleport.c218 struct usb_serial_port *port, struct ktermios *old_termios);
652 struct usb_serial_port *port, 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()
Df81534.c948 struct ktermios *old_termios) in f81534_set_termios() argument
957 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81534_set_termios()
993 if (old_termios) in f81534_set_termios()
994 old_baud = tty_termios_baud_rate(old_termios); in f81534_set_termios()
Dftdi_sio.c2658 struct usb_serial_port *port, struct ktermios *old_termios) in ftdi_set_termios() argument
2700 if (old_termios) in ftdi_set_termios()
2701 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios()
2708 if (!old_termios) in ftdi_set_termios()
2711 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios()
2712 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios()
2713 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios()
2720 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios()
2791 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ftdi_set_termios()
Dmct_u232.c596 struct ktermios *old_termios) in mct_u232_set_termios() argument
602 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
Diuu_phoenix.c882 struct usb_serial_port *port, struct ktermios *old_termios) in iuu_set_termios() argument
925 if (old_termios) in iuu_set_termios()
926 tty_termios_copy_hw(&tty->termios, old_termios); in iuu_set_termios()
Dio_ti.c222 struct usb_serial_port *port, struct ktermios *old_termios);
2211 struct edgeport_port *edge_port, struct ktermios *old_termios) in change_port_settings() argument
2221 tty->termios = *old_termios; in change_port_settings()
2352 struct usb_serial_port *port, struct ktermios *old_termios) in edge_set_termios() argument
2359 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
/Linux-v5.15/drivers/tty/
Dtty_ioctl.c340 struct ktermios old_termios; in tty_set_termios() local
353 old_termios = tty->termios; in tty_set_termios()
355 unset_locked_termios(tty, &old_termios); in tty_set_termios()
358 tty->ops->set_termios(tty, &old_termios); in tty_set_termios()
360 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios()
365 ld->ops->set_termios(tty, &old_termios); in tty_set_termios()
Damiserial.c570 struct ktermios *old_termios) in change_speed() argument
613 if (!quot && old_termios) { in change_speed()
616 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed()
1176 static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) in rs_set_termios() argument
1182 change_speed(tty, info, old_termios); in rs_set_termios()
1185 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) { in rs_set_termios()
1193 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in rs_set_termios()
1203 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in rs_set_termios()
1215 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in rs_set_termios()
Dpty.c253 struct ktermios *old_termios) in pty_set_termios() argument
257 int extproc = (old_termios->c_lflag & EXTPROC) | L_EXTPROC(tty); in pty_set_termios()
258 int old_flow = ((old_termios->c_iflag & IXON) && in pty_set_termios()
259 (old_termios->c_cc[VSTOP] == '\023') && in pty_set_termios()
260 (old_termios->c_cc[VSTART] == '\021')); in pty_set_termios()
Dmoxa.c1305 struct ktermios *old_termios) in moxa_set_termios() argument
1311 moxa_set_tty_param(tty, old_termios); in moxa_set_termios()
1312 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in moxa_set_termios()
1464 static void moxa_set_tty_param(struct tty_struct *tty, struct ktermios *old_termios) in moxa_set_tty_param() argument
1483 baud = tty_termios_baud_rate(old_termios); in moxa_set_tty_param()
/Linux-v5.15/drivers/mmc/core/
Dsdio_uart.c875 struct ktermios *old_termios) in sdio_uart_set_termios() argument
883 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios()
886 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) in sdio_uart_set_termios()
890 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in sdio_uart_set_termios()
898 if ((old_termios->c_cflag & CRTSCTS) && !(cflag & CRTSCTS)) { in sdio_uart_set_termios()
904 if (!(old_termios->c_cflag & CRTSCTS) && (cflag & CRTSCTS)) { in sdio_uart_set_termios()
/Linux-v5.15/drivers/tty/serial/
Dserial_core.c46 struct ktermios *old_termios);
479 struct ktermios *old_termios) in uart_change_speed() argument
493 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
1458 struct ktermios *old_termios) in uart_set_termios() argument
1478 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1479 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1488 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios()
1489 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1490 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1491 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios()
[all …]
Ddz.c562 struct ktermios *old_termios) in dz_set_termios() argument
593 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); in dz_set_termios()
596 baud = uart_get_baud_rate(uport, old_termios, NULL, 50, 9600); in dz_set_termios()

12