Lines Matching refs:tty

18 #include <linux/tty.h>
79 static int whiteheat_open(struct tty_struct *tty,
82 static void whiteheat_get_serial(struct tty_struct *tty,
84 static void whiteheat_set_termios(struct tty_struct *tty,
87 static int whiteheat_tiocmget(struct tty_struct *tty);
88 static int whiteheat_tiocmset(struct tty_struct *tty,
90 static int whiteheat_break_ctl(struct tty_struct *tty, int break_state);
158 static void firm_setup_port(struct tty_struct *tty);
352 static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port)
374 if (tty)
375 firm_setup_port(tty);
381 retval = usb_serial_generic_open(tty, port);
402 static int whiteheat_tiocmget(struct tty_struct *tty)
404 struct usb_serial_port *port = tty->driver_data;
417 static int whiteheat_tiocmset(struct tty_struct *tty,
420 struct usb_serial_port *port = tty->driver_data;
439 static void whiteheat_get_serial(struct tty_struct *tty, struct serial_struct *ss)
445 static void whiteheat_set_termios(struct tty_struct *tty,
449 firm_setup_port(tty);
452 static int whiteheat_break_ctl(struct tty_struct *tty, int break_state)
454 struct usb_serial_port *port = tty->driver_data;
616 static void firm_setup_port(struct tty_struct *tty)
618 struct usb_serial_port *port = tty->driver_data;
621 unsigned int cflag = tty->termios.c_cflag;
665 if (I_IXOFF(tty))
671 port_settings.xon = START_CHAR(tty);
672 port_settings.xoff = STOP_CHAR(tty);
676 baud = tty_get_baud_rate(tty);
681 tty_encode_baud_rate(tty, baud, baud);
683 /* handle any settings that aren't specified in the tty structure */