Lines Matching refs:tty
25 struct tty_struct *tty; member
164 if (!cx20442->tty || !cx20442->tty->ops->write) in cx20442_write()
193 if (cx20442->tty->ops->write(cx20442->tty, buf, len) != len) in cx20442_write()
212 static int v253_open(struct tty_struct *tty) in v253_open() argument
217 if (!tty->ops->write) in v253_open()
221 if (!tty->disc_data) in v253_open()
224 tty->receive_room = 16; in v253_open()
225 if (tty->ops->write(tty, v253_init, len) != len) { in v253_open()
232 tty->disc_data = NULL; in v253_open()
237 static void v253_close(struct tty_struct *tty) in v253_close() argument
239 struct snd_soc_component *component = tty->disc_data; in v253_close()
242 tty->disc_data = NULL; in v253_close()
250 cx20442->tty = NULL; in v253_close()
255 static void v253_hangup(struct tty_struct *tty) in v253_hangup() argument
257 v253_close(tty); in v253_hangup()
261 static void v253_receive(struct tty_struct *tty, const unsigned char *cp, in v253_receive() argument
264 struct snd_soc_component *component = tty->disc_data; in v253_receive()
272 if (!cx20442->tty) { in v253_receive()
276 cx20442->tty = tty; in v253_receive()
374 cx20442->tty = NULL; in cx20442_component_probe()
387 if (cx20442->tty) { in cx20442_component_remove()
388 struct tty_struct *tty = cx20442->tty; in cx20442_component_remove() local
389 tty_hangup(tty); in cx20442_component_remove()