Lines Matching refs:tty
51 struct tty_struct *tty; /* ptr to TTY structure */ member
517 set_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_encaps()
518 actual = ax->tty->ops->write(ax->tty, ax->xbuff, count); in ax_encaps()
551 (tty_chars_in_buffer(ax->tty) || ax->xleft) ? in ax_xmit()
555 clear_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_xmit()
571 if (ax->tty == NULL) in ax_open_dev()
583 if (ax->tty == NULL) in ax_open()
632 if (ax->tty) in ax_close()
633 clear_bit(TTY_DO_WRITE_WAKEUP, &ax->tty->flags); in ax_close()
675 static struct mkiss *mkiss_get(struct tty_struct *tty) in mkiss_get() argument
680 ax = tty->disc_data; in mkiss_get()
696 static int mkiss_open(struct tty_struct *tty) in mkiss_open() argument
704 if (tty->ops->write == NULL) in mkiss_open()
721 ax->tty = tty; in mkiss_open()
722 tty->disc_data = ax; in mkiss_open()
723 tty->receive_room = 65535; in mkiss_open()
725 tty_driver_flush_buffer(tty); in mkiss_open()
782 static void mkiss_close(struct tty_struct *tty) in mkiss_close() argument
787 ax = tty->disc_data; in mkiss_close()
788 tty->disc_data = NULL; in mkiss_close()
810 ax->tty = NULL; in mkiss_close()
816 static int mkiss_ioctl(struct tty_struct *tty, struct file *file, in mkiss_ioctl() argument
819 struct mkiss *ax = mkiss_get(tty); in mkiss_ioctl()
879 static long mkiss_compat_ioctl(struct tty_struct *tty, struct file *file, in mkiss_compat_ioctl() argument
887 return mkiss_ioctl(tty, file, cmd, in mkiss_compat_ioctl()
901 static void mkiss_receive_buf(struct tty_struct *tty, const unsigned char *cp, in mkiss_receive_buf() argument
904 struct mkiss *ax = mkiss_get(tty); in mkiss_receive_buf()
929 tty_unthrottle(tty); in mkiss_receive_buf()
936 static void mkiss_write_wakeup(struct tty_struct *tty) in mkiss_write_wakeup() argument
938 struct mkiss *ax = mkiss_get(tty); in mkiss_write_wakeup()
948 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in mkiss_write_wakeup()
954 actual = tty->ops->write(tty, ax->xhead, ax->xleft); in mkiss_write_wakeup()