Lines Matching refs:tty
82 if (port->tty) in srmcons_receive_chars()
132 srmcons_write(struct tty_struct *tty, in srmcons_write() argument
138 srmcons_do_write(tty->port, (const char *) buf, count); in srmcons_write()
145 srmcons_write_room(struct tty_struct *tty) in srmcons_write_room() argument
151 srmcons_chars_in_buffer(struct tty_struct *tty) in srmcons_chars_in_buffer() argument
157 srmcons_open(struct tty_struct *tty, struct file *filp) in srmcons_open() argument
165 if (!port->tty) { in srmcons_open()
166 tty->driver_data = srmconsp; in srmcons_open()
167 tty->port = port; in srmcons_open()
168 port->tty = tty; /* XXX proper refcounting */ in srmcons_open()
178 srmcons_close(struct tty_struct *tty, struct file *filp) in srmcons_close() argument
180 struct srmcons_private *srmconsp = tty->driver_data; in srmcons_close()
186 if (tty->count == 1) { in srmcons_close()
187 port->tty = NULL; in srmcons_close()