Lines Matching refs:tty

247 	set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags);  in x25_asy_encaps()
248 actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); in x25_asy_encaps()
259 static void x25_asy_write_wakeup(struct tty_struct *tty) in x25_asy_write_wakeup() argument
262 struct x25_asy *sl = tty->disc_data; in x25_asy_write_wakeup()
272 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in x25_asy_write_wakeup()
277 actual = tty->ops->write(tty, sl->xhead, sl->xleft); in x25_asy_write_wakeup()
292 (tty_chars_in_buffer(sl->tty) || sl->xleft) ? in x25_asy_timeout()
295 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in x25_asy_timeout()
381 if (netif_queue_stopped(sl->dev) || sl->tty == NULL) { in x25_asy_data_transmit()
456 if (sl->tty == NULL) in x25_asy_open()
504 if (sl->tty) in x25_asy_close()
505 clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); in x25_asy_close()
521 static void x25_asy_receive_buf(struct tty_struct *tty, in x25_asy_receive_buf() argument
524 struct x25_asy *sl = tty->disc_data; in x25_asy_receive_buf()
550 static int x25_asy_open_tty(struct tty_struct *tty) in x25_asy_open_tty() argument
552 struct x25_asy *sl = tty->disc_data; in x25_asy_open_tty()
555 if (tty->ops->write == NULL) in x25_asy_open_tty()
567 sl->tty = tty; in x25_asy_open_tty()
568 tty->disc_data = sl; in x25_asy_open_tty()
569 tty->receive_room = 65536; in x25_asy_open_tty()
570 tty_driver_flush_buffer(tty); in x25_asy_open_tty()
571 tty_ldisc_flush(tty); in x25_asy_open_tty()
591 static void x25_asy_close_tty(struct tty_struct *tty) in x25_asy_close_tty() argument
593 struct x25_asy *sl = tty->disc_data; in x25_asy_close_tty()
610 tty->disc_data = NULL; in x25_asy_close_tty()
611 sl->tty = NULL; in x25_asy_close_tty()
688 static int x25_asy_ioctl(struct tty_struct *tty, struct file *file, in x25_asy_ioctl() argument
691 struct x25_asy *sl = tty->disc_data; in x25_asy_ioctl()
706 return tty_mode_ioctl(tty, file, cmd, arg); in x25_asy_ioctl()
711 static long x25_asy_compat_ioctl(struct tty_struct *tty, struct file *file, in x25_asy_compat_ioctl() argument
717 return x25_asy_ioctl(tty, file, cmd, in x25_asy_compat_ioctl()
728 if (sl->tty == NULL) in x25_asy_open_dev()
809 if (sl->tty) in exit_x25_asy()
810 tty_hangup(sl->tty); in exit_x25_asy()