/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
D | serialio.c | 106 speakup_info.port_tts = ser->port; in spk_serial_init() 119 spin_lock_irqsave(&speakup_info.spinlock, flags); in synth_readbuf_handler() 120 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler() 121 c = inb_p(speakup_info.port_tts + UART_RX); in synth_readbuf_handler() 124 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in synth_readbuf_handler() 142 speakup_info.port_tts + UART_MCR); in start_serial_interrupt() 145 speakup_info.port_tts + UART_IER); in start_serial_interrupt() 146 inb(speakup_info.port_tts + UART_LSR); in start_serial_interrupt() 147 inb(speakup_info.port_tts + UART_RX); in start_serial_interrupt() 148 inb(speakup_info.port_tts + UART_IIR); in start_serial_interrupt() [all …]
|
D | speakup_acntpc.c | 137 return inb_p(speakup_info.port_tts + UART_RX) == 'F'; in synth_full() 156 outb_p(ch, speakup_info.port_tts); in synth_immediate() 179 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 181 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 185 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 186 if (speakup_info.flushing) { in do_catch_up() 187 speakup_info.flushing = 0; in do_catch_up() 188 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 194 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 199 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | speakup_decpc.c | 240 dt_stat = inb_p(speakup_info.port_tts) | in dt_getstatus() 241 (inb_p(speakup_info.port_tts + 1) << 8); in dt_getstatus() 247 outb_p(cmd & 0xFF, speakup_info.port_tts); in dt_sendcmd() 248 outb_p((cmd >> 8) & 0xFF, speakup_info.port_tts + 1); in dt_sendcmd() 284 outb_p(0, speakup_info.port_tts + 2); in dt_ctrl() 285 outb_p(0, speakup_info.port_tts + 3); in dt_ctrl() 288 outb_p(0, speakup_info.port_tts + 6); in dt_ctrl() 316 outb_p(DMA_sync, speakup_info.port_tts + 4); in synth_flush() 317 outb_p(0, speakup_info.port_tts + 4); in synth_flush() 335 outb_p(DMA_single_in, speakup_info.port_tts + 4); in dt_sendchar() [all …]
|
D | speakup_dtlk.c | 147 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_readable() 153 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_writable() 159 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_full() 172 outb_p(ch, speakup_info.port_tts); in spk_out() 193 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 195 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 198 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 199 if (speakup_info.flushing) { in do_catch_up() 200 speakup_info.flushing = 0; in do_catch_up() 201 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | speakup_decext.c | 158 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 160 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 164 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 165 if (speakup_info.flushing) { in do_catch_up() 166 speakup_info.flushing = 0; in do_catch_up() 167 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 173 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 179 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 187 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | speakup_apollo.c | 140 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 142 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 146 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 150 if (speakup_info.flushing) { in do_catch_up() 151 speakup_info.flushing = 0; in do_catch_up() 152 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 158 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 164 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 172 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 176 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | speakup_soft.c | 176 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_open() 178 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open() 182 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open() 190 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_close() 193 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_close() 214 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynthx_read() 221 if (!synth_buffer_empty() || speakup_info.flushing) in softsynthx_read() 224 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynthx_read() 234 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynthx_read() 245 if (speakup_info.flushing) { in softsynthx_read() [all …]
|
D | synth.c | 27 struct speakup_info_t speakup_info = { variable 40 .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock), 43 EXPORT_SYMBOL_GPL(speakup_info); 71 spin_lock_irqsave(&speakup_info.spinlock, flags); in _spk_do_catch_up() 73 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up() 77 spin_lock_irqsave(&speakup_info.spinlock, flags); in _spk_do_catch_up() 78 if (speakup_info.flushing) { in _spk_do_catch_up() 79 speakup_info.flushing = 0; in _spk_do_catch_up() 80 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up() 87 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in _spk_do_catch_up() [all …]
|
D | speakup_keypc.c | 180 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 182 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 186 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 187 if (speakup_info.flushing) { in do_catch_up() 188 speakup_info.flushing = 0; in do_catch_up() 189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 195 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 200 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 214 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 216 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | speakup_dectlk.c | 213 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 215 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 231 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 232 if (speakup_info.flushing) { in do_catch_up() 233 speakup_info.flushing = 0; in do_catch_up() 234 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 240 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 247 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() 255 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up() 257 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up() [all …]
|
D | kobjects.c | 39 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_show() 74 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_show() 132 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_store() 220 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_store() 241 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_show() 258 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_show() 275 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_store() 278 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store() 285 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store() 304 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store() [all …]
|
D | thread.c | 27 spin_lock_irqsave(&speakup_info.spinlock, flags); in speakup_thread() 35 (speakup_info.flushing || in speakup_thread() 37 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in speakup_thread()
|
D | i18n.c | 563 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_msg_set() 567 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_msg_set() 594 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_reset_msg_group() 601 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_reset_msg_group() 617 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_free_user_msgs() 624 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_free_user_msgs()
|
D | main.c | 1171 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_shift() 1193 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_shift() 1200 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_latin() 1204 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin() 1208 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin() 1217 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin() 1516 spin_lock_irqsave(&speakup_info.spinlock, flags); in pre_handle_cursor() 1520 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor() 1527 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor() 1530 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor() [all …]
|
D | devsynth.c | 30 spin_lock_irqsave(&speakup_info.spinlock, flags); in speakup_file_write() 32 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in speakup_file_write()
|
D | serialio.h | 39 ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)
|
D | spk_priv.h | 76 extern struct speakup_info_t speakup_info;
|