Lines Matching refs:synth
15 struct spk_synth *synth; member
37 static int get_dev_to_use(struct spk_synth *synth, dev_t *dev_no) in get_dev_to_use() argument
40 if (strcmp(synth->dev_name, SYNTH_DEFAULT_DEV) || in get_dev_to_use()
41 synth->ser == SYNTH_DEFAULT_SER) in get_dev_to_use()
42 return tty_dev_name_to_number(synth->dev_name, dev_no); in get_dev_to_use()
44 return ser_to_dev(synth->ser, dev_no); in get_dev_to_use()
79 struct spk_synth *synth = ldisc_data->synth; in spk_ttyio_receive_buf2() local
81 if (synth->read_buff_add) { in spk_ttyio_receive_buf2()
85 synth->read_buff_add(cp[i]); in spk_ttyio_receive_buf2()
144 static int spk_ttyio_initialise_ldisc(struct spk_synth *synth) in spk_ttyio_initialise_ldisc() argument
151 ret = get_dev_to_use(synth, &dev); in spk_ttyio_initialise_ldisc()
197 ldisc_data->synth = synth; in spk_ttyio_initialise_ldisc()
198 synth->dev = tty; in spk_ttyio_initialise_ldisc()
340 int spk_ttyio_synth_probe(struct spk_synth *synth) in spk_ttyio_synth_probe() argument
342 int rv = spk_ttyio_initialise_ldisc(synth); in spk_ttyio_synth_probe()
347 synth->alive = 1; in spk_ttyio_synth_probe()