Lines Matching refs:tty
49 int line_write_room(struct tty_struct *tty) in line_write_room() argument
51 struct line *line = tty->driver_data; in line_write_room()
62 int line_chars_in_buffer(struct tty_struct *tty) in line_chars_in_buffer() argument
64 struct line *line = tty->driver_data; in line_chars_in_buffer()
167 void line_flush_buffer(struct tty_struct *tty) in line_flush_buffer() argument
169 struct line *line = tty->driver_data; in line_flush_buffer()
181 void line_flush_chars(struct tty_struct *tty) in line_flush_chars() argument
183 line_flush_buffer(tty); in line_flush_chars()
186 int line_put_char(struct tty_struct *tty, unsigned char ch) in line_put_char() argument
188 return line_write(tty, &ch, sizeof(ch)); in line_put_char()
191 int line_write(struct tty_struct *tty, const unsigned char *buf, int len) in line_write() argument
193 struct line *line = tty->driver_data; in line_write()
218 void line_set_termios(struct tty_struct *tty, struct ktermios * old) in line_set_termios() argument
223 void line_throttle(struct tty_struct *tty) in line_throttle() argument
225 struct line *line = tty->driver_data; in line_throttle()
231 void line_unthrottle(struct tty_struct *tty) in line_unthrottle() argument
233 struct line *line = tty->driver_data; in line_unthrottle()
292 static int line_activate(struct tty_port *port, struct tty_struct *tty) in line_activate() argument
295 struct line *line = tty->driver_data; in line_activate()
306 chan_window_size(line, &tty->winsize.ws_row, in line_activate()
307 &tty->winsize.ws_col); in line_activate()
312 static void unregister_winch(struct tty_struct *tty);
316 struct tty_struct *tty = tty_port_tty_get(port); in line_destruct() local
317 struct line *line = tty->driver_data; in line_destruct()
320 unregister_winch(tty); in line_destruct()
330 int line_open(struct tty_struct *tty, struct file *filp) in line_open() argument
332 struct line *line = tty->driver_data; in line_open()
334 return tty_port_open(&line->port, tty, filp); in line_open()
337 int line_install(struct tty_driver *driver, struct tty_struct *tty, in line_install() argument
342 ret = tty_standard_install(driver, tty); in line_install()
346 tty->driver_data = line; in line_install()
351 void line_close(struct tty_struct *tty, struct file * filp) in line_close() argument
353 struct line *line = tty->driver_data; in line_close()
355 tty_port_close(&line->port, tty, filp); in line_close()
358 void line_hangup(struct tty_struct *tty) in line_hangup() argument
360 struct line *line = tty->driver_data; in line_hangup()
512 struct tty_struct *tty = tty_port_tty_get(&line->port); in line_get_config() local
513 if (tty == NULL) { in line_get_config()
517 tty_kref_put(tty); in line_get_config()
630 struct tty_struct *tty; in winch_interrupt() local
654 tty = tty_port_tty_get(winch->port); in winch_interrupt()
655 if (tty != NULL) { in winch_interrupt()
656 line = tty->driver_data; in winch_interrupt()
658 chan_window_size(line, &tty->winsize.ws_row, in winch_interrupt()
659 &tty->winsize.ws_col); in winch_interrupt()
660 kill_pgrp(tty->pgrp, SIGWINCH, 1); in winch_interrupt()
662 tty_kref_put(tty); in winch_interrupt()
710 static void unregister_winch(struct tty_struct *tty) in unregister_winch() argument
721 if (wtty == tty) { in unregister_winch()