Lines Matching refs:tty

311 static void hvc_unthrottle(struct tty_struct *tty)  in hvc_unthrottle()  argument
316 static int hvc_install(struct tty_driver *driver, struct tty_struct *tty) in hvc_install() argument
322 hp = hvc_get_by_index(tty->index); in hvc_install()
326 tty->driver_data = hp; in hvc_install()
328 rc = tty_port_install(&hp->port, driver, tty); in hvc_install()
338 static int hvc_open(struct tty_struct *tty, struct file * filp) in hvc_open() argument
340 struct hvc_struct *hp = tty->driver_data; in hvc_open()
353 tty_port_tty_set(&hp->port, tty); in hvc_open()
366 tty->driver_data = NULL; in hvc_open()
371 if (C_BAUD(tty)) in hvc_open()
381 static void hvc_close(struct tty_struct *tty, struct file * filp) in hvc_close() argument
394 if (!tty->driver_data) in hvc_close()
397 hp = tty->driver_data; in hvc_close()
406 if (C_HUPCL(tty)) in hvc_close()
421 tty_wait_until_sent(tty, HVC_CLOSE_WAIT); in hvc_close()
430 static void hvc_cleanup(struct tty_struct *tty) in hvc_cleanup() argument
432 struct hvc_struct *hp = tty->driver_data; in hvc_cleanup()
437 static void hvc_hangup(struct tty_struct *tty) in hvc_hangup() argument
439 struct hvc_struct *hp = tty->driver_data; in hvc_hangup()
497 static int hvc_write(struct tty_struct *tty, const unsigned char *buf, int count) in hvc_write() argument
499 struct hvc_struct *hp = tty->driver_data; in hvc_write()
551 struct tty_struct *tty; in hvc_set_winsz() local
556 tty = tty_port_tty_get(&hp->port); in hvc_set_winsz()
557 if (!tty) in hvc_set_winsz()
564 tty_do_resize(tty, &ws); in hvc_set_winsz()
565 tty_kref_put(tty); in hvc_set_winsz()
573 static int hvc_write_room(struct tty_struct *tty) in hvc_write_room() argument
575 struct hvc_struct *hp = tty->driver_data; in hvc_write_room()
583 static int hvc_chars_in_buffer(struct tty_struct *tty) in hvc_chars_in_buffer() argument
585 struct hvc_struct *hp = tty->driver_data; in hvc_chars_in_buffer()
609 struct tty_struct *tty; in hvc_poll() local
630 tty = tty_port_tty_get(&hp->port); in hvc_poll()
631 if (tty == NULL) in hvc_poll()
635 if (test_bit(TTY_THROTTLED, &tty->flags)) in hvc_poll()
659 tty_hangup(tty); in hvc_poll()
698 tty_wakeup(tty); in hvc_poll()
710 tty_kref_put(tty); in hvc_poll()
783 static int hvc_tiocmget(struct tty_struct *tty) in hvc_tiocmget() argument
785 struct hvc_struct *hp = tty->driver_data; in hvc_tiocmget()
792 static int hvc_tiocmset(struct tty_struct *tty, in hvc_tiocmset() argument
795 struct hvc_struct *hp = tty->driver_data; in hvc_tiocmset()
810 struct tty_struct *tty = driver->ttys[0]; in hvc_poll_get_char() local
811 struct hvc_struct *hp = tty->driver_data; in hvc_poll_get_char()
825 struct tty_struct *tty = driver->ttys[0]; in hvc_poll_put_char() local
826 struct hvc_struct *hp = tty->driver_data; in hvc_poll_put_char()
920 struct tty_struct *tty; in hvc_remove() local
922 tty = tty_port_tty_get(&hp->port); in hvc_remove()
947 if (tty) { in hvc_remove()
948 tty_vhangup(tty); in hvc_remove()
949 tty_kref_put(tty); in hvc_remove()