Lines Matching refs:in_synth

115 static int spk_ttyio_out(struct spk_synth *in_synth, const char ch);
116 static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch);
117 static void spk_ttyio_send_xchar(struct spk_synth *in_synth, char ch);
118 static void spk_ttyio_tiocmset(struct spk_synth *in_synth, unsigned int set, unsigned int clear);
119 static unsigned char spk_ttyio_in(struct spk_synth *in_synth);
120 static unsigned char spk_ttyio_in_nowait(struct spk_synth *in_synth);
121 static void spk_ttyio_flush_buffer(struct spk_synth *in_synth);
122 static int spk_ttyio_wait_for_xmitr(struct spk_synth *in_synth);
225 static int spk_ttyio_out(struct spk_synth *in_synth, const char ch) in spk_ttyio_out() argument
227 struct tty_struct *tty = in_synth->dev; in spk_ttyio_out()
230 if (!in_synth->alive || !tty->ops->write) in spk_ttyio_out()
244 in_synth->long_name); in spk_ttyio_out()
249 in_synth->alive = 0; in spk_ttyio_out()
254 static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch) in spk_ttyio_out_unicode() argument
259 ret = spk_ttyio_out(in_synth, ch); in spk_ttyio_out_unicode()
261 ret = spk_ttyio_out(in_synth, 0xc0 | (ch >> 6)); in spk_ttyio_out_unicode()
262 ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f)); in spk_ttyio_out_unicode()
264 ret = spk_ttyio_out(in_synth, 0xe0 | (ch >> 12)); in spk_ttyio_out_unicode()
265 ret &= spk_ttyio_out(in_synth, 0x80 | ((ch >> 6) & 0x3f)); in spk_ttyio_out_unicode()
266 ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f)); in spk_ttyio_out_unicode()
271 static void spk_ttyio_send_xchar(struct spk_synth *in_synth, char ch) in spk_ttyio_send_xchar() argument
273 struct tty_struct *tty = in_synth->dev; in spk_ttyio_send_xchar()
279 static void spk_ttyio_tiocmset(struct spk_synth *in_synth, unsigned int set, unsigned int clear) in spk_ttyio_tiocmset() argument
281 struct tty_struct *tty = in_synth->dev; in spk_ttyio_tiocmset()
287 static int spk_ttyio_wait_for_xmitr(struct spk_synth *in_synth) in spk_ttyio_wait_for_xmitr() argument
292 static unsigned char ttyio_in(struct spk_synth *in_synth, int timeout) in ttyio_in() argument
294 struct tty_struct *tty = in_synth->dev; in ttyio_in()
320 static unsigned char spk_ttyio_in(struct spk_synth *in_synth) in spk_ttyio_in() argument
322 return ttyio_in(in_synth, SPK_SYNTH_TIMEOUT); in spk_ttyio_in()
325 static unsigned char spk_ttyio_in_nowait(struct spk_synth *in_synth) in spk_ttyio_in_nowait() argument
327 u8 rv = ttyio_in(in_synth, 0); in spk_ttyio_in_nowait()
332 static void spk_ttyio_flush_buffer(struct spk_synth *in_synth) in spk_ttyio_flush_buffer() argument
334 struct tty_struct *tty = in_synth->dev; in spk_ttyio_flush_buffer()
353 void spk_ttyio_release(struct spk_synth *in_synth) in spk_ttyio_release() argument
355 struct tty_struct *tty = in_synth->dev; in spk_ttyio_release()
366 in_synth->dev = NULL; in spk_ttyio_release()
370 const char *spk_ttyio_synth_immediate(struct spk_synth *in_synth, const char *buff) in spk_ttyio_synth_immediate() argument
372 struct tty_struct *tty = in_synth->dev; in spk_ttyio_synth_immediate()
377 ch = in_synth->procspeech; in spk_ttyio_synth_immediate()
379 !in_synth->io_ops->synth_out(in_synth, ch)) in spk_ttyio_synth_immediate()