Lines Matching refs:tty

47 	struct tty_struct	*tty;  member
65 struct tty_struct *tty = cs->hw.ser->tty; in write_modem() local
70 WARN_ON(!tty || !tty->ops || !skb); in write_modem()
78 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in write_modem()
79 if (tty->ops->write) in write_modem()
80 sent = tty->ops->write(tty, skb->data, skb->len); in write_modem()
106 struct tty_struct *tty = cs->hw.ser->tty; in send_cb() local
111 WARN_ON(!tty || !tty->ops); in send_cb()
118 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in send_cb()
119 sent = tty->ops->write(tty, cb->buf + cb->offset, cb->len); in send_cb()
429 struct tty_struct *tty = cs->hw.ser->tty; in gigaset_set_modem_ctrl() local
432 WARN_ON(!tty || !tty->ops); in gigaset_set_modem_ctrl()
434 if (!tty->ops->tiocmset) in gigaset_set_modem_ctrl()
441 return tty->ops->tiocmset(tty, set, clear); in gigaset_set_modem_ctrl()
478 static struct cardstate *cs_get(struct tty_struct *tty) in cs_get() argument
480 struct cardstate *cs = tty->disc_data; in cs_get()
501 gigaset_tty_open(struct tty_struct *tty) in gigaset_tty_open() argument
523 cs->hw.ser->tty = tty; in gigaset_tty_open()
526 tty->disc_data = cs; in gigaset_tty_open()
536 tty->receive_room = RBUFSIZE/2; in gigaset_tty_open()
554 tty->disc_data = NULL; in gigaset_tty_open()
564 gigaset_tty_close(struct tty_struct *tty) in gigaset_tty_close() argument
566 struct cardstate *cs = tty->disc_data; in gigaset_tty_close()
576 tty->disc_data = NULL; in gigaset_tty_close()
602 static int gigaset_tty_hangup(struct tty_struct *tty) in gigaset_tty_hangup() argument
604 gigaset_tty_close(tty); in gigaset_tty_hangup()
614 gigaset_tty_ioctl(struct tty_struct *tty, struct file *file, in gigaset_tty_ioctl() argument
617 struct cardstate *cs = cs_get(tty); in gigaset_tty_ioctl()
647 rc = n_tty_ioctl_helper(tty, file, cmd, arg); in gigaset_tty_ioctl()
667 gigaset_tty_receive(struct tty_struct *tty, const unsigned char *buf, in gigaset_tty_receive() argument
670 struct cardstate *cs = cs_get(tty); in gigaset_tty_receive()
723 gigaset_tty_wakeup(struct tty_struct *tty) in gigaset_tty_wakeup() argument
725 struct cardstate *cs = cs_get(tty); in gigaset_tty_wakeup()
727 clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in gigaset_tty_wakeup()