Lines Matching refs:tty

22 #include <linux/tty.h>
278 * This function is called by the tty driver when it wants to stop the
284 static void mxuport_throttle(struct tty_struct *tty)
286 struct usb_serial_port *port = tty->driver_data;
298 * This function is called by the tty driver when it wants to resume
302 static void mxuport_unthrottle(struct tty_struct *tty)
305 struct usb_serial_port *port = tty->driver_data;
698 static int mxuport_tiocmset(struct tty_struct *tty, unsigned int set,
701 struct usb_serial_port *port = tty->driver_data;
730 static int mxuport_tiocmget(struct tty_struct *tty)
733 struct usb_serial_port *port = tty->driver_data;
762 static int mxuport_set_termios_flow(struct tty_struct *tty,
767 u8 xon = START_CHAR(tty);
768 u8 xoff = STOP_CHAR(tty);
779 if (I_IXOFF(tty) || I_IXON(tty)) {
805 C_CRTSCTS(tty) != (old_termios->c_cflag & CRTSCTS)) {
806 if (C_CRTSCTS(tty))
812 if (C_BAUD(tty)) {
815 if (C_CRTSCTS(tty))
835 static void mxuport_set_termios(struct tty_struct *tty,
848 !tty_termios_hw_change(&tty->termios, old_termios) &&
849 tty->termios.c_iflag == old_termios->c_iflag) {
859 switch (C_CSIZE(tty)) {
876 if (C_PARENB(tty)) {
877 if (C_CMSPAR(tty)) {
878 if (C_PARODD(tty))
883 if (C_PARODD(tty))
893 if (C_CSTOPB(tty))
908 err = mxuport_set_termios_flow(tty, old_termios, port, serial);
912 baud = tty_get_baud_rate(tty);
1188 static int mxuport_open(struct tty_struct *tty, struct usb_serial_port *port)
1209 if (tty)
1210 mxuport_set_termios(tty, port, NULL);
1233 static int mxuport_break_ctl(struct tty_struct *tty, int break_state)
1235 struct usb_serial_port *port = tty->driver_data;