Lines Matching refs:tty
69 static int rs_open(struct tty_struct *tty, struct file * filp) in rs_open() argument
71 tty->port = &serial_port; in rs_open()
73 if (tty->count == 1) { in rs_open()
74 setup_timer(&serial_timer, rs_poll, (unsigned long)tty); in rs_open()
93 static void rs_close(struct tty_struct *tty, struct file * filp) in rs_close() argument
96 if (tty->count == 1) in rs_close()
102 static int rs_write(struct tty_struct * tty, in rs_write() argument
113 struct tty_struct* tty = (struct tty_struct*) priv; in rs_poll() local
123 tty_insert_flip_char(tty, c, TTY_NORMAL); in rs_poll()
128 tty_flip_buffer_push(tty); in rs_poll()
136 static int rs_put_char(struct tty_struct *tty, unsigned char ch) in rs_put_char() argument
146 static void rs_flush_chars(struct tty_struct *tty) in rs_flush_chars() argument
150 static int rs_write_room(struct tty_struct *tty) in rs_write_room() argument
156 static int rs_chars_in_buffer(struct tty_struct *tty) in rs_chars_in_buffer() argument
162 static void rs_hangup(struct tty_struct *tty) in rs_hangup() argument
167 static void rs_wait_until_sent(struct tty_struct *tty, int timeout) in rs_wait_until_sent() argument