Lines Matching refs:tty
85 struct tty_struct *tty; /* ptr to TTY structure */ member
144 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air()
146 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air()
150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air()
185 set_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); in sp_encaps()
211 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps()
213 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps()
217 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps()
259 if (sp->tty == NULL) in sp_open_dev()
270 if (sp->tty) { in sp_close()
272 clear_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); in sp_close()
366 static struct sixpack *sp_get(struct tty_struct *tty) in sp_get() argument
371 sp = tty->disc_data; in sp_get()
389 static void sixpack_write_wakeup(struct tty_struct *tty) in sixpack_write_wakeup() argument
391 struct sixpack *sp = sp_get(tty); in sixpack_write_wakeup()
400 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in sixpack_write_wakeup()
407 actual = tty->ops->write(tty, sp->xhead, sp->xleft); in sixpack_write_wakeup()
424 static void sixpack_receive_buf(struct tty_struct *tty, const u8 *cp, in sixpack_receive_buf() argument
433 sp = sp_get(tty); in sixpack_receive_buf()
450 tty_unthrottle(tty); in sixpack_receive_buf()
511 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in resync_tnc()
512 sp->tty->ops->write(sp->tty, &resync_cmd, 1); in resync_tnc()
525 sp->tty->ops->write(sp->tty, &inbyte, 1); in tnc_init()
539 static int sixpack_open(struct tty_struct *tty) in sixpack_open() argument
549 if (tty->ops->write == NULL) in sixpack_open()
579 sp->tty = tty; in sixpack_open()
609 tty->disc_data = sp; in sixpack_open()
610 tty->receive_room = 65536; in sixpack_open()
637 static void sixpack_close(struct tty_struct *tty) in sixpack_close() argument
642 sp = tty->disc_data; in sixpack_close()
643 tty->disc_data = NULL; in sixpack_close()
673 static int sixpack_ioctl(struct tty_struct *tty, unsigned int cmd, in sixpack_ioctl() argument
676 struct sixpack *sp = sp_get(tty); in sixpack_ioctl()
725 err = tty_mode_ioctl(tty, cmd, arg); in sixpack_ioctl()
856 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command()
858 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in decode_prio_command()
868 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command()
892 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_std_command()
897 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_std_command()