Home
last modified time | relevance | path

Searched refs:speakup_info (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/drivers/staging/speakup/
Dserialio.c84 speakup_info.port_tts = ser->port; in spk_serial_init()
99 spin_lock_irqsave(&speakup_info.spinlock, flags); in synth_readbuf_handler()
100 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler()
102 c = inb_p(speakup_info.port_tts+UART_RX); in synth_readbuf_handler()
107 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in synth_readbuf_handler()
125 speakup_info.port_tts + UART_MCR); in start_serial_interrupt()
128 speakup_info.port_tts + UART_IER); in start_serial_interrupt()
129 inb(speakup_info.port_tts+UART_LSR); in start_serial_interrupt()
130 inb(speakup_info.port_tts+UART_RX); in start_serial_interrupt()
131 inb(speakup_info.port_tts+UART_IIR); in start_serial_interrupt()
[all …]
Dspeakup_acntpc.c149 return inb_p(speakup_info.port_tts + UART_RX) == 'F'; in synth_full()
168 outb_p(ch, speakup_info.port_tts); in synth_immediate()
191 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
193 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
197 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
198 if (speakup_info.flushing) { in do_catch_up()
199 speakup_info.flushing = 0; in do_catch_up()
200 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
205 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
210 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
[all …]
Dspeakup_decpc.c250 dt_stat = inb_p(speakup_info.port_tts) | in dt_getstatus()
251 (inb_p(speakup_info.port_tts + 1) << 8); in dt_getstatus()
257 outb_p(cmd & 0xFF, speakup_info.port_tts); in dt_sendcmd()
258 outb_p((cmd >> 8) & 0xFF, speakup_info.port_tts+1); in dt_sendcmd()
294 outb_p(0, speakup_info.port_tts+2); in dt_ctrl()
295 outb_p(0, speakup_info.port_tts+3); in dt_ctrl()
298 outb_p(0, speakup_info.port_tts+6); in dt_ctrl()
326 outb_p(DMA_sync, speakup_info.port_tts+4); in synth_flush()
327 outb_p(0, speakup_info.port_tts+4); in synth_flush()
345 outb_p(DMA_single_in, speakup_info.port_tts+4); in dt_sendchar()
[all …]
Dspeakup_dtlk.c158 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_readable()
164 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_writable()
170 synth_status = inb_p(speakup_info.port_tts + UART_RX); in synth_full()
183 outb_p(ch, speakup_info.port_tts); in spk_out()
204 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
206 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
209 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
210 if (speakup_info.flushing) { in do_catch_up()
211 speakup_info.flushing = 0; in do_catch_up()
212 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
[all …]
Dspeakup_apollo.c151 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
153 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
157 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
161 if (speakup_info.flushing) { in do_catch_up()
162 speakup_info.flushing = 0; in do_catch_up()
163 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
168 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
174 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
176 outb(UART_MCR_DTR, speakup_info.port_tts + UART_MCR); in do_catch_up()
178 speakup_info.port_tts + UART_MCR); in do_catch_up()
[all …]
Dspeakup_decext.c41 u_char avail = inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR; in get_last_char()
44 last_char = inb_p(speakup_info.port_tts + UART_RX); in get_last_char()
169 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
171 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
175 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
176 if (speakup_info.flushing) { in do_catch_up()
177 speakup_info.flushing = 0; in do_catch_up()
178 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
183 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
[all …]
Dspeakup_soft.c183 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_open()
185 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
189 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
197 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_close()
200 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_close()
217 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_read()
220 if (!synth_buffer_empty() || speakup_info.flushing) in softsynth_read()
222 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_read()
232 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_read()
239 if (speakup_info.flushing) { in softsynth_read()
[all …]
Dsynth.c27 struct speakup_info_t speakup_info = { variable
40 .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock),
43 EXPORT_SYMBOL_GPL(speakup_info);
98 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_do_catch_up()
100 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_do_catch_up()
104 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_do_catch_up()
105 if (speakup_info.flushing) { in spk_do_catch_up()
106 speakup_info.flushing = 0; in spk_do_catch_up()
107 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_do_catch_up()
112 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_do_catch_up()
[all …]
Dspeakup_keypc.c192 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
194 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()
206 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
211 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
225 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
227 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
[all …]
Dspeakup_dectlk.c221 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
223 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
239 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
240 if (speakup_info.flushing) { in do_catch_up()
241 speakup_info.flushing = 0; in do_catch_up()
242 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
247 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
254 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
262 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_catch_up()
264 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_catch_up()
[all …]
Dkobjects.c38 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_show()
73 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_show()
130 spin_lock_irqsave(&speakup_info.spinlock, flags); in chars_chartab_store()
215 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in chars_chartab_store()
236 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_show()
253 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_show()
270 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_store()
273 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
280 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
299 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
[all …]
Dthread.c26 spin_lock_irqsave(&speakup_info.spinlock, flags); in speakup_thread()
34 (speakup_info.flushing || in speakup_thread()
36 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in speakup_thread()
Dmain.c1159 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_shift()
1181 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_shift()
1188 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_latin()
1191 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1195 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1204 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1483 spin_lock_irqsave(&speakup_info.spinlock, flags); in pre_handle_cursor()
1487 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
1494 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
1497 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
[all …]
Di18n.c562 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_msg_set()
566 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_msg_set()
599 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_reset_msg_group()
606 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_reset_msg_group()
622 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_free_user_msgs()
629 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_free_user_msgs()
Ddevsynth.c33 spin_lock_irqsave(&speakup_info.spinlock, flags); in speakup_file_write()
35 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in speakup_file_write()
Dserialio.h38 ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)
Dspk_priv.h76 extern struct speakup_info_t speakup_info;
Dspeakup_spkout.c140 outb(SYNTH_CLEAR, speakup_info.port_tts); in synth_flush()
Dspeakup_audptr.c141 outb(SYNTH_CLEAR, speakup_info.port_tts); in synth_flush()