Lines Matching refs:tty
217 static int v253_open(struct tty_struct *tty) in v253_open() argument
222 if (!tty->ops->write) in v253_open()
226 if (!tty->disc_data) in v253_open()
229 if (tty->ops->write(tty, v253_init, len) != len) { in v253_open()
236 tty->disc_data = NULL; in v253_open()
241 static void v253_close(struct tty_struct *tty) in v253_close() argument
243 struct snd_soc_codec *codec = tty->disc_data; in v253_close()
246 tty->disc_data = NULL; in v253_close()
260 static int v253_hangup(struct tty_struct *tty) in v253_hangup() argument
262 v253_close(tty); in v253_hangup()
267 static void v253_receive(struct tty_struct *tty, in v253_receive() argument
270 struct snd_soc_codec *codec = tty->disc_data; in v253_receive()
282 cx20442->control_data = tty; in v253_receive()
283 codec->hw_write = (hw_write_t)tty->ops->write; in v253_receive()
289 static void v253_wakeup(struct tty_struct *tty) in v253_wakeup() argument
384 struct tty_struct *tty = cx20442->control_data; in cx20442_codec_remove() local
385 tty_hangup(tty); in cx20442_codec_remove()