Lines Matching refs:tty

70 	struct tty_struct *tty;  member
85 static void ldisc_tx_wakeup(struct tty_struct *tty);
90 ser->tty->flow.stopped << 5 | in update_tty_status()
91 ser->tty->flow.tco_stopped << 3 | in update_tty_status()
92 ser->tty->ctrl.packet << 2; in update_tty_status()
94 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument
96 ser->debugfs_tty_dir = debugfs_create_dir(tty->name, debugfsdir); in debugfs_init()
130 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument
147 static void ldisc_receive(struct tty_struct *tty, const u8 *data, in ldisc_receive() argument
154 ser = tty->disc_data; in ldisc_receive()
196 struct tty_struct *tty; in handle_tx() local
200 tty = ser->tty; in handle_tx()
212 room = tty_write_room(tty); in handle_tx()
222 tty_wr = tty->ops->write(tty, skb->data, len); in handle_tx()
226 ldisc_receive(tty, skb->data, NULL, len); in handle_tx()
272 static void ldisc_tx_wakeup(struct tty_struct *tty) in ldisc_tx_wakeup() argument
276 ser = tty->disc_data; in ldisc_tx_wakeup()
278 WARN_ON(ser->tty != tty); in ldisc_tx_wakeup()
287 struct tty_struct *tty; in ser_release() local
296 tty = ser->tty; in ser_release()
300 tty_kref_put(tty->link); in ser_release()
301 tty_kref_put(tty); in ser_release()
309 static int ldisc_open(struct tty_struct *tty) in ldisc_open() argument
317 if (tty->ops->write == NULL) in ldisc_open()
325 result = snprintf(name, sizeof(name), "cf%s", tty->name); in ldisc_open()
334 ser->tty = tty_kref_get(tty); in ldisc_open()
335 tty_kref_get(tty->link); in ldisc_open()
337 debugfs_init(ser, tty); in ldisc_open()
338 tty->receive_room = 4096; in ldisc_open()
339 tty->disc_data = ser; in ldisc_open()
340 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ldisc_open()
344 tty_kref_put(tty->link); in ldisc_open()
345 tty_kref_put(tty); in ldisc_open()
360 static void ldisc_close(struct tty_struct *tty) in ldisc_close() argument
362 struct ser_device *ser = tty->disc_data; in ldisc_close()