Lines Matching defs:to
8 * Added TTY_DO_WRITE_WAKEUP to enable n_tty to send POLL_OUT to
69 * The unthrottle routine is called by the line discipline to signal
71 * flag is always set, to force the line discipline to always call the
74 * happens, we need to wake up any sleeping processes that could be
75 * (1) trying to send data to the pty, or (2) waiting in wait_until_sent()
76 * for the pty buffer to be drained.
91 struct tty_struct *to = tty->link;
94 if (!to || tty->stopped)
97 c = to->receive_room;
100 to->ldisc.receive_buf(to, buf, NULL, c);
107 struct tty_struct *to = tty->link;
109 if (!to || tty->stopped)
112 return to->receive_room;
118 * to hold off writing when chars_in_buffer > WAKEUP_CHARS (== 256).
121 * The Master side needs to allow typed-ahead commands to accumulate
125 * the count returned must be 0 if no canonical data is available to be
128 * The Slave side passes all characters in raw mode to the Master side's
134 struct tty_struct *to = tty->link;
138 if (!to || !to->ldisc.chars_in_buffer)
141 /* The ldisc must report 0 if no characters available to be read */
142 count = to->ldisc.chars_in_buffer(to);
147 * half full, return 0 to allow writers to proceed; otherwise return
148 * the count. This leaves a comfortable margin to avoid overflow,
169 struct tty_struct *to = tty->link;
171 if (!to)
174 if (to->ldisc.flush_buffer)
175 to->ldisc.flush_buffer(to);
177 if (to->packet) {
179 wake_up_interruptible(&to->read_wait);