Lines Matching refs:tty

46 	struct tty_struct *tty;  member
136 static struct asyncppp *ap_get(struct tty_struct *tty) in ap_get() argument
141 ap = tty->disc_data; in ap_get()
159 ppp_asynctty_open(struct tty_struct *tty) in ppp_asynctty_open() argument
165 if (tty->ops->write == NULL) in ppp_asynctty_open()
174 ap->tty = tty; in ppp_asynctty_open()
194 speed = tty_get_baud_rate(tty); in ppp_asynctty_open()
200 tty->disc_data = ap; in ppp_asynctty_open()
201 tty->receive_room = 65536; in ppp_asynctty_open()
219 ppp_asynctty_close(struct tty_struct *tty) in ppp_asynctty_close() argument
224 ap = tty->disc_data; in ppp_asynctty_close()
225 tty->disc_data = NULL; in ppp_asynctty_close()
254 static int ppp_asynctty_hangup(struct tty_struct *tty) in ppp_asynctty_hangup() argument
256 ppp_asynctty_close(tty); in ppp_asynctty_hangup()
265 ppp_asynctty_read(struct tty_struct *tty, struct file *file, in ppp_asynctty_read() argument
276 ppp_asynctty_write(struct tty_struct *tty, struct file *file, in ppp_asynctty_write() argument
288 ppp_asynctty_ioctl(struct tty_struct *tty, struct file *file, in ppp_asynctty_ioctl() argument
291 struct asyncppp *ap = ap_get(tty); in ppp_asynctty_ioctl()
317 err = n_tty_ioctl_helper(tty, file, cmd, arg); in ppp_asynctty_ioctl()
329 err = tty_mode_ioctl(tty, file, cmd, arg); in ppp_asynctty_ioctl()
338 ppp_asynctty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) in ppp_asynctty_poll() argument
345 ppp_asynctty_receive(struct tty_struct *tty, const unsigned char *buf, in ppp_asynctty_receive() argument
348 struct asyncppp *ap = ap_get(tty); in ppp_asynctty_receive()
359 tty_unthrottle(tty); in ppp_asynctty_receive()
363 ppp_asynctty_wakeup(struct tty_struct *tty) in ppp_asynctty_wakeup() argument
365 struct asyncppp *ap = ap_get(tty); in ppp_asynctty_wakeup()
367 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ppp_asynctty_wakeup()
654 struct tty_struct *tty = ap->tty; in ppp_async_push() local
674 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ppp_async_push()
675 sent = tty->ops->write(tty, ap->optr, avail); in ppp_async_push()
916 } else if (I_IXON(ap->tty)) { in ppp_async_input()
917 if (c == START_CHAR(ap->tty)) in ppp_async_input()
918 start_tty(ap->tty); in ppp_async_input()
919 else if (c == STOP_CHAR(ap->tty)) in ppp_async_input()
920 stop_tty(ap->tty); in ppp_async_input()