Lines Matching defs:tty

17 #include <linux/tty.h>
561 static void pl2303_encode_baud_rate(struct tty_struct *tty,
570 baud = tty_get_baud_rate(tty);
592 tty_encode_baud_rate(tty, baud, baud);
649 static bool pl2303_enable_xonxoff(struct tty_struct *tty, const struct pl2303_type_data *type)
651 if (!I_IXON(tty) || I_IXANY(tty))
654 if (START_CHAR(tty) != 0x11 || STOP_CHAR(tty) != 0x13)
663 static void pl2303_set_termios(struct tty_struct *tty,
674 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
681 tty->termios = *old_termios;
687 switch (C_CSIZE(tty)) {
704 pl2303_encode_baud_rate(tty, port, &buf[0]);
709 if (C_CSTOPB(tty)) {
714 if (C_CSIZE(tty) == CS5) {
726 if (C_PARENB(tty)) {
732 if (C_PARODD(tty)) {
733 if (C_CMSPAR(tty)) {
741 if (C_CMSPAR(tty)) {
775 if (C_BAUD(tty) == B0)
787 if (C_CRTSCTS(tty)) {
797 } else if (pl2303_enable_xonxoff(tty, spriv->type)) {
842 static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
864 if (tty)
865 pl2303_set_termios(tty, port, NULL);
874 result = usb_serial_generic_open(tty, port);
883 static int pl2303_tiocmset(struct tty_struct *tty,
886 struct usb_serial_port *port = tty->driver_data;
911 static int pl2303_tiocmget(struct tty_struct *tty)
913 struct usb_serial_port *port = tty->driver_data;
947 static int pl2303_get_serial(struct tty_struct *tty,
950 struct usb_serial_port *port = tty->driver_data;
980 static void pl2303_break_ctl(struct tty_struct *tty, int state)
982 struct usb_serial_port *port = tty->driver_data;
994 struct tty_struct *tty;
1026 tty = tty_port_tty_get(&port->port);
1027 if (tty) {
1028 usb_serial_handle_dcd_change(port, tty,
1030 tty_kref_put(tty);