• Home
  • Raw
  • Download

Lines Matching refs:tty

434 	struct tty_struct *tty;  in sdio_uart_transmit_chars()  local
445 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars()
447 if (tty == NULL || !kfifo_len(xmit) || in sdio_uart_transmit_chars()
448 tty->stopped || tty->hw_stopped) { in sdio_uart_transmit_chars()
450 tty_kref_put(tty); in sdio_uart_transmit_chars()
462 tty_wakeup(tty); in sdio_uart_transmit_chars()
466 tty_kref_put(tty); in sdio_uart_transmit_chars()
472 struct tty_struct *tty; in sdio_uart_check_modem_status() local
495 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status()
496 if (tty && C_CRTSCTS(tty)) { in sdio_uart_check_modem_status()
498 if (tty->hw_stopped) { in sdio_uart_check_modem_status()
500 tty->hw_stopped = 0; in sdio_uart_check_modem_status()
502 tty_wakeup(tty); in sdio_uart_check_modem_status()
506 tty->hw_stopped = 1; in sdio_uart_check_modem_status()
511 tty_kref_put(tty); in sdio_uart_check_modem_status()
600 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() argument
610 set_bit(TTY_IO_ERROR, &tty->flags); in sdio_uart_activate()
649 sdio_uart_change_speed(port, &tty->termios, NULL); in sdio_uart_activate()
651 if (C_BAUD(tty)) in sdio_uart_activate()
654 if (C_CRTSCTS(tty)) in sdio_uart_activate()
656 tty->hw_stopped = 1; in sdio_uart_activate()
658 clear_bit(TTY_IO_ERROR, &tty->flags); in sdio_uart_activate()
732 static int sdio_uart_install(struct tty_driver *driver, struct tty_struct *tty) in sdio_uart_install() argument
734 int idx = tty->index; in sdio_uart_install()
736 int ret = tty_standard_install(driver, tty); in sdio_uart_install()
740 tty->driver_data = port; in sdio_uart_install()
754 static void sdio_uart_cleanup(struct tty_struct *tty) in sdio_uart_cleanup() argument
756 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_cleanup()
757 tty->driver_data = NULL; /* Bug trap */ in sdio_uart_cleanup()
765 static int sdio_uart_open(struct tty_struct *tty, struct file *filp) in sdio_uart_open() argument
767 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_open()
768 return tty_port_open(&port->port, tty, filp); in sdio_uart_open()
771 static void sdio_uart_close(struct tty_struct *tty, struct file * filp) in sdio_uart_close() argument
773 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_close()
774 tty_port_close(&port->port, tty, filp); in sdio_uart_close()
777 static void sdio_uart_hangup(struct tty_struct *tty) in sdio_uart_hangup() argument
779 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_hangup()
783 static int sdio_uart_write(struct tty_struct *tty, const unsigned char *buf, in sdio_uart_write() argument
786 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write()
806 static int sdio_uart_write_room(struct tty_struct *tty) in sdio_uart_write_room() argument
808 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write_room()
812 static int sdio_uart_chars_in_buffer(struct tty_struct *tty) in sdio_uart_chars_in_buffer() argument
814 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_chars_in_buffer()
818 static void sdio_uart_send_xchar(struct tty_struct *tty, char ch) in sdio_uart_send_xchar() argument
820 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_send_xchar()
832 static void sdio_uart_throttle(struct tty_struct *tty) in sdio_uart_throttle() argument
834 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_throttle()
836 if (!I_IXOFF(tty) && !C_CRTSCTS(tty)) in sdio_uart_throttle()
842 if (I_IXOFF(tty)) { in sdio_uart_throttle()
843 port->x_char = STOP_CHAR(tty); in sdio_uart_throttle()
847 if (C_CRTSCTS(tty)) in sdio_uart_throttle()
854 static void sdio_uart_unthrottle(struct tty_struct *tty) in sdio_uart_unthrottle() argument
856 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_unthrottle()
858 if (!I_IXOFF(tty) && !C_CRTSCTS(tty)) in sdio_uart_unthrottle()
864 if (I_IXOFF(tty)) { in sdio_uart_unthrottle()
868 port->x_char = START_CHAR(tty); in sdio_uart_unthrottle()
873 if (C_CRTSCTS(tty)) in sdio_uart_unthrottle()
880 static void sdio_uart_set_termios(struct tty_struct *tty, in sdio_uart_set_termios() argument
883 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_set_termios()
884 unsigned int cflag = tty->termios.c_cflag; in sdio_uart_set_termios()
889 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios()
898 if (!(cflag & CRTSCTS) || !tty_throttled(tty)) in sdio_uart_set_termios()
905 tty->hw_stopped = 0; in sdio_uart_set_termios()
912 tty->hw_stopped = 1; in sdio_uart_set_termios()
920 static int sdio_uart_break_ctl(struct tty_struct *tty, int break_state) in sdio_uart_break_ctl() argument
922 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_break_ctl()
939 static int sdio_uart_tiocmget(struct tty_struct *tty) in sdio_uart_tiocmget() argument
941 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmget()
953 static int sdio_uart_tiocmset(struct tty_struct *tty, in sdio_uart_tiocmset() argument
956 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmset()