Lines Matching refs:tty
151 static void con_flush_chars(struct tty_struct *tty);
839 static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc, in vc_do_resize() argument
935 if (tty) { in vc_do_resize()
943 tty_do_resize(tty, &ws); in vc_do_resize()
966 return vc_do_resize(vc->port.tty, vc, cols, rows); in vc_resize()
981 static int vt_resize(struct tty_struct *tty, struct winsize *ws) in vt_resize() argument
983 struct vc_data *vc = tty->driver_data; in vt_resize()
987 ret = vc_do_resize(tty, vc, ws->ws_col, ws->ws_row); in vt_resize()
1433 static void cursor_report(struct vc_data *vc, struct tty_struct *tty) in cursor_report() argument
1438 respond_string(buf, tty->port); in cursor_report()
1441 static inline void status_report(struct tty_struct *tty) in status_report() argument
1443 respond_string("\033[0n", tty->port); /* Terminal ok */ in status_report()
1446 static inline void respond_ID(struct tty_struct *tty) in respond_ID() argument
1448 respond_string(VT102ID, tty->port); in respond_ID()
1451 void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry) in mouse_report() argument
1457 respond_string(buf, tty->port); in mouse_report()
1728 static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) in do_con_trol() argument
1815 respond_ID(tty); in do_con_trol()
1926 status_report(tty); in do_con_trol()
1928 cursor_report(vc, tty); in do_con_trol()
2001 respond_ID(tty); in do_con_trol()
2156 static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int count) in do_con_write() argument
2184 vc = tty->driver_data; in do_con_write()
2208 while (!tty->stopped && count) { in do_con_write()
2407 do_con_trol(tty, vc, orig); in do_con_write()
2649 int tioclinux(struct tty_struct *tty, unsigned long arg) in tioclinux() argument
2656 if (current->signal->tty != tty && !capable(CAP_SYS_ADMIN)) in tioclinux()
2666 ret = set_selection((struct tiocl_selection __user *)(p+1), tty); in tioclinux()
2670 ret = paste_selection(tty); in tioclinux()
2757 static int con_write(struct tty_struct *tty, const unsigned char *buf, int count) in con_write() argument
2761 retval = do_con_write(tty, buf, count); in con_write()
2762 con_flush_chars(tty); in con_write()
2767 static int con_put_char(struct tty_struct *tty, unsigned char ch) in con_put_char() argument
2771 return do_con_write(tty, &ch, 1); in con_put_char()
2774 static int con_write_room(struct tty_struct *tty) in con_write_room() argument
2776 if (tty->stopped) in con_write_room()
2781 static int con_chars_in_buffer(struct tty_struct *tty) in con_chars_in_buffer() argument
2791 static void con_throttle(struct tty_struct *tty) in con_throttle() argument
2795 static void con_unthrottle(struct tty_struct *tty) in con_unthrottle() argument
2797 struct vc_data *vc = tty->driver_data; in con_unthrottle()
2805 static void con_stop(struct tty_struct *tty) in con_stop() argument
2808 if (!tty) in con_stop()
2810 console_num = tty->index; in con_stop()
2819 static void con_start(struct tty_struct *tty) in con_start() argument
2822 if (!tty) in con_start()
2824 console_num = tty->index; in con_start()
2830 static void con_flush_chars(struct tty_struct *tty) in con_flush_chars() argument
2839 vc = tty->driver_data; in con_flush_chars()
2848 static int con_install(struct tty_driver *driver, struct tty_struct *tty) in con_install() argument
2850 unsigned int currcons = tty->index; in con_install()
2862 if (vc->port.tty) { in con_install()
2867 ret = tty_port_install(&vc->port, driver, tty); in con_install()
2871 tty->driver_data = vc; in con_install()
2872 vc->port.tty = tty; in con_install()
2874 if (!tty->winsize.ws_row && !tty->winsize.ws_col) { in con_install()
2875 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows; in con_install()
2876 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols; in con_install()
2879 tty->termios.c_iflag |= IUTF8; in con_install()
2881 tty->termios.c_iflag &= ~IUTF8; in con_install()
2887 static int con_open(struct tty_struct *tty, struct file *filp) in con_open() argument
2894 static void con_close(struct tty_struct *tty, struct file *filp) in con_close() argument
2899 static void con_shutdown(struct tty_struct *tty) in con_shutdown() argument
2901 struct vc_data *vc = tty->driver_data; in con_shutdown()
2904 vc->port.tty = NULL; in con_shutdown()