Lines Matching refs:tty
86 if (port->tty) in srmcons_receive_chars()
132 srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count) in srmcons_write() argument
137 srmcons_do_write(tty->port, buf, count); in srmcons_write()
144 srmcons_write_room(struct tty_struct *tty) in srmcons_write_room() argument
150 srmcons_open(struct tty_struct *tty, struct file *filp) in srmcons_open() argument
158 if (!port->tty) { in srmcons_open()
159 tty->driver_data = srmconsp; in srmcons_open()
160 tty->port = port; in srmcons_open()
161 port->tty = tty; /* XXX proper refcounting */ in srmcons_open()
171 srmcons_close(struct tty_struct *tty, struct file *filp) in srmcons_close() argument
173 struct srmcons_private *srmconsp = tty->driver_data; in srmcons_close()
179 if (tty->count == 1) { in srmcons_close()
180 port->tty = NULL; in srmcons_close()