Lines Matching refs:in_synth

114 static int spk_ttyio_out(struct spk_synth *in_synth, const char ch);
115 static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch);
116 static void spk_ttyio_send_xchar(struct spk_synth *in_synth, char ch);
117 static void spk_ttyio_tiocmset(struct spk_synth *in_synth, unsigned int set, unsigned int clear);
118 static unsigned char spk_ttyio_in(struct spk_synth *in_synth);
119 static unsigned char spk_ttyio_in_nowait(struct spk_synth *in_synth);
120 static void spk_ttyio_flush_buffer(struct spk_synth *in_synth);
121 static int spk_ttyio_wait_for_xmitr(struct spk_synth *in_synth);
224 static int spk_ttyio_out(struct spk_synth *in_synth, const char ch) in spk_ttyio_out() argument
226 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out()
229 if (!in_synth->alive || !tty->ops->write) in spk_ttyio_out()
243 in_synth->long_name); in spk_ttyio_out()
248 in_synth->alive = 0; in spk_ttyio_out()
253 static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch) in spk_ttyio_out_unicode() argument
258 ret = spk_ttyio_out(in_synth, ch); in spk_ttyio_out_unicode()
260 ret = spk_ttyio_out(in_synth, 0xc0 | (ch >> 6)); in spk_ttyio_out_unicode()
261 ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f)); in spk_ttyio_out_unicode()
263 ret = spk_ttyio_out(in_synth, 0xe0 | (ch >> 12)); in spk_ttyio_out_unicode()
264 ret &= spk_ttyio_out(in_synth, 0x80 | ((ch >> 6) & 0x3f)); in spk_ttyio_out_unicode()
265 ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f)); in spk_ttyio_out_unicode()
270 static void spk_ttyio_send_xchar(struct spk_synth *in_synth, char ch) in spk_ttyio_send_xchar() argument
272 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar()
278 static void spk_ttyio_tiocmset(struct spk_synth *in_synth, unsigned int set, unsigned int clear) in spk_ttyio_tiocmset() argument
280 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset()
286 static int spk_ttyio_wait_for_xmitr(struct spk_synth *in_synth) in spk_ttyio_wait_for_xmitr() argument
291 static unsigned char ttyio_in(struct spk_synth *in_synth, int timeout) in ttyio_in() argument
293 struct tty_struct *tty = in_synth->dev; in ttyio_in()
319 static unsigned char spk_ttyio_in(struct spk_synth *in_synth) in spk_ttyio_in() argument
321 return ttyio_in(in_synth, SPK_SYNTH_TIMEOUT); in spk_ttyio_in()
324 static unsigned char spk_ttyio_in_nowait(struct spk_synth *in_synth) in spk_ttyio_in_nowait() argument
326 u8 rv = ttyio_in(in_synth, 0); in spk_ttyio_in_nowait()
331 static void spk_ttyio_flush_buffer(struct spk_synth *in_synth) in spk_ttyio_flush_buffer() argument
333 struct tty_struct *tty = in_synth->dev; in spk_ttyio_flush_buffer()
352 void spk_ttyio_release(struct spk_synth *in_synth) in spk_ttyio_release() argument
354 struct tty_struct *tty = in_synth->dev; in spk_ttyio_release()
368 in_synth->dev = NULL; in spk_ttyio_release()
372 const char *spk_ttyio_synth_immediate(struct spk_synth *in_synth, const char *buff) in spk_ttyio_synth_immediate() argument
374 struct tty_struct *tty = in_synth->dev; in spk_ttyio_synth_immediate()
379 ch = in_synth->procspeech; in spk_ttyio_synth_immediate()
381 !in_synth->io_ops->synth_out(in_synth, ch)) in spk_ttyio_synth_immediate()