Lines Matching refs:tty

67 	struct tty_struct *tty;  in st_get_uart_wr_room()  local
68 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { in st_get_uart_wr_room()
72 tty = st_gdata->tty; in st_get_uart_wr_room()
73 return tty->ops->write_room(tty); in st_get_uart_wr_room()
86 struct tty_struct *tty; in st_int_write() local
87 if (unlikely(st_gdata == NULL || st_gdata->tty == NULL)) { in st_int_write()
91 tty = st_gdata->tty; in st_int_write()
96 return tty->ops->write(tty, data, count); in st_int_write()
485 set_bit(TTY_DO_WRITE_WAKEUP, &st_data->tty->flags); in st_tx_wakeup()
668 if (st_gdata->tty) { in st_unregister()
669 tty_ldisc_flush(st_gdata->tty); in st_unregister()
670 stop_tty(st_gdata->tty); in st_unregister()
692 || st_gdata->tty == NULL)) { in st_write()
716 static int st_tty_open(struct tty_struct *tty) in st_tty_open() argument
723 st_gdata->tty = tty; in st_tty_open()
724 tty->disc_data = st_gdata; in st_tty_open()
727 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in st_tty_open()
731 tty->receive_room = 65536; in st_tty_open()
733 tty_ldisc_flush(tty); in st_tty_open()
734 tty_driver_flush_buffer(tty); in st_tty_open()
744 static void st_tty_close(struct tty_struct *tty) in st_tty_close() argument
748 struct st_data_s *st_gdata = tty->disc_data; in st_tty_close()
770 st_gdata->tty = NULL; in st_tty_close()
772 tty_ldisc_flush(tty); in st_tty_close()
773 tty_driver_flush_buffer(tty); in st_tty_close()
789 static void st_tty_receive(struct tty_struct *tty, const unsigned char *data, in st_tty_receive() argument
801 st_recv(tty->disc_data, data, count); in st_tty_receive()
808 static void st_tty_wakeup(struct tty_struct *tty) in st_tty_wakeup() argument
810 struct st_data_s *st_gdata = tty->disc_data; in st_tty_wakeup()
813 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in st_tty_wakeup()
819 static void st_tty_flush_buffer(struct tty_struct *tty) in st_tty_flush_buffer() argument
821 struct st_data_s *st_gdata = tty->disc_data; in st_tty_flush_buffer()
827 tty_driver_flush_buffer(tty); in st_tty_flush_buffer()