Lines Matching refs:tty

153 static void con_flush_chars(struct tty_struct *tty);
845 static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc, in vc_do_resize() argument
941 if (tty) { in vc_do_resize()
949 tty_do_resize(tty, &ws); in vc_do_resize()
972 return vc_do_resize(vc->port.tty, vc, cols, rows); in vc_resize()
987 static int vt_resize(struct tty_struct *tty, struct winsize *ws) in vt_resize() argument
989 struct vc_data *vc = tty->driver_data; in vt_resize()
993 ret = vc_do_resize(tty, vc, ws->ws_col, ws->ws_row); in vt_resize()
1439 static void cursor_report(struct vc_data *vc, struct tty_struct *tty) in cursor_report() argument
1444 respond_string(buf, tty->port); in cursor_report()
1447 static inline void status_report(struct tty_struct *tty) in status_report() argument
1449 respond_string("\033[0n", tty->port); /* Terminal ok */ in status_report()
1452 static inline void respond_ID(struct tty_struct *tty) in respond_ID() argument
1454 respond_string(VT102ID, tty->port); in respond_ID()
1457 void mouse_report(struct tty_struct *tty, int butt, int mrx, int mry) in mouse_report() argument
1463 respond_string(buf, tty->port); in mouse_report()
1742 static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) in do_con_trol() argument
1829 respond_ID(tty); in do_con_trol()
1940 status_report(tty); in do_con_trol()
1942 cursor_report(vc, tty); in do_con_trol()
2015 respond_ID(tty); in do_con_trol()
2170 static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int count) in do_con_write() argument
2198 vc = tty->driver_data; in do_con_write()
2222 while (!tty->stopped && count) { in do_con_write()
2421 do_con_trol(tty, vc, orig); in do_con_write()
2663 int tioclinux(struct tty_struct *tty, unsigned long arg) in tioclinux() argument
2670 if (current->signal->tty != tty && !capable(CAP_SYS_ADMIN)) in tioclinux()
2680 ret = set_selection((struct tiocl_selection __user *)(p+1), tty); in tioclinux()
2684 ret = paste_selection(tty); in tioclinux()
2771 static int con_write(struct tty_struct *tty, const unsigned char *buf, int count) in con_write() argument
2775 retval = do_con_write(tty, buf, count); in con_write()
2776 con_flush_chars(tty); in con_write()
2781 static int con_put_char(struct tty_struct *tty, unsigned char ch) in con_put_char() argument
2785 return do_con_write(tty, &ch, 1); in con_put_char()
2788 static int con_write_room(struct tty_struct *tty) in con_write_room() argument
2790 if (tty->stopped) in con_write_room()
2795 static int con_chars_in_buffer(struct tty_struct *tty) in con_chars_in_buffer() argument
2805 static void con_throttle(struct tty_struct *tty) in con_throttle() argument
2809 static void con_unthrottle(struct tty_struct *tty) in con_unthrottle() argument
2811 struct vc_data *vc = tty->driver_data; in con_unthrottle()
2819 static void con_stop(struct tty_struct *tty) in con_stop() argument
2822 if (!tty) in con_stop()
2824 console_num = tty->index; in con_stop()
2833 static void con_start(struct tty_struct *tty) in con_start() argument
2836 if (!tty) in con_start()
2838 console_num = tty->index; in con_start()
2844 static void con_flush_chars(struct tty_struct *tty) in con_flush_chars() argument
2853 vc = tty->driver_data; in con_flush_chars()
2862 static int con_install(struct tty_driver *driver, struct tty_struct *tty) in con_install() argument
2864 unsigned int currcons = tty->index; in con_install()
2876 if (vc->port.tty) { in con_install()
2881 ret = tty_port_install(&vc->port, driver, tty); in con_install()
2885 tty->driver_data = vc; in con_install()
2886 vc->port.tty = tty; in con_install()
2888 if (!tty->winsize.ws_row && !tty->winsize.ws_col) { in con_install()
2889 tty->winsize.ws_row = vc_cons[currcons].d->vc_rows; in con_install()
2890 tty->winsize.ws_col = vc_cons[currcons].d->vc_cols; in con_install()
2893 tty->termios.c_iflag |= IUTF8; in con_install()
2895 tty->termios.c_iflag &= ~IUTF8; in con_install()
2901 static int con_open(struct tty_struct *tty, struct file *filp) in con_open() argument
2908 static void con_close(struct tty_struct *tty, struct file *filp) in con_close() argument
2913 static void con_shutdown(struct tty_struct *tty) in con_shutdown() argument
2915 struct vc_data *vc = tty->driver_data; in con_shutdown()
2918 vc->port.tty = NULL; in con_shutdown()