Home
last modified time | relevance | path

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

123

/drivers/usb/serial/
Df81232.c168 struct usb_serial_port *port, struct ktermios *old_termios) in f81232_set_termios() argument
173 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in f81232_set_termios()
177 if (old_termios) in f81232_set_termios()
178 tty_termios_copy_hw(&tty->termios, old_termios); in f81232_set_termios()
Dspcp8x5.c289 struct usb_serial_port *port, struct ktermios *old_termios) in spcp8x5_set_termios() argument
302 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in spcp8x5_set_termios()
308 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) { in spcp8x5_set_termios()
310 if (!(old_termios->c_cflag & CRTSCTS)) in spcp8x5_set_termios()
Dcp210x.c664 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_change_speed() argument
681 if (old_termios) in cp210x_change_speed()
682 baud = old_termios->c_ospeed; in cp210x_change_speed()
691 struct usb_serial_port *port, struct ktermios *old_termios) in cp210x_set_termios() argument
699 old_cflag = old_termios->c_cflag; in cp210x_set_termios()
701 if (tty->termios.c_ospeed != old_termios->c_ospeed) in cp210x_set_termios()
702 cp210x_change_speed(tty, port, old_termios); in cp210x_set_termios()
Dpl2303.c462 struct usb_serial_port *port, struct ktermios *old_termios) in pl2303_set_termios() argument
472 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios)) in pl2303_set_termios()
478 if (old_termios) in pl2303_set_termios()
479 tty->termios = *old_termios; in pl2303_set_termios()
564 if (!old_termios || memcmp(buf, priv->line_settings, 7)) { in pl2303_set_termios()
575 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()
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()
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()
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()
Dkl5kusb105.c414 struct ktermios *old_termios) in klsi_105_set_termios() argument
419 unsigned int old_iflag = old_termios->c_iflag; in klsi_105_set_termios()
421 unsigned int old_cflag = old_termios->c_cflag; in klsi_105_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.c2190 struct usb_serial_port *port, struct ktermios *old_termios) in ftdi_set_termios() argument
2236 if (old_termios) in ftdi_set_termios()
2237 termios->c_cflag |= old_termios->c_cflag & CSIZE; in ftdi_set_termios()
2244 if (!old_termios) in ftdi_set_termios()
2247 if (old_termios->c_cflag == termios->c_cflag in ftdi_set_termios()
2248 && old_termios->c_ispeed == termios->c_ispeed in ftdi_set_termios()
2249 && old_termios->c_ospeed == termios->c_ospeed) in ftdi_set_termios()
2256 if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) == in ftdi_set_termios()
2327 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);
1466 struct usb_serial_port *port, struct ktermios *old_termios) in edge_set_termios() argument
1473 …ort->dev, "%s - old clfag %08x old iflag %08x\n", __func__, old_termios->c_cflag, old_termios->c_i… in edge_set_termios()
1484 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
2395 struct edgeport_port *edge_port, struct ktermios *old_termios) in change_port_settings() argument
2554 baud = tty_termios_baud_rate(old_termios); in change_port_settings()
Dio_ti.c205 struct usb_serial_port *port, struct ktermios *old_termios);
2108 struct edgeport_port *edge_port, struct ktermios *old_termios) in change_port_settings() argument
2119 tty->termios = *old_termios; in change_port_settings()
2249 struct usb_serial_port *port, struct ktermios *old_termios) in edge_set_termios() argument
2259 old_termios->c_cflag, old_termios->c_iflag); in edge_set_termios()
2264 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
Dmos7720.c1520 struct ktermios *old_termios) in change_port_settings() argument
1677 struct usb_serial_port *port, struct ktermios *old_termios) in mos7720_set_termios() argument
1704 old_termios->c_cflag, RELEVANT_IFLAG(old_termios->c_iflag)); in mos7720_set_termios()
1707 change_port_settings(tty, mos7720_port, old_termios); in mos7720_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()
Dti_usb_3410_5052.c105 struct usb_serial_port *port, struct ktermios *old_termios);
702 struct usb_serial_port *port, struct ktermios *old_termios) in ti_set_termios() argument
717 old_termios->c_cflag, old_termios->c_iflag); in ti_set_termios()
/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/tty/
Dtty_ioctl.c542 struct ktermios old_termios; in tty_set_termios() local
554 old_termios = tty->termios; in tty_set_termios()
556 unset_locked_termios(&tty->termios, &old_termios, &tty->termios_locked); in tty_set_termios()
560 int extproc = (old_termios.c_lflag & EXTPROC) | in tty_set_termios()
562 int old_flow = ((old_termios.c_iflag & IXON) && in tty_set_termios()
563 (old_termios.c_cc[VSTOP] == '\023') && in tty_set_termios()
564 (old_termios.c_cc[VSTART] == '\021')); in tty_set_termios()
585 (*tty->ops->set_termios)(tty, &old_termios); in tty_set_termios()
587 tty_termios_copy_hw(&tty->termios, &old_termios); in tty_set_termios()
592 (ld->ops->set_termios)(tty, &old_termios); in tty_set_termios()
Damiserial.c659 struct ktermios *old_termios) in change_speed() argument
702 if (!quot && old_termios) { in change_speed()
705 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD); in change_speed()
1333 static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) in rs_set_termios() argument
1339 change_speed(tty, info, old_termios); in rs_set_termios()
1342 if ((old_termios->c_cflag & CBAUD) && in rs_set_termios()
1351 if (!(old_termios->c_cflag & CBAUD) && in rs_set_termios()
1364 if ((old_termios->c_cflag & CRTSCTS) && in rs_set_termios()
1377 if (!(old_termios->c_cflag & CLOCAL) && in rs_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()
1073 struct ktermios *old_termios) in rp_set_termios() argument
1089 ((cflag & ~CSIZE) | (old_termios->c_cflag & CSIZE)); in rp_set_termios()
1093 configure_r_port(tty, info, old_termios); in rp_set_termios()
1098 if ((old_termios->c_cflag & CBAUD) && !(tty->termios.c_cflag & CBAUD)) { in rp_set_termios()
1104 if (!(old_termios->c_cflag & CBAUD) && (tty->termios.c_cflag & CBAUD)) { in rp_set_termios()
1109 if ((old_termios->c_cflag & CRTSCTS) && !(tty->termios.c_cflag & CRTSCTS)) in rp_set_termios()
Disicom.c1191 struct ktermios *old_termios) in isicom_set_termios() argument
1199 if (tty->termios.c_cflag == old_termios->c_cflag && in isicom_set_termios()
1200 tty->termios.c_iflag == old_termios->c_iflag) in isicom_set_termios()
1207 if ((old_termios->c_cflag & CRTSCTS) && in isicom_set_termios()
/drivers/tty/serial/
Dserial_core.c55 struct ktermios *old_termios);
444 struct ktermios *old_termios) in uart_change_speed() argument
457 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
1251 struct ktermios *old_termios) in uart_set_termios() argument
1266 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1267 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1276 if ((cflag ^ old_termios->c_cflag) == 0 && in uart_set_termios()
1277 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1278 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1279 ((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()
Dioc3_serial.c955 struct ktermios *new_termios, struct ktermios *old_termios) in ioc3_change_speed() argument
992 baud = uart_get_baud_rate(the_port, new_termios, old_termios, in ioc3_change_speed()
1856 struct ktermios *termios, struct ktermios *old_termios) in ic3_set_termios() argument
1861 ioc3_change_speed(the_port, termios, old_termios); in ic3_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()

123