Home
last modified time | relevance | path

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

123

/drivers/net/irda/
Dirtty-sir.c118 struct ktermios old_termios; in irtty_change_speed() local
127 old_termios = tty->termios; in irtty_change_speed()
131 tty->ops->set_termios(tty, &old_termios); in irtty_change_speed()
280 struct ktermios old_termios; in irtty_stop_receiver() local
284 old_termios = tty->termios; in irtty_stop_receiver()
294 tty->ops->set_termios(tty, &old_termios); in irtty_stop_receiver()
/drivers/usb/serial/
Dspcp8x5.c308 struct usb_serial_port *port, struct ktermios *old_termios) in spcp8x5_set_termios() argument
321 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios()
327 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios()
329 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
Dpl2303.c490 struct usb_serial_port *port, struct ktermios *old_termios) in pl2303_set_termios() argument
500 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in pl2303_set_termios()
506 if (old_termios) in pl2303_set_termios()
507 tty->termios = *old_termios; in pl2303_set_termios()
592 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios()
603 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in pl2303_set_termios()
Dmxuport.c774 struct ktermios *old_termios, in mxuport_set_termios_flow() argument
815 if (!old_termios || in mxuport_set_termios_flow()
816 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) { in mxuport_set_termios_flow()
824 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in mxuport_set_termios_flow()
848 struct ktermios *old_termios) in mxuport_set_termios() argument
858 if (old_termios && in mxuport_set_termios()
859 !tty_termios_hw_change(&tty->termios, old_termios) && in mxuport_set_termios()
860 tty->termios.c_iflag == old_termios->c_iflag) { in mxuport_set_termios()
919 err = mxuport_set_termios_flow(tty, old_termios, port, serial); in mxuport_set_termios()
Df81232.c440 struct usb_serial_port *port, struct ktermios *old_termios) in f81232_set_termios() argument
447 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios()
452 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in f81232_set_termios()
Dcp210x.c885 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_change_speed() argument
901 if (old_termios) in cp210x_change_speed()
902 baud = old_termios->c_ospeed; in cp210x_change_speed()
911 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_set_termios() argument
918 old_cflag = old_termios->c_cflag; in cp210x_set_termios()
920 if (tty->termios.c_ospeed != old_termios->c_ospeed) in cp210x_set_termios()
921 cp210x_change_speed(tty, port, old_termios); in cp210x_set_termios()
Dir-usb.c57 struct usb_serial_port *port, struct ktermios *old_termios);
318 struct usb_serial_port *port, struct ktermios *old_termios) in ir_set_termios() argument
373 tty_termios_copy_hw(&tty->termios, old_termios); in ir_set_termios()
Dch341.c89 struct ktermios *old_termios);
356 struct usb_serial_port *port, struct ktermios *old_termios) in ch341_set_termios() argument
378 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ch341_set_termios()
Dbelkin_sa.c282 struct usb_serial_port *port, struct ktermios *old_termios) in belkin_sa_set_termios() argument
308 old_iflag = old_termios->c_iflag; in belkin_sa_set_termios()
309 old_cflag = old_termios->c_cflag; in belkin_sa_set_termios()
Dkl5kusb105.c417 struct ktermios *old_termios) in klsi_105_set_termios() argument
422 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios()
424 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_set_termios()
Dkeyspan_pda.c318 struct usb_serial_port *port, struct ktermios *old_termios) in keyspan_pda_set_termios() argument
349 speed = tty_termios_baud_rate(old_termios); in keyspan_pda_set_termios()
353 tty_termios_copy_hw(&tty->termios, old_termios); in keyspan_pda_set_termios()
Ddigi_acceleport.c223 struct usb_serial_port *port, struct ktermios *old_termios);
674 struct usb_serial_port *port, struct ktermios *old_termios) in digi_set_termios() argument
680 unsigned int old_iflag = old_termios->c_iflag; in digi_set_termios()
681 unsigned int old_cflag = old_termios->c_cflag; in digi_set_termios()
694 if (baud != tty_termios_baud_rate(old_termios)) { in digi_set_termios()
Dftdi_sio.c2200 struct usb_serial_port *port, struct ktermios *old_termios) in ftdi_set_termios() argument
2246 if (old_termios) in ftdi_set_termios()
2247 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios()
2254 if (!old_termios) in ftdi_set_termios()
2257 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios()
2258 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios()
2259 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios()
2266 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios()
2337 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) in ftdi_set_termios()
Dio_edgeport.c207 struct ktermios *old_termios);
240 struct ktermios *old_termios);
1464 struct usb_serial_port *port, struct ktermios *old_termios) in edge_set_termios() argument
1471 …ort->dev, "%s - old clfag %08x old iflag %08x\n", __func__, old_termios->c_cflag, old_termios->c_i… in edge_set_termios()
1482 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
2391 struct edgeport_port *edge_port, struct ktermios *old_termios) in change_port_settings() argument
2547 baud = tty_termios_baud_rate(old_termios); in change_port_settings()
Dmos7720.c1513 struct ktermios *old_termios) in change_port_settings() argument
1675 struct usb_serial_port *port, struct ktermios *old_termios) in mos7720_set_termios() argument
1702 old_termios->c_cflag, RELEVANT_IFLAG(old_termios->c_iflag)); in mos7720_set_termios()
1705 change_port_settings(tty, mos7720_port, old_termios); in mos7720_set_termios()
Dio_ti.c229 struct usb_serial_port *port, struct ktermios *old_termios);
2245 struct edgeport_port *edge_port, struct ktermios *old_termios) in change_port_settings() argument
2256 tty->termios = *old_termios; in change_port_settings()
2388 struct usb_serial_port *port, struct ktermios *old_termios) in edge_set_termios() argument
2398 old_termios->c_cflag, old_termios->c_iflag); in edge_set_termios()
2403 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
Dmct_u232.c602 struct ktermios *old_termios) in mct_u232_set_termios() argument
608 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
/drivers/tty/
Dpty.c255 struct ktermios *old_termios) in pty_set_termios() argument
259 int extproc = (old_termios->c_lflag & EXTPROC) | L_EXTPROC(tty); in pty_set_termios()
260 int old_flow = ((old_termios->c_iflag & IXON) && in pty_set_termios()
261 (old_termios->c_cc[VSTOP] == '\023') && in pty_set_termios()
262 (old_termios->c_cc[VSTART] == '\021')); in pty_set_termios()
Damiserial.c658 struct ktermios *old_termios) in change_speed() argument
701 if (!quot && old_termios) { in change_speed()
704 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed()
1321 static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) in rs_set_termios() argument
1327 change_speed(tty, info, old_termios); in rs_set_termios()
1330 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) { in rs_set_termios()
1338 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in rs_set_termios()
1348 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in rs_set_termios()
1360 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty)) in rs_set_termios()
Dtty_ioctl.c537 struct ktermios old_termios; in tty_set_termios() local
550 old_termios = tty->termios; in tty_set_termios()
552 unset_locked_termios(tty, &old_termios); in tty_set_termios()
555 tty->ops->set_termios(tty, &old_termios); in tty_set_termios()
557 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios()
562 ld->ops->set_termios(tty, &old_termios); in tty_set_termios()
Drocket.c706 struct ktermios *old_termios) in configure_r_port() argument
750 if ((divisor >= 8192 || divisor < 0) && old_termios) { in configure_r_port()
751 baud = tty_termios_baud_rate(old_termios); in configure_r_port()
1064 struct ktermios *old_termios) in rp_set_termios() argument
1080 ((cflag & ~CSIZE) | (old_termios->c_cflag & CSIZE)); in rp_set_termios()
1084 configure_r_port(tty, info, old_termios); in rp_set_termios()
1089 if ((old_termios->c_cflag & CBAUD) && !C_BAUD(tty)) { in rp_set_termios()
1095 if (!(old_termios->c_cflag & CBAUD) && C_BAUD(tty)) { in rp_set_termios()
1100 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) in rp_set_termios()
Disicom.c1186 struct ktermios *old_termios) in isicom_set_termios() argument
1194 if (tty->termios.c_cflag == old_termios->c_cflag && in isicom_set_termios()
1195 tty->termios.c_iflag == old_termios->c_iflag) in isicom_set_termios()
1202 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) { in isicom_set_termios()
/drivers/mmc/card/
Dsdio_uart.c881 struct ktermios *old_termios) in sdio_uart_set_termios() argument
889 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios()
892 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) in sdio_uart_set_termios()
896 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) { in sdio_uart_set_termios()
904 if ((old_termios->c_cflag & CRTSCTS) && !(cflag & CRTSCTS)) { in sdio_uart_set_termios()
910 if (!(old_termios->c_cflag & CRTSCTS) && (cflag & CRTSCTS)) { in sdio_uart_set_termios()
/drivers/tty/serial/
Dserial_core.c55 struct ktermios *old_termios);
476 struct ktermios *old_termios) in uart_change_speed() argument
490 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
1406 struct ktermios *old_termios) in uart_set_termios() argument
1426 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1427 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1436 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios()
1437 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1438 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1439 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios()
[all …]
Ddz.c565 struct ktermios *old_termios) in dz_set_termios() argument
596 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); in dz_set_termios()
599 baud = uart_get_baud_rate(uport, old_termios, NULL, 50, 9600); in dz_set_termios()

123