Home
last modified time | relevance | path

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

12

/drivers/usb/serial/
Dspcp8x5.c288 struct usb_serial_port *port, struct ktermios *old_termios) in spcp8x5_set_termios() argument
301 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios()
307 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios()
309 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
Dch341.c109 struct ktermios *old_termios);
514 struct usb_serial_port *port, struct ktermios *old_termios) in ch341_set_termios() argument
523 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in ch341_set_termios()
561 if (r < 0 && old_termios) { in ch341_set_termios()
562 priv->baud_rate = tty_termios_baud_rate(old_termios); in ch341_set_termios()
563 tty_termios_copy_hw(&tty->termios, old_termios); in ch341_set_termios()
572 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ch341_set_termios()
Dupd78f0730.c306 struct ktermios *old_termios) in upd78f0730_set_termios() argument
312 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in upd78f0730_set_termios()
317 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in upd78f0730_set_termios()
Dmxuport.c770 struct ktermios *old_termios, in mxuport_set_termios_flow() argument
811 if (!old_termios || in mxuport_set_termios_flow()
812 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) { in mxuport_set_termios_flow()
820 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in mxuport_set_termios_flow()
844 struct ktermios *old_termios) in mxuport_set_termios() argument
854 if (old_termios && in mxuport_set_termios()
855 !tty_termios_hw_change(&tty->termios, old_termios) && in mxuport_set_termios()
856 tty->termios.c_iflag == old_termios->c_iflag) { in mxuport_set_termios()
915 err = mxuport_set_termios_flow(tty, old_termios, port, serial); in mxuport_set_termios()
Dpl2303.c664 struct usb_serial_port *port, struct ktermios *old_termios) in pl2303_set_termios() argument
674 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios)) in pl2303_set_termios()
680 if (old_termios) in pl2303_set_termios()
681 tty->termios = *old_termios; in pl2303_set_termios()
766 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios()
777 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in pl2303_set_termios()
Df81232.c633 struct usb_serial_port *port, struct ktermios *old_termios) in f81232_set_termios() argument
642 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios()
647 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81232_set_termios()
652 if (old_termios) in f81232_set_termios()
653 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()
Dkl5kusb105.c398 struct ktermios *old_termios) in klsi_105_set_termios() argument
403 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios()
405 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios()
Dbelkin_sa.c278 struct usb_serial_port *port, 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()
Dkeyspan_pda.c311 struct usb_serial_port *port, struct ktermios *old_termios) in keyspan_pda_set_termios() argument
342 speed = tty_termios_baud_rate(old_termios); in keyspan_pda_set_termios()
346 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios()
Dcp210x.c1313 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_change_speed() argument
1335 if (old_termios) in cp210x_change_speed()
1336 baud = old_termios->c_ospeed; in cp210x_change_speed()
1384 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_set_termios() argument
1391 old_cflag = old_termios->c_cflag; in cp210x_set_termios()
1393 if (tty->termios.c_ospeed != old_termios->c_ospeed) in cp210x_set_termios()
1394 cp210x_change_speed(tty, port, old_termios); in cp210x_set_termios()
Ddigi_acceleport.c217 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.c952 struct ktermios *old_termios) in f81534_set_termios() argument
961 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81534_set_termios()
997 if (old_termios) in f81534_set_termios()
998 old_baud = tty_termios_baud_rate(old_termios); in f81534_set_termios()
Dftdi_sio.c2667 struct usb_serial_port *port, struct ktermios *old_termios) in ftdi_set_termios() argument
2709 if (old_termios) in ftdi_set_termios()
2710 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios()
2717 if (!old_termios) in ftdi_set_termios()
2720 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios()
2721 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios()
2722 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios()
2729 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios()
2800 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ftdi_set_termios()
Dmct_u232.c598 struct ktermios *old_termios) in mct_u232_set_termios() argument
604 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
Diuu_phoenix.c888 struct usb_serial_port *port, struct ktermios *old_termios) in iuu_set_termios() argument
931 if (old_termios) in iuu_set_termios()
932 tty_termios_copy_hw(&tty->termios, old_termios); in iuu_set_termios()
/drivers/tty/
Dtty_ioctl.c317 struct ktermios old_termios; in tty_set_termios() local
330 old_termios = tty->termios; in tty_set_termios()
332 unset_locked_termios(tty, &old_termios); in tty_set_termios()
335 tty->ops->set_termios(tty, &old_termios); in tty_set_termios()
337 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios()
342 ld->ops->set_termios(tty, &old_termios); in tty_set_termios()
Damiserial.c609 struct ktermios *old_termios) in change_speed() argument
652 if (!quot && old_termios) { in change_speed()
655 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed()
1205 static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) in rs_set_termios() argument
1211 change_speed(tty, info, old_termios); in rs_set_termios()
1214 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) { in rs_set_termios()
1222 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in rs_set_termios()
1232 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in rs_set_termios()
1244 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in rs_set_termios()
Dpty.c254 struct ktermios *old_termios) in pty_set_termios() argument
258 int extproc = (old_termios->c_lflag & EXTPROC) | L_EXTPROC(tty); in pty_set_termios()
259 int old_flow = ((old_termios->c_iflag & IXON) && in pty_set_termios()
260 (old_termios->c_cc[VSTOP] == '\023') && in pty_set_termios()
261 (old_termios->c_cc[VSTART] == '\021')); in pty_set_termios()
Drocket.c696 struct ktermios *old_termios) in configure_r_port() argument
740 if ((divisor >= 8192 || divisor < 0) && old_termios) { in configure_r_port()
741 baud = tty_termios_baud_rate(old_termios); in configure_r_port()
1042 struct ktermios *old_termios) in rp_set_termios() argument
1058 ((cflag & ~CSIZE) | (old_termios->c_cflag & CSIZE)); in rp_set_termios()
1062 configure_r_port(tty, info, old_termios); in rp_set_termios()
1067 if ((old_termios->c_cflag & CBAUD) && !C_BAUD(tty)) { in rp_set_termios()
1073 if (!(old_termios->c_cflag & CBAUD) && C_BAUD(tty)) { in rp_set_termios()
1078 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) in rp_set_termios()
Disicom.c1154 struct ktermios *old_termios) in isicom_set_termios() argument
1162 if (tty->termios.c_cflag == old_termios->c_cflag && in isicom_set_termios()
1163 tty->termios.c_iflag == old_termios->c_iflag) in isicom_set_termios()
1170 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in isicom_set_termios()
Dmoxa.c1307 struct ktermios *old_termios) in moxa_set_termios() argument
1313 moxa_set_tty_param(tty, old_termios); in moxa_set_termios()
1314 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in moxa_set_termios()
1466 static void moxa_set_tty_param(struct tty_struct *tty, struct ktermios *old_termios) in moxa_set_tty_param() argument
1485 baud = tty_termios_baud_rate(old_termios); in moxa_set_tty_param()
/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()
/drivers/tty/serial/
Dserial_core.c51 struct ktermios *old_termios);
502 struct ktermios *old_termios) in uart_change_speed() argument
516 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
1531 struct ktermios *old_termios) in uart_set_termios() argument
1551 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1552 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1561 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios()
1562 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1563 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1564 ((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