Searched refs:old_termios (Results 1 - 25 of 43) sorted by relevance

12

/linux-master/drivers/usb/serial/
H A Dxr_serial.c109 const struct ktermios *old_termios);
139 const struct ktermios *old_termios);
629 const struct ktermios *old_termios)
686 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
692 const struct ktermios *old_termios)
698 if (!old_termios || (tty->termios.c_ospeed != old_termios->c_ospeed))
706 if (old_termios)
707 termios->c_cflag |= old_termios
627 xr_set_flow_mode(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
690 xr21v141x_set_line_settings(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
749 xr_cdc_set_line_coding(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
898 xr_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
[all...]
H A Dupd78f0730.c303 const struct ktermios *old_termios)
309 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
314 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
301 upd78f0730_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dch341.c109 const struct ktermios *old_termios);
486 const struct ktermios *old_termios)
495 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
533 if (r < 0 && old_termios) {
534 priv->baud_rate = tty_termios_baud_rate(old_termios);
535 tty_termios_copy_hw(&tty->termios, old_termios);
544 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
484 ch341_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dspcp8x5.c287 const struct ktermios *old_termios)
300 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
306 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) {
308 if (!(old_termios->c_cflag & CRTSCTS))
285 spcp8x5_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dcp210x.c1053 const struct ktermios *old_termios)
1076 if (old_termios)
1077 baud = old_termios->c_ospeed;
1137 const struct ktermios *old_termios)
1158 old_termios && old_termios->c_ospeed != 0 &&
1159 C_CRTSCTS(tty) == (old_termios->c_cflag & CRTSCTS) &&
1160 I_IXON(tty) == (old_termios->c_iflag & IXON) &&
1161 I_IXOFF(tty) == (old_termios->c_iflag & IXOFF) &&
1162 START_CHAR(tty) == old_termios
1051 cp210x_change_speed(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
1135 cp210x_set_flow_control(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
1255 cp210x_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
[all...]
H A Dmxuport.c763 const struct ktermios *old_termios,
804 if (!old_termios ||
805 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) {
813 if (old_termios && (old_termios->c_cflag & CBAUD) == B0) {
837 const struct ktermios *old_termios)
847 if (old_termios &&
848 !tty_termios_hw_change(&tty->termios, old_termios) &&
849 tty->termios.c_iflag == old_termios->c_iflag) {
908 err = mxuport_set_termios_flow(tty, old_termios, por
762 mxuport_set_termios_flow(struct tty_struct *tty, const struct ktermios *old_termios, struct usb_serial_port *port, struct usb_serial *serial) argument
835 mxuport_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
[all...]
H A Dir-usb.c55 const struct ktermios *old_termios);
381 const struct ktermios *old_termios)
437 tty_termios_copy_hw(&tty->termios, old_termios);
379 ir_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dkl5kusb105.c60 const struct ktermios *old_termios);
370 const struct ktermios *old_termios)
375 unsigned int old_iflag = old_termios->c_iflag;
377 unsigned int old_cflag = old_termios->c_cflag;
368 klsi_105_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dbelkin_sa.c48 const struct ktermios *old_termios);
278 const struct ktermios *old_termios)
304 old_iflag = old_termios->c_iflag;
305 old_cflag = old_termios->c_cflag;
276 belkin_sa_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dpl2303.c793 const struct ktermios *old_termios)
803 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
809 if (old_termios)
810 tty->termios = *old_termios;
877 * actually used (and stored in old_termios).
882 if (!old_termios || memcmp(buf, priv->line_settings, 7)) {
893 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
791 pl2303_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Df81232.c611 const struct ktermios *old_termios)
620 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
625 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
630 if (old_termios)
631 old_baud = tty_termios_baud_rate(old_termios);
609 f81232_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dkeyspan_pda.c329 const struct ktermios *old_termios)
361 speed = tty_termios_baud_rate(old_termios);
367 tty_termios_copy_hw(&tty->termios, old_termios);
327 keyspan_pda_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dmct_u232.c49 const struct ktermios *old_termios);
597 const struct ktermios *old_termios)
603 unsigned int old_cflag = old_termios->c_cflag;
595 mct_u232_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Ddigi_acceleport.c219 const struct ktermios *old_termios);
654 const struct ktermios *old_termios)
660 unsigned int old_iflag = old_termios->c_iflag;
661 unsigned int old_cflag = old_termios->c_cflag;
674 if (baud != tty_termios_baud_rate(old_termios)) {
652 digi_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Df81534.c952 const struct ktermios *old_termios)
961 else if (old_termios && (old_termios->c_cflag & CBAUD) == B0)
983 if (old_termios)
984 old_baud = tty_termios_baud_rate(old_termios);
950 f81534_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dwhiteheat.c86 const struct ktermios *old_termios);
447 const struct ktermios *old_termios)
445 whiteheat_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
H A Dftdi_sio.c1114 const struct ktermios *old_termios);
2603 /* old_termios contains the original termios settings and tty->termios contains
2605 * WARNING: set_termios calls this with old_termios in kernel space
2609 const struct ktermios *old_termios)
2651 if (old_termios)
2652 termios->c_cflag |= old_termios->c_cflag & CSIZE;
2659 if (!old_termios)
2662 if (old_termios->c_cflag == termios->c_cflag
2663 && old_termios->c_ispeed == termios->c_ispeed
2664 && old_termios
2607 ftdi_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
[all...]
H A Diuu_phoenix.c883 const struct ktermios *old_termios)
926 if (old_termios)
927 tty_termios_copy_hw(&tty->termios, old_termios);
881 iuu_set_termios(struct tty_struct *tty, struct usb_serial_port *port, const struct ktermios *old_termios) argument
/linux-master/drivers/tty/
H A Dtty_ioctl.c325 struct ktermios old_termios; local
338 old_termios = tty->termios;
340 unset_locked_termios(tty, &old_termios);
342 tty->termios.c_cflag ^= (tty->termios.c_cflag ^ old_termios.c_cflag) & ADDRB;
345 tty->ops->set_termios(tty, &old_termios);
347 tty_termios_copy_hw(&tty->termios, &old_termios);
352 ld->ops->set_termios(tty, &old_termios);
H A Damiserial.c567 const struct ktermios *old_termios)
608 if (!quot && old_termios) {
611 tty->termios.c_cflag |= (old_termios->c_cflag & CBAUD);
1170 static void rs_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument
1176 change_speed(tty, info, old_termios);
1179 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD)) {
1187 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) {
1197 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) {
1209 if (!(old_termios->c_cflag & CLOCAL) && C_CLOCAL(tty))
566 change_speed(struct tty_struct *tty, struct serial_state *info, const struct ktermios *old_termios) argument
H A Dpty.c243 const struct ktermios *old_termios)
247 int extproc = (old_termios->c_lflag & EXTPROC) | L_EXTPROC(tty);
248 int old_flow = ((old_termios->c_iflag & IXON) &&
249 (old_termios->c_cc[VSTOP] == '\023') &&
250 (old_termios->c_cc[VSTART] == '\021'));
242 pty_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument
H A Dmxser.c576 const struct ktermios *old_termios)
585 if (old_termios) {
586 speed_t baud = tty_termios_baud_rate(old_termios);
1354 const struct ktermios *old_termios)
1360 mxser_change_speed(tty, old_termios);
1363 if ((old_termios->c_cflag & CRTSCTS) && !C_CRTSCTS(tty)) {
1369 if ((old_termios->c_iflag & IXON) && !I_IXON(tty)) {
575 mxser_change_speed(struct tty_struct *tty, const struct ktermios *old_termios) argument
1353 mxser_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument
/linux-master/drivers/tty/serial/
H A Ddz.c561 const struct ktermios *old_termios)
592 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600);
595 if (old_termios) {
597 baud = tty_termios_baud_rate(old_termios);
560 dz_set_termios(struct uart_port *uport, struct ktermios *termios, const struct ktermios *old_termios) argument
H A Dserial_core.c203 const struct ktermios *old_termios)
217 uport->ops->set_termios(uport, termios, old_termios);
1691 const struct ktermios *old_termios)
1711 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] ||
1712 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP];
1721 if ((cflag ^ old_termios->c_cflag) == 0 &&
1722 tty->termios.c_ospeed == old_termios->c_ospeed &&
1723 tty->termios.c_ispeed == old_termios->c_ispeed &&
1724 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 &&
1729 uart_change_line_settings(tty, state, old_termios);
202 uart_change_line_settings(struct tty_struct *tty, struct uart_state *state, const struct ktermios *old_termios) argument
1690 uart_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument
[all...]
/linux-master/drivers/mmc/core/
H A Dsdio_uart.c857 const struct ktermios *old_termios)
865 sdio_uart_change_speed(port, &tty->termios, old_termios);
868 if ((old_termios->c_cflag & CBAUD) && !(cflag & CBAUD))
872 if (!(old_termios->c_cflag & CBAUD) && (cflag & CBAUD)) {
880 if ((old_termios->c_cflag & CRTSCTS) && !(cflag & CRTSCTS)) {
886 if (!(old_termios->c_cflag & CRTSCTS) && (cflag & CRTSCTS)) {
856 sdio_uart_set_termios(struct tty_struct *tty, const struct ktermios *old_termios) argument

Completed in 419 milliseconds

12