Lines Matching defs:speakup_tty
18 static struct tty_struct *speakup_tty;
19 /* mutex to protect against speakup_tty disappearing from underneath us while
21 * while in use. it also serialises access to speakup_tty.
50 if (tty != speakup_tty)
71 kfree(speakup_tty->disc_data);
72 speakup_tty = NULL;
188 speakup_tty = tty;
191 speakup_tty = NULL;
225 if (in_synth->alive && speakup_tty && speakup_tty->ops->write) {
226 int ret = speakup_tty->ops->write(speakup_tty, &ch, 1);
287 if (check_tty(speakup_tty)) {
292 if (speakup_tty->ops->send_xchar)
293 speakup_tty->ops->send_xchar(speakup_tty, ch);
300 if (check_tty(speakup_tty)) {
305 if (speakup_tty->ops->tiocmset)
306 speakup_tty->ops->tiocmset(speakup_tty, set, clear);
317 struct spk_ldisc_data *ldisc_data = speakup_tty->disc_data;
337 tty_flip_buffer_push(speakup_tty->port);
357 if (check_tty(speakup_tty)) {
362 if (speakup_tty->ops->flush_buffer)
363 speakup_tty->ops->flush_buffer(speakup_tty);
384 if (!speakup_tty)
387 tty_lock(speakup_tty);
389 if (speakup_tty->ops->close)
390 speakup_tty->ops->close(speakup_tty, NULL);
392 tty_ldisc_flush(speakup_tty);
393 tty_unlock(speakup_tty);
394 tty_kclose(speakup_tty);
405 if (tty_write_room(speakup_tty) < 1 ||