Home
last modified time | relevance | path

Searched refs:prev_scancode (Results 1 – 10 of 10) sorted by relevance

/linux-2.4.37.9/drivers/char/
Ddummy_keyb.c77 static int prev_scancode = 0; in kbd_translate() local
81 prev_scancode = scancode; in kbd_translate()
87 if (prev_scancode) { in kbd_translate()
88 if (prev_scancode != 0xe0) { in kbd_translate()
89 if (prev_scancode == 0xe1 && scancode == 0x1d) { in kbd_translate()
90 prev_scancode = 0x100; in kbd_translate()
92 } else if (prev_scancode == 0x100 && scancode == 0x45) { in kbd_translate()
94 prev_scancode = 0; in kbd_translate()
98 prev_scancode = 0; in kbd_translate()
102 prev_scancode = 0; in kbd_translate()
Dq40_keyb.c245 static int prev_scancode; in q40kbd_translate() local
249 prev_scancode = scancode; in q40kbd_translate()
255 prev_scancode = 0; in q40kbd_translate()
261 if (prev_scancode) { in q40kbd_translate()
266 if (prev_scancode != 0xe0) { in q40kbd_translate()
267 if (prev_scancode == 0xe1 && scancode == 0x1d) { in q40kbd_translate()
268 prev_scancode = 0x100; in q40kbd_translate()
270 } else if (prev_scancode == 0x100 && scancode == 0x45) { in q40kbd_translate()
272 prev_scancode = 0; in q40kbd_translate()
278 prev_scancode = 0; in q40kbd_translate()
[all …]
Ddn_keyb.c300 unsigned char prev_scancode=lastscancode; in dn_keyb_process_key_event() local
307 if(prev_scancode==APOLLO_KBD_MODE_CHANGE) { in dn_keyb_process_key_event()
317 else if( (scancode == DNKEY_REPEAT) && (prev_scancode < 0x7e) && in dn_keyb_process_key_event()
318 !(prev_scancode==DNKEY_CTRL || prev_scancode==DNKEY_LSHIFT || in dn_keyb_process_key_event()
319 prev_scancode==DNKEY_RSHIFT || prev_scancode==DNKEY_REPT || in dn_keyb_process_key_event()
320 prev_scancode==DNKEY_LALT || prev_scancode==DNKEY_RALT)) { in dn_keyb_process_key_event()
323 handle_scancode(prev_scancode, 1); in dn_keyb_process_key_event()
325 lastscancode=prev_scancode; in dn_keyb_process_key_event()
Dhp_keyb.c361 static int prev_scancode; in pckbd_translate() local
365 prev_scancode = scancode; in pckbd_translate()
371 prev_scancode = 0; in pckbd_translate()
376 if (prev_scancode) { in pckbd_translate()
381 if (prev_scancode != 0xe0) { in pckbd_translate()
382 if (prev_scancode == 0xe1 && scancode == 0x1d) { in pckbd_translate()
383 prev_scancode = 0x100; in pckbd_translate()
385 } else if (prev_scancode == 0x100 && scancode == 0x45) { in pckbd_translate()
387 prev_scancode = 0; in pckbd_translate()
393 prev_scancode = 0; in pckbd_translate()
[all …]
Dqtronix.c372 static int prev_scancode = 0; in kbd_translate() local
375 prev_scancode = 0; in kbd_translate()
380 if (!prev_scancode && scancode == 160) { /* Fn key down */ in kbd_translate()
382 prev_scancode = 160; in kbd_translate()
385 else if (prev_scancode && scancode == 160) { /* Fn key up */ in kbd_translate()
387 prev_scancode = 0; in kbd_translate()
392 if (prev_scancode == 160) { in kbd_translate()
Dpc_keyb.c312 static int prev_scancode; in pckbd_translate() local
316 prev_scancode = scancode; in pckbd_translate()
322 prev_scancode = 0; in pckbd_translate()
328 if (prev_scancode) { in pckbd_translate()
333 if (prev_scancode != 0xe0) { in pckbd_translate()
334 if (prev_scancode == 0xe1 && scancode == 0x1d) { in pckbd_translate()
335 prev_scancode = 0x100; in pckbd_translate()
337 } else if (prev_scancode == 0x100 && scancode == 0x45) { in pckbd_translate()
339 prev_scancode = 0; in pckbd_translate()
345 prev_scancode = 0; in pckbd_translate()
[all …]
Dkeyboard.c98 static unsigned char prev_scancode; variable
229 if (have_keycode && up_flag && next_scancode==prev_scancode) { in handle_scancode()
237 prev_scancode = 1; in handle_scancode()
238 else if (!up_flag || prev_scancode == 1) in handle_scancode()
239 prev_scancode = 0; in handle_scancode()
241 prev_scancode = next_scancode; in handle_scancode()
/linux-2.4.37.9/drivers/macintosh/
Dmac_hid.c343 static int prev_scancode = 0; in mac_hid_kbd_translate() local
347 prev_scancode = scancode; in mac_hid_kbd_translate()
353 if (prev_scancode) { in mac_hid_kbd_translate()
354 if (prev_scancode != 0xe0) { in mac_hid_kbd_translate()
355 if (prev_scancode == 0xe1 && scancode == 0x1d) { in mac_hid_kbd_translate()
356 prev_scancode = 0x100; in mac_hid_kbd_translate()
358 } else if (prev_scancode == 0x100 && scancode == 0x45) { in mac_hid_kbd_translate()
360 prev_scancode = 0; in mac_hid_kbd_translate()
364 prev_scancode = 0; in mac_hid_kbd_translate()
368 prev_scancode = 0; in mac_hid_kbd_translate()
/linux-2.4.37.9/drivers/sbus/char/
Dpcikbd.c356 static int prev_scancode = 0; in pcikbd_translate() local
360 prev_scancode = scancode; in pcikbd_translate()
364 prev_scancode = 0; in pcikbd_translate()
368 if(prev_scancode) { in pcikbd_translate()
369 if(prev_scancode != 0xe0) { in pcikbd_translate()
370 if(prev_scancode == 0xe1 && scancode == 0x1d) { in pcikbd_translate()
371 prev_scancode = 0x100; in pcikbd_translate()
373 } else if(prev_scancode == 0x100 && scancode == 0x45) { in pcikbd_translate()
375 prev_scancode = 0; in pcikbd_translate()
377 prev_scancode = 0; in pcikbd_translate()
[all …]
/linux-2.4.37.9/drivers/tc/
Dlk201.c316 static int prev_scancode; in lk201_kbd_rx_char() local
391 handle_scancode(prev_scancode, 1); in lk201_kbd_rx_char()
394 prev_scancode = c; in lk201_kbd_rx_char()