/drivers/usb/serial/ |
D | f81232.c | 168 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()
|
D | spcp8x5.c | 289 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()
|
D | cp210x.c | 664 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()
|
D | pl2303.c | 462 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()
|
D | mxuport.c | 774 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()
|
D | ir-usb.c | 57 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()
|
D | belkin_sa.c | 282 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()
|
D | keyspan_pda.c | 318 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()
|
D | kl5kusb105.c | 414 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()
|
D | digi_acceleport.c | 223 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()
|
D | ftdi_sio.c | 2190 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()
|
D | io_edgeport.c | 207 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()
|
D | io_ti.c | 205 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()
|
D | mos7720.c | 1520 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()
|
D | mct_u232.c | 602 struct ktermios *old_termios) in mct_u232_set_termios() argument 608 unsigned int old_cflag = old_termios->c_cflag; in mct_u232_set_termios()
|
D | ti_usb_3410_5052.c | 105 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/ |
D | irtty-sir.c | 118 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/ |
D | tty_ioctl.c | 542 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()
|
D | amiserial.c | 659 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()
|
D | rocket.c | 706 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()
|
D | isicom.c | 1191 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/ |
D | serial_core.c | 55 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 …]
|
D | dz.c | 565 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()
|
D | ioc3_serial.c | 955 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/ |
D | sdio_uart.c | 881 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()
|