Lines Matching refs:tty

56 	struct tty_struct *tty;  member
137 static struct syncppp *sp_get(struct tty_struct *tty) in sp_get() argument
142 ap = tty->disc_data; in sp_get()
159 ppp_sync_open(struct tty_struct *tty) in ppp_sync_open() argument
165 if (tty->ops->write == NULL) in ppp_sync_open()
174 ap->tty = tty; in ppp_sync_open()
192 speed = tty_get_baud_rate(tty); in ppp_sync_open()
198 tty->disc_data = ap; in ppp_sync_open()
199 tty->receive_room = 65536; in ppp_sync_open()
217 ppp_sync_close(struct tty_struct *tty) in ppp_sync_close() argument
222 ap = tty->disc_data; in ppp_sync_close()
223 tty->disc_data = NULL; in ppp_sync_close()
251 static int ppp_sync_hangup(struct tty_struct *tty) in ppp_sync_hangup() argument
253 ppp_sync_close(tty); in ppp_sync_hangup()
262 ppp_sync_read(struct tty_struct *tty, struct file *file, in ppp_sync_read() argument
273 ppp_sync_write(struct tty_struct *tty, struct file *file, in ppp_sync_write() argument
280 ppp_synctty_ioctl(struct tty_struct *tty, struct file *file, in ppp_synctty_ioctl() argument
283 struct syncppp *ap = sp_get(tty); in ppp_synctty_ioctl()
309 err = n_tty_ioctl_helper(tty, file, cmd, arg); in ppp_synctty_ioctl()
320 err = tty_mode_ioctl(tty, file, cmd, arg); in ppp_synctty_ioctl()
330 ppp_sync_poll(struct tty_struct *tty, struct file *file, poll_table *wait) in ppp_sync_poll() argument
337 ppp_sync_receive(struct tty_struct *tty, const unsigned char *buf, in ppp_sync_receive() argument
340 struct syncppp *ap = sp_get(tty); in ppp_sync_receive()
351 tty_unthrottle(tty); in ppp_sync_receive()
355 ppp_sync_wakeup(struct tty_struct *tty) in ppp_sync_wakeup() argument
357 struct syncppp *ap = sp_get(tty); in ppp_sync_wakeup()
359 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ppp_sync_wakeup()
594 struct tty_struct *tty = ap->tty; in ppp_sync_push() local
603 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ppp_sync_push()
604 sent = tty->ops->write(tty, ap->tpkt->data, ap->tpkt->len); in ppp_sync_push()