Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/speakup/
Dserialio.c83 speakup_info.port_tts = ser->port; in spk_serial_init()
98 spin_lock_irqsave(&speakup_info.spinlock, flags); in synth_readbuf_handler()
99 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler()
101 c = inb_p(speakup_info.port_tts+UART_RX); in synth_readbuf_handler()
106 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in synth_readbuf_handler()
124 speakup_info.port_tts + UART_MCR); in start_serial_interrupt()
127 speakup_info.port_tts + UART_IER); in start_serial_interrupt()
128 inb(speakup_info.port_tts+UART_LSR); in start_serial_interrupt()
129 inb(speakup_info.port_tts+UART_RX); in start_serial_interrupt()
130 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.c249 dt_stat = inb_p(speakup_info.port_tts) | in dt_getstatus()
250 (inb_p(speakup_info.port_tts + 1) << 8); in dt_getstatus()
256 outb_p(cmd & 0xFF, speakup_info.port_tts); in dt_sendcmd()
257 outb_p((cmd >> 8) & 0xFF, speakup_info.port_tts+1); in dt_sendcmd()
293 outb_p(0, speakup_info.port_tts+2); in dt_ctrl()
294 outb_p(0, speakup_info.port_tts+3); in dt_ctrl()
297 outb_p(0, speakup_info.port_tts+6); in dt_ctrl()
325 outb_p(DMA_sync, speakup_info.port_tts+4); in synth_flush()
326 outb_p(0, speakup_info.port_tts+4); in synth_flush()
344 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.c182 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_open()
184 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
188 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_open()
196 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_close()
199 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_close()
216 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_read()
219 if (!synth_buffer_empty() || speakup_info.flushing) in softsynth_read()
221 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in softsynth_read()
231 spin_lock_irqsave(&speakup_info.spinlock, flags); in softsynth_read()
238 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()
252 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_show()
269 spin_lock_irqsave(&speakup_info.spinlock, flags); in keymap_store()
272 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
279 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in keymap_store()
298 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.c1155 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_shift()
1177 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_shift()
1184 spin_lock_irqsave(&speakup_info.spinlock, flags); in do_handle_latin()
1187 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1191 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1200 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in do_handle_latin()
1479 spin_lock_irqsave(&speakup_info.spinlock, flags); in pre_handle_cursor()
1483 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
1490 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
1493 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in pre_handle_cursor()
[all …]
Di18n.c561 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_msg_set()
565 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_msg_set()
598 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_reset_msg_group()
605 spin_unlock_irqrestore(&speakup_info.spinlock, flags); in spk_reset_msg_group()
621 spin_lock_irqsave(&speakup_info.spinlock, flags); in spk_free_user_msgs()
628 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()