• Home
  • Raw
  • Download

Lines Matching refs:tty

87 	struct tty_struct	*tty;		/* ptr to TTY structure	*/  member
149 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air()
151 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air()
155 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air()
195 set_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); in sp_encaps()
221 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps()
223 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps()
227 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps()
269 if (sp->tty == NULL) in sp_open_dev()
280 if (sp->tty) { in sp_close()
282 clear_bit(TTY_DO_WRITE_WAKEUP, &sp->tty->flags); in sp_close()
377 static struct sixpack *sp_get(struct tty_struct *tty) in sp_get() argument
382 sp = tty->disc_data; in sp_get()
400 static void sixpack_write_wakeup(struct tty_struct *tty) in sixpack_write_wakeup() argument
402 struct sixpack *sp = sp_get(tty); in sixpack_write_wakeup()
411 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in sixpack_write_wakeup()
418 actual = tty->ops->write(tty, sp->xhead, sp->xleft); in sixpack_write_wakeup()
435 static void sixpack_receive_buf(struct tty_struct *tty, in sixpack_receive_buf() argument
444 sp = sp_get(tty); in sixpack_receive_buf()
461 tty_unthrottle(tty); in sixpack_receive_buf()
522 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in resync_tnc()
523 sp->tty->ops->write(sp->tty, &resync_cmd, 1); in resync_tnc()
541 sp->tty->ops->write(sp->tty, &inbyte, 1); in tnc_init()
559 static int sixpack_open(struct tty_struct *tty) in sixpack_open() argument
569 if (tty->ops->write == NULL) in sixpack_open()
600 sp->tty = tty; in sixpack_open()
635 tty->disc_data = sp; in sixpack_open()
636 tty->receive_room = 65536; in sixpack_open()
664 static void sixpack_close(struct tty_struct *tty) in sixpack_close() argument
669 sp = tty->disc_data; in sixpack_close()
670 tty->disc_data = NULL; in sixpack_close()
699 static int sixpack_ioctl(struct tty_struct *tty, struct file *file, in sixpack_ioctl() argument
702 struct sixpack *sp = sp_get(tty); in sixpack_ioctl()
753 err = tty_mode_ioctl(tty, file, cmd, arg); in sixpack_ioctl()
762 static long sixpack_compat_ioctl(struct tty_struct * tty, struct file * file, in sixpack_compat_ioctl() argument
770 return sixpack_ioctl(tty, file, cmd, in sixpack_compat_ioctl()
912 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command()
914 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in decode_prio_command()
924 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_prio_command()
954 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_std_command()
959 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in decode_std_command()