Lines Matching defs:tty
3 * IBM/3270 Driver - tty functions.
14 #include <linux/tty.h>
57 * The main tty view data structure.
80 /* Current tty screen. */
94 int throttle, attn; /* tty throttle/unthrottle. */
96 struct tasklet_struct hanglet; /* Tasklet to hang up the tty. */
225 * Set output offsets to 3270 datastream fragment of a tty string.
501 * Deactivate tty view.
556 * Pass input line to tty.
570 * has to be emitted to the tty and for 0x6d the screen
576 /* Enter: write input to tty. */
620 /* Schedule tasklet to pass input to tty. */
653 * Hang up the tty
664 * Switch to the tty view.
850 struct tty_struct *tty;
876 /* Informat tty layer about new size */
877 tty = tty_port_tty_get(&tp->port);
878 if (!tty)
882 tty_do_resize(tty, &ws);
883 tty_kref_put(tty);
900 * Unlink tty3270 data structure from tty.
906 struct tty_struct *tty = tty_port_tty_get(&tp->port);
908 if (tty) {
909 tty->driver_data = NULL;
911 tty_hangup(tty);
913 tty_kref_put(tty);
955 * This routine is called whenever a 3270 tty is opened first time.
957 static int tty3270_install(struct tty_driver *driver, struct tty_struct *tty)
964 view = raw3270_find_view(&tty3270_fn, tty->index + RAW3270_FIRSTMINOR);
967 tty->driver_data = tp;
968 tty->winsize.ws_row = tp->view.rows - 2;
969 tty->winsize.ws_col = tp->view.cols;
974 if (tty3270_max_index < tty->index + 1)
975 tty3270_max_index = tty->index + 1;
983 tty->index + RAW3270_FIRSTMINOR,
1000 tty->winsize.ws_row = tp->view.rows - 2;
1001 tty->winsize.ws_col = tp->view.cols;
1007 /* Create blank line for every line in the tty output area. */
1021 rc = tty_port_install(&tp->port, driver, tty);
1027 tty->driver_data = tp;
1033 * This routine is called whenever a 3270 tty is opened.
1036 tty3270_open(struct tty_struct *tty, struct file *filp)
1038 struct tty3270 *tp = tty->driver_data;
1042 tty_port_tty_set(port, tty);
1047 * This routine is called when the 3270 tty is closed. We wait
1051 tty3270_close(struct tty_struct *tty, struct file * filp)
1053 struct tty3270 *tp = tty->driver_data;
1055 if (tty->count > 1)
1061 static void tty3270_cleanup(struct tty_struct *tty)
1063 struct tty3270 *tp = tty->driver_data;
1066 tty->driver_data = NULL;
1075 tty3270_write_room(struct tty_struct *tty)
1637 tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty,
1643 for (i_msg = 0; !tty->stopped && i_msg < count; i_msg++) {
1711 tty3270_write(struct tty_struct * tty,
1716 tp = tty->driver_data;
1720 tty3270_do_write(tp, tty, tp->char_buf, tp->char_count);
1723 tty3270_do_write(tp, tty, buf, count);
1730 static int tty3270_put_char(struct tty_struct *tty, unsigned char ch)
1734 tp = tty->driver_data;
1746 tty3270_flush_chars(struct tty_struct *tty)
1750 tp = tty->driver_data;
1754 tty3270_do_write(tp, tty, tp->char_buf, tp->char_count);
1765 tty3270_chars_in_buffer(struct tty_struct *tty)
1771 tty3270_flush_buffer(struct tty_struct *tty)
1779 tty3270_set_termios(struct tty_struct *tty, struct ktermios *old)
1784 tp = tty->driver_data;
1788 if (L_ICANON(tty)) {
1789 new = L_ECHO(tty) ? TF_INPUT: TF_INPUTN;
1800 * Disable reading from a 3270 tty
1803 tty3270_throttle(struct tty_struct * tty)
1807 tp = tty->driver_data;
1814 * Enable reading from a 3270 tty
1817 tty3270_unthrottle(struct tty_struct * tty)
1821 tp = tty->driver_data;
1830 * Hang up the tty device.
1833 tty3270_hangup(struct tty_struct *tty)
1837 tp = tty->driver_data;
1854 tty3270_wait_until_sent(struct tty_struct *tty, int timeout)
1858 static int tty3270_ioctl(struct tty_struct *tty, unsigned int cmd,
1863 tp = tty->driver_data;
1866 if (tty_io_error(tty))
1872 static long tty3270_compat_ioctl(struct tty_struct *tty,
1877 tp = tty->driver_data;
1880 if (tty_io_error(tty))
1925 * 3270 tty registration code called from tty_init().
1946 driver->name = "3270/tty";