/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | synth.c | 22 struct spk_synth *synth; variable 34 * through the synth buffer, so only needs to take the lock 54 static void _spk_do_catch_up(struct spk_synth *synth, int unicode) in _spk_do_catch_up() argument 81 synth->flush(synth); in _spk_do_catch_up() 95 ch = synth->procspeech; in _spk_do_catch_up() 97 ret = synth->io_ops->synth_out_unicode(synth, ch); in _spk_do_catch_up() 99 ret = synth->io_ops->synth_out(synth, c in _spk_do_catch_up() 126 spk_do_catch_up(struct spk_synth *synth) spk_do_catch_up() argument 132 spk_do_catch_up_unicode(struct spk_synth *synth) spk_do_catch_up_unicode() argument 138 spk_synth_flush(struct spk_synth *synth) spk_synth_flush() argument 145 spk_synth_get_index(struct spk_synth *synth) spk_synth_get_index() argument 151 spk_synth_is_alive_nop(struct spk_synth *synth) spk_synth_is_alive_nop() argument 158 spk_synth_is_alive_restart(struct spk_synth *synth) spk_synth_is_alive_restart() argument 361 struct spk_synth *tmp, *synth = NULL; synth_init() local [all...] |
H A D | speakup_audptr.c | 16 #define SYNTH_CLEAR 0x18 /* flush synth buffer */ 17 #define PROCSPEECH '\r' /* start synth processing speech char */ 19 static int synth_probe(struct spk_synth *synth); 20 static void synth_flush(struct spk_synth *synth); 129 static void synth_flush(struct spk_synth *synth) in synth_flush() argument 131 synth->io_ops->flush_buffer(synth); in synth_flush() 132 synth->io_ops->send_xchar(synth, SYNTH_CLEAR); in synth_flush() 133 synth in synth_flush() 136 synth_version(struct spk_synth *synth) synth_version() argument 156 synth_probe(struct spk_synth *synth) synth_probe() argument [all...] |
H A D | spk_priv.h | 22 /* synth flags, for odd synths */ 37 void spk_serial_release(struct spk_synth *synth); 38 void spk_ttyio_release(struct spk_synth *synth); 52 int spk_serial_synth_probe(struct spk_synth *synth); 53 int spk_ttyio_synth_probe(struct spk_synth *synth); 54 const char *spk_serial_synth_immediate(struct spk_synth *synth, 56 const char *spk_ttyio_synth_immediate(struct spk_synth *synth, 58 void spk_do_catch_up(struct spk_synth *synth); 59 void spk_do_catch_up_unicode(struct spk_synth *synth); 60 void spk_synth_flush(struct spk_synth *synth); [all...] |
H A D | speakup_dectlk.c | 32 static void do_catch_up(struct spk_synth *synth); 33 static void synth_flush(struct spk_synth *synth); 35 static unsigned char get_index(struct spk_synth *synth); 173 static unsigned char get_index(struct spk_synth *synth) in get_index() argument 209 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 252 synth->flush(synth); in do_catch_up() 267 if (synth_full_val || !synth->io_ops->synth_out(synth, ch)) { in do_catch_up() 281 synth in do_catch_up() 303 synth_flush(struct spk_synth *synth) synth_flush() argument [all...] |
H A D | thread.c | 34 (synth && synth->catch_up && synth->alive && in speakup_thread() 50 if (synth && synth->catch_up && synth->alive) { in speakup_thread() 55 synth->catch_up(synth); in speakup_thread()
|
H A D | spk_types.h | 121 char *out_str; /* if synth needs char representation of number */ 158 int (*synth_out)(struct spk_synth *synth, const char ch); 159 int (*synth_out_unicode)(struct spk_synth *synth, u16 ch); 160 void (*send_xchar)(struct spk_synth *synth, char ch); 161 void (*tiocmset)(struct spk_synth *synth, unsigned int set, unsigned int clear); 162 unsigned char (*synth_in)(struct spk_synth *synth); 163 unsigned char (*synth_in_nowait)(struct spk_synth *synth); 164 void (*flush_buffer)(struct spk_synth *synth); 165 int (*wait_for_xmitr)(struct spk_synth *synth); 186 const int checkval; /* for validating a proper synth modul [all...] |
H A D | spk_ttyio.c | 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() 78 struct spk_synth *synth = ldisc_data->synth; in spk_ttyio_receive_buf2() local 80 if (synth->read_buff_add) { in spk_ttyio_receive_buf2() 84 synth in spk_ttyio_receive_buf2() 143 spk_ttyio_initialise_ldisc(struct spk_synth *synth) spk_ttyio_initialise_ldisc() argument 339 spk_ttyio_synth_probe(struct spk_synth *synth) spk_ttyio_synth_probe() argument [all...] |
H A D | speakup_decext.c | 36 static void do_catch_up(struct spk_synth *synth); 37 static void synth_flush(struct spk_synth *synth); 153 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 177 synth->flush(synth); in do_catch_up() 191 if (synth_full() || !synth->io_ops->synth_out(synth, ch)) { in do_catch_up() 205 synth->io_ops->synth_out(synth, PROCSPEECH); in do_catch_up() 208 synth in do_catch_up() 227 synth_flush(struct spk_synth *synth) synth_flush() argument [all...] |
H A D | serialio.c | 122 synth->read_buff_add((u_char)c); in synth_readbuf_handler() 132 if (!synth->read_buff_add) in start_serial_interrupt() 153 static void spk_serial_send_xchar(struct spk_synth *synth, char ch) in spk_serial_send_xchar() argument 172 int spk_serial_synth_probe(struct spk_synth *synth) in spk_serial_synth_probe() argument 177 if ((synth->ser >= SPK_LO_TTY) && (synth->ser <= SPK_HI_TTY)) { in spk_serial_synth_probe() 178 ser = spk_serial_init(synth->ser); in spk_serial_synth_probe() 188 pr_warn("ttyS%i is an invalid port\n", synth->ser); in spk_serial_synth_probe() 191 pr_info("%s: not found\n", synth->long_name); in spk_serial_synth_probe() 195 synth in spk_serial_synth_probe() 292 spk_serial_synth_immediate(struct spk_synth *synth, const char *buff) spk_serial_synth_immediate() argument 310 spk_serial_release(struct spk_synth *synth) spk_serial_release() argument [all...] |
H A D | speakup_keypc.c | 26 static int synth_probe(struct spk_synth *synth); 27 static void keynote_release(struct spk_synth *synth); 28 static const char *synth_immediate(struct spk_synth *synth, const char *buf); 29 static void do_catch_up(struct spk_synth *synth); 30 static void synth_flush(struct spk_synth *synth); 148 pr_warn("synth timeout %d %d %d %d\n", s1, s2, s3, s4); in oops() 152 static const char *synth_immediate(struct spk_synth *synth, const char *buf) in synth_immediate() argument 173 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 199 synth->flush(synth); in do_catch_up() 258 synth_flush(struct spk_synth *synth) synth_flush() argument 263 synth_probe(struct spk_synth *synth) synth_probe() argument 307 keynote_release(struct spk_synth *synth) keynote_release() argument [all...] |
H A D | speakup_acntpc.c | 27 static int synth_probe(struct spk_synth *synth); 28 static void accent_release(struct spk_synth *synth); 29 static const char *synth_immediate(struct spk_synth *synth, const char *buf); 30 static void do_catch_up(struct spk_synth *synth); 31 static void synth_flush(struct spk_synth *synth); 149 static const char *synth_immediate(struct spk_synth *synth, const char *buf) in synth_immediate() argument 171 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 198 synth->flush(synth); in do_catch_up() 251 static void synth_flush(struct spk_synth *synth) in synth_flush() argument 256 synth_probe(struct spk_synth *synth) synth_probe() argument 306 accent_release(struct spk_synth *synth) accent_release() argument [all...] |
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
H A D | synth.c | 22 struct spk_synth *synth; variable 34 * through the synth buffer, so only needs to take the lock 54 static void _spk_do_catch_up(struct spk_synth *synth, int unicode) in _spk_do_catch_up() argument 81 synth->flush(synth); in _spk_do_catch_up() 95 ch = synth->procspeech; in _spk_do_catch_up() 97 ret = synth->io_ops->synth_out_unicode(synth, ch); in _spk_do_catch_up() 99 ret = synth->io_ops->synth_out(synth, c in _spk_do_catch_up() 126 spk_do_catch_up(struct spk_synth *synth) spk_do_catch_up() argument 132 spk_do_catch_up_unicode(struct spk_synth *synth) spk_do_catch_up_unicode() argument 138 spk_synth_flush(struct spk_synth *synth) spk_synth_flush() argument 145 spk_synth_get_index(struct spk_synth *synth) spk_synth_get_index() argument 151 spk_synth_is_alive_nop(struct spk_synth *synth) spk_synth_is_alive_nop() argument 158 spk_synth_is_alive_restart(struct spk_synth *synth) spk_synth_is_alive_restart() argument 358 struct spk_synth *tmp, *synth = NULL; synth_init() local [all...] |
H A D | speakup_audptr.c | 16 #define SYNTH_CLEAR 0x18 /* flush synth buffer */ 17 #define PROCSPEECH '\r' /* start synth processing speech char */ 19 static int synth_probe(struct spk_synth *synth); 20 static void synth_flush(struct spk_synth *synth); 120 static void synth_flush(struct spk_synth *synth) in synth_flush() argument 122 synth->io_ops->flush_buffer(); in synth_flush() 123 synth->io_ops->send_xchar(SYNTH_CLEAR); in synth_flush() 124 synth->io_ops->synth_out(synth, PROCSPEECH); in synth_flush() 127 static void synth_version(struct spk_synth *synth) in synth_version() argument 145 synth_probe(struct spk_synth *synth) synth_probe() argument [all...] |
H A D | speakup_decext.c | 36 static void do_catch_up(struct spk_synth *synth); 37 static void synth_flush(struct spk_synth *synth); 144 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 168 synth->flush(synth); in do_catch_up() 182 if (synth_full() || !synth->io_ops->synth_out(synth, ch)) { in do_catch_up() 196 synth->io_ops->synth_out(synth, PROCSPEECH); in do_catch_up() 199 synth in do_catch_up() 218 synth_flush(struct spk_synth *synth) synth_flush() argument [all...] |
H A D | spk_priv.h | 22 /* synth flags, for odd synths */ 52 int spk_serial_synth_probe(struct spk_synth *synth); 53 int spk_ttyio_synth_probe(struct spk_synth *synth); 54 const char *spk_serial_synth_immediate(struct spk_synth *synth, 56 const char *spk_ttyio_synth_immediate(struct spk_synth *synth, 58 void spk_do_catch_up(struct spk_synth *synth); 59 void spk_do_catch_up_unicode(struct spk_synth *synth); 60 void spk_synth_flush(struct spk_synth *synth); 61 unsigned char spk_synth_get_index(struct spk_synth *synth); 62 int spk_synth_is_alive_nop(struct spk_synth *synth); [all...] |
H A D | thread.c | 34 (synth && synth->catch_up && synth->alive && in speakup_thread() 50 if (synth && synth->catch_up && synth->alive) { in speakup_thread() 55 synth->catch_up(synth); in speakup_thread()
|
H A D | speakup_dectlk.c | 32 static void do_catch_up(struct spk_synth *synth); 33 static void synth_flush(struct spk_synth *synth); 35 static unsigned char get_index(struct spk_synth *synth); 161 static unsigned char get_index(struct spk_synth *synth) in get_index() argument 197 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 235 synth->flush(synth); in do_catch_up() 250 if (synth_full_val || !synth->io_ops->synth_out(synth, ch)) { in do_catch_up() 264 synth in do_catch_up() 286 synth_flush(struct spk_synth *synth) synth_flush() argument [all...] |
H A D | serialio.c | 122 synth->read_buff_add((u_char)c); in synth_readbuf_handler() 132 if (!synth->read_buff_add) in start_serial_interrupt() 172 int spk_serial_synth_probe(struct spk_synth *synth) in spk_serial_synth_probe() argument 177 if ((synth->ser >= SPK_LO_TTY) && (synth->ser <= SPK_HI_TTY)) { in spk_serial_synth_probe() 178 ser = spk_serial_init(synth->ser); in spk_serial_synth_probe() 188 pr_warn("ttyS%i is an invalid port\n", synth->ser); in spk_serial_synth_probe() 191 pr_info("%s: not found\n", synth->long_name); in spk_serial_synth_probe() 195 synth->long_name, synth in spk_serial_synth_probe() 292 spk_serial_synth_immediate(struct spk_synth *synth, const char *buff) spk_serial_synth_immediate() argument [all...] |
H A D | speakup_apollo.c | 25 static void do_catch_up(struct spk_synth *synth); 125 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 153 synth->flush(synth); in do_catch_up() 165 if (!synth->io_ops->synth_out(synth, ch)) { in do_catch_up() 166 synth->io_ops->tiocmset(0, UART_MCR_RTS); in do_catch_up() 167 synth->io_ops->tiocmset(UART_MCR_RTS, 0); in do_catch_up() 177 if (synth->io_ops->synth_out(synth, synt in do_catch_up() [all...] |
H A D | speakup_ltlk.c | 19 static int synth_probe(struct spk_synth *synth); 128 static void synth_interrogate(struct spk_synth *synth) in synth_interrogate() argument 133 synth->synth_immediate(synth, "\x18\x01?"); in synth_interrogate() 135 buf[i] = synth->io_ops->synth_in(); in synth_interrogate() 146 pr_info("%s: ROM version: %s\n", synth->long_name, rom_v); in synth_interrogate() 149 static int synth_probe(struct spk_synth *synth) in synth_probe() argument 153 failed = spk_ttyio_synth_probe(synth); in synth_probe() 155 synth_interrogate(synth); in synth_probe() 156 synth in synth_probe() [all...] |
H A D | spk_ttyio.c | 36 static int get_dev_to_use(struct spk_synth *synth, dev_t *dev_no) in get_dev_to_use() argument 39 if (strcmp(synth->dev_name, SYNTH_DEFAULT_DEV) || in get_dev_to_use() 40 synth->ser == SYNTH_DEFAULT_SER) in get_dev_to_use() 41 return tty_dev_name_to_number(synth->dev_name, dev_no); in get_dev_to_use() 43 return ser_to_dev(synth->ser, dev_no); in get_dev_to_use() 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() 235 /* No synth any more, so nobody will restart TTYs, in spk_ttyio_out() 237 * is no synth we can let application flood anyway in spk_ttyio_out() 272 /* No synth an in check_tty() 368 spk_ttyio_synth_probe(struct spk_synth *synth) spk_ttyio_synth_probe() argument 398 spk_ttyio_synth_immediate(struct spk_synth *synth, const char *buff) spk_ttyio_synth_immediate() argument [all...] |
H A D | speakup_acntpc.c | 27 static int synth_probe(struct spk_synth *synth); 29 static const char *synth_immediate(struct spk_synth *synth, const char *buf); 30 static void do_catch_up(struct spk_synth *synth); 31 static void synth_flush(struct spk_synth *synth); 140 static const char *synth_immediate(struct spk_synth *synth, const char *buf) in synth_immediate() argument 162 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 189 synth->flush(synth); in do_catch_up() 242 static void synth_flush(struct spk_synth *synth) in synth_flush() argument 247 static int synth_probe(struct spk_synth *synth) in synth_probe() argument [all...] |
H A D | speakup_keypc.c | 26 static int synth_probe(struct spk_synth *synth); 28 static const char *synth_immediate(struct spk_synth *synth, const char *buf); 29 static void do_catch_up(struct spk_synth *synth); 30 static void synth_flush(struct spk_synth *synth); 139 pr_warn("synth timeout %d %d %d %d\n", s1, s2, s3, s4); in oops() 143 static const char *synth_immediate(struct spk_synth *synth, const char *buf) in synth_immediate() argument 164 static void do_catch_up(struct spk_synth *synth) in do_catch_up() argument 190 synth->flush(synth); in do_catch_up() 249 static void synth_flush(struct spk_synth *synth) in synth_flush() argument 254 synth_probe(struct spk_synth *synth) synth_probe() argument [all...] |
/kernel/linux/linux-5.10/drivers/clk/ti/ |
H A D | fapll.c | 286 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_enable() local 287 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_enable() 289 v &= ~(1 << synth->index); in ti_fapll_synth_enable() 290 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_enable() 297 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_disable() local 298 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_disable() 300 v |= 1 << synth->index; in ti_fapll_synth_disable() 301 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_disable() 306 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_is_enabled() local 307 u32 v = readl_relaxed(synth in ti_fapll_synth_is_enabled() 318 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_recalc_rate() local 362 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_get_frac_rate() local 373 ti_fapll_synth_set_frac_rate(struct fapll_synth *synth, unsigned long rate, unsigned long parent_rate) ti_fapll_synth_set_frac_rate() argument 414 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_round_rate() local 448 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_set_rate() local 502 struct fapll_synth *synth; ti_fapll_synth_setup() local [all...] |
/kernel/linux/linux-6.6/drivers/clk/ti/ |
H A D | fapll.c | 277 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_enable() local 278 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_enable() 280 v &= ~(1 << synth->index); in ti_fapll_synth_enable() 281 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_enable() 288 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_disable() local 289 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_disable() 291 v |= 1 << synth->index; in ti_fapll_synth_disable() 292 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET); in ti_fapll_synth_disable() 297 struct fapll_synth *synth = to_synth(hw); in ti_fapll_synth_is_enabled() local 298 u32 v = readl_relaxed(synth in ti_fapll_synth_is_enabled() 309 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_recalc_rate() local 353 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_get_frac_rate() local 364 ti_fapll_synth_set_frac_rate(struct fapll_synth *synth, unsigned long rate, unsigned long parent_rate) ti_fapll_synth_set_frac_rate() argument 405 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_round_rate() local 439 struct fapll_synth *synth = to_synth(hw); ti_fapll_synth_set_rate() local 493 struct fapll_synth *synth; ti_fapll_synth_setup() local [all...] |