Lines Matching refs:tty
295 static void mxuport_throttle(struct tty_struct *tty) in mxuport_throttle() argument
297 struct usb_serial_port *port = tty->driver_data; in mxuport_throttle()
313 static void mxuport_unthrottle(struct tty_struct *tty) in mxuport_unthrottle() argument
316 struct usb_serial_port *port = tty->driver_data; in mxuport_unthrottle()
709 static int mxuport_tiocmset(struct tty_struct *tty, unsigned int set, in mxuport_tiocmset() argument
712 struct usb_serial_port *port = tty->driver_data; in mxuport_tiocmset()
741 static int mxuport_tiocmget(struct tty_struct *tty) in mxuport_tiocmget() argument
744 struct usb_serial_port *port = tty->driver_data; in mxuport_tiocmget()
773 static int mxuport_set_termios_flow(struct tty_struct *tty, in mxuport_set_termios_flow() argument
778 u8 xon = START_CHAR(tty); in mxuport_set_termios_flow()
779 u8 xoff = STOP_CHAR(tty); in mxuport_set_termios_flow()
790 if (I_IXOFF(tty) || I_IXON(tty)) { in mxuport_set_termios_flow()
816 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) { in mxuport_set_termios_flow()
817 if (C_CRTSCTS(tty)) in mxuport_set_termios_flow()
823 if (C_BAUD(tty)) { in mxuport_set_termios_flow()
826 if (C_CRTSCTS(tty)) in mxuport_set_termios_flow()
846 static void mxuport_set_termios(struct tty_struct *tty, in mxuport_set_termios() argument
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()
870 switch (C_CSIZE(tty)) { in mxuport_set_termios()
887 if (C_PARENB(tty)) { in mxuport_set_termios()
888 if (C_CMSPAR(tty)) { in mxuport_set_termios()
889 if (C_PARODD(tty)) in mxuport_set_termios()
894 if (C_PARODD(tty)) in mxuport_set_termios()
904 if (C_CSTOPB(tty)) in mxuport_set_termios()
919 err = mxuport_set_termios_flow(tty, old_termios, port, serial); in mxuport_set_termios()
923 baud = tty_get_baud_rate(tty); in mxuport_set_termios()
1275 static int mxuport_open(struct tty_struct *tty, struct usb_serial_port *port) in mxuport_open() argument
1296 if (tty) in mxuport_open()
1297 mxuport_set_termios(tty, port, NULL); in mxuport_open()
1320 static void mxuport_break_ctl(struct tty_struct *tty, int break_state) in mxuport_break_ctl() argument
1322 struct usb_serial_port *port = tty->driver_data; in mxuport_break_ctl()