• Home
  • Raw
  • Download

Lines Matching refs:tty

70 	struct tty_struct *tty;  member
85 static void ldisc_tx_wakeup(struct tty_struct *tty);
90 ser->tty->stopped << 5 | in update_tty_status()
91 ser->tty->flow_stopped << 3 | in update_tty_status()
92 ser->tty->packet << 2 | in update_tty_status()
93 ser->tty->port->low_latency << 1; in update_tty_status()
95 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument
97 ser->debugfs_tty_dir = debugfs_create_dir(tty->name, debugfsdir); in debugfs_init()
140 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument
162 static void ldisc_receive(struct tty_struct *tty, const u8 *data, in ldisc_receive() argument
169 ser = tty->disc_data; in ldisc_receive()
211 struct tty_struct *tty; in handle_tx() local
215 tty = ser->tty; in handle_tx()
227 room = tty_write_room(tty); in handle_tx()
237 tty_wr = tty->ops->write(tty, skb->data, len); in handle_tx()
241 ldisc_receive(tty, skb->data, NULL, len); in handle_tx()
288 static void ldisc_tx_wakeup(struct tty_struct *tty) in ldisc_tx_wakeup() argument
292 ser = tty->disc_data; in ldisc_tx_wakeup()
294 WARN_ON(ser->tty != tty); in ldisc_tx_wakeup()
321 static int ldisc_open(struct tty_struct *tty) in ldisc_open() argument
329 if (tty->ops->write == NULL) in ldisc_open()
337 result = snprintf(name, sizeof(name), "cf%s", tty->name); in ldisc_open()
346 ser->tty = tty_kref_get(tty); in ldisc_open()
348 debugfs_init(ser, tty); in ldisc_open()
349 tty->receive_room = N_TTY_BUF_SIZE; in ldisc_open()
350 tty->disc_data = ser; in ldisc_open()
351 set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags); in ldisc_open()
369 static void ldisc_close(struct tty_struct *tty) in ldisc_close() argument
371 struct ser_device *ser = tty->disc_data; in ldisc_close()
373 tty_kref_put(ser->tty); in ldisc_close()