Home
last modified time | relevance | path

Searched refs:scancode (Results 1 – 25 of 64) sorted by relevance

123

/linux-2.4.37.9/drivers/char/
Dq40_keyb.c216 int q40kbd_setkeycode(unsigned int scancode, unsigned int keycode) in q40kbd_setkeycode() argument
218 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in q40kbd_setkeycode()
220 if (scancode < 128) in q40kbd_setkeycode()
221 high_keys[scancode - SC_LIM] = keycode; in q40kbd_setkeycode()
223 e0_keys[scancode - 128] = keycode; in q40kbd_setkeycode()
227 int q40kbd_getkeycode(unsigned int scancode) in q40kbd_getkeycode() argument
230 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in q40kbd_getkeycode()
231 (scancode < 128) ? high_keys[scancode - SC_LIM] : in q40kbd_getkeycode()
232 e0_keys[scancode - 128]; in q40kbd_getkeycode()
242 int q40kbd_translate(unsigned char scancode, unsigned char *keycode, in q40kbd_translate() argument
[all …]
Ddummy_keyb.c38 int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
40 return (scancode == keycode) ? 0 : -EINVAL; in kbd_setkeycode()
43 int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
45 return scancode; in kbd_getkeycode()
69 int kbd_translate(unsigned char scancode, unsigned char *keycode, in kbd_translate() argument
80 if (scancode == 0xe0 || scancode == 0xe1) { in kbd_translate()
81 prev_scancode = scancode; in kbd_translate()
85 scancode &= 0x7f; in kbd_translate()
89 if (prev_scancode == 0xe1 && scancode == 0x1d) { in kbd_translate()
92 } else if (prev_scancode == 0x100 && scancode == 0x45) { in kbd_translate()
[all …]
Dhp_keyb.c339 int pckbd_setkeycode(unsigned int scancode, unsigned int keycode) in pckbd_setkeycode() argument
341 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in pckbd_setkeycode()
343 if (scancode < 128) in pckbd_setkeycode()
344 high_keys[scancode - SC_LIM] = keycode; in pckbd_setkeycode()
346 e0_keys[scancode - 128] = keycode; in pckbd_setkeycode()
350 int pckbd_getkeycode(unsigned int scancode) in pckbd_getkeycode() argument
353 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pckbd_getkeycode()
354 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pckbd_getkeycode()
355 e0_keys[scancode - 128]; in pckbd_getkeycode()
358 int pckbd_translate(unsigned char scancode, unsigned char *keycode, in pckbd_translate() argument
[all …]
Dpc_keyb.c264 int pckbd_setkeycode(unsigned int scancode, unsigned int keycode) in pckbd_setkeycode() argument
266 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in pckbd_setkeycode()
268 if (scancode < 128) in pckbd_setkeycode()
269 high_keys[scancode - SC_LIM] = keycode; in pckbd_setkeycode()
271 e0_keys[scancode - 128] = keycode; in pckbd_setkeycode()
275 int pckbd_getkeycode(unsigned int scancode) in pckbd_getkeycode() argument
278 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pckbd_getkeycode()
279 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pckbd_getkeycode()
280 e0_keys[scancode - 128]; in pckbd_getkeycode()
283 static int do_acknowledge(unsigned char scancode) in do_acknowledge() argument
[all …]
Dqtronix.c100 static inline void handle_mouse_event(unsigned char scancode);
101 static inline void handle_keyboard_event(unsigned char scancode, int down);
357 int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
359 printk("kbd_setkeycode scancode %x keycode %x\n", scancode, keycode); in kbd_setkeycode()
363 int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
365 return scancode; in kbd_getkeycode()
369 int kbd_translate(unsigned char scancode, unsigned char *keycode, in kbd_translate() argument
374 if (scancode == 0x00 || scancode == 0xff) { in kbd_translate()
380 if (!prev_scancode && scancode == 160) { /* Fn key down */ in kbd_translate()
385 else if (prev_scancode && scancode == 160) { /* Fn key up */ in kbd_translate()
[all …]
Dec3104_keyb.c104 int ec3104_kbd_setkeycode(unsigned int scancode, unsigned int keycode) in ec3104_kbd_setkeycode() argument
109 int ec3104_kbd_getkeycode(unsigned int scancode) in ec3104_kbd_getkeycode() argument
117 static inline unsigned char ec3104_scan2key(unsigned char scancode) in ec3104_scan2key() argument
119 switch (scancode) { in ec3104_scan2key()
124 return scancode; in ec3104_scan2key()
130 return scancode + 1; in ec3104_scan2key()
136 return scancode + 3; in ec3104_scan2key()
167 return scancode - 20; in ec3104_scan2key()
170 return scancode - 2; in ec3104_scan2key()
203 int ec3104_kbd_translate(unsigned char scancode, unsigned char *keycode, in ec3104_kbd_translate() argument
[all …]
Damikeyb.c200 unsigned char scancode, break_flag, keycode; in keyboard_interrupt() local
207 scancode = ~ciaa.sdr; in keyboard_interrupt()
220 if (scancode == RESET_WARNING) { in keyboard_interrupt()
238 scancode = ((scancode >> 1) & 0x7f) | ((scancode << 7) & 0x80); in keyboard_interrupt()
243 break_flag = scancode & BREAK_MASK; in keyboard_interrupt()
244 keycode = scancode & (unsigned char)~BREAK_MASK; in keyboard_interrupt()
294 scancode); in keyboard_interrupt()
Dvr41xx_keyb.c159 int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
161 return (scancode == keycode) ? 0 : -EINVAL; in kbd_setkeycode()
164 int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
166 return scancode; in kbd_getkeycode()
169 int kbd_translate(unsigned char scancode, unsigned char *keycode, char raw_mode) in kbd_translate() argument
171 *keycode = scancode; in kbd_translate()
186 static inline void handle_kiudat(uint16_t data, uint16_t cmp_data, int scancode) in handle_kiudat() argument
195 repeat_scancode = scancode; in handle_kiudat()
199 if (repeat_scancode == scancode) in handle_kiudat()
202 handle_scancode(scancode, down); in handle_kiudat()
[all …]
Dhp_psaux.c267 static inline void handle_mouse_scancode(unsigned char scancode) in handle_mouse_scancode() argument
270 if (scancode == AUX_REPLY_ACK) { in handle_mouse_scancode()
276 else if (scancode == AUX_RECONNECT) { in handle_mouse_scancode()
281 add_mouse_randomness(scancode); in handle_mouse_scancode()
285 queue->buf[head] = scancode; in handle_mouse_scancode()
439 u8 status_keyb,status_mouse,scancode,id; in handle_lasikbd_event() local
455 scancode = read_input(hpa); in handle_lasikbd_event()
462 if (scancode == AUX_REPLY_ACK) in handle_lasikbd_event()
465 else if (scancode == AUX_RESEND) in handle_lasikbd_event()
468 handle_at_scancode(scancode); in handle_lasikbd_event()
[all …]
Ddn_keyb.c297 static void dn_keyb_process_key_event(unsigned char scancode) { in dn_keyb_process_key_event() argument
303 lastscancode=scancode; in dn_keyb_process_key_event()
308 kbd_mode=scancode; in dn_keyb_process_key_event()
311 else if((scancode & (~BREAK_FLAG)) == DNKEY_CAPS) { in dn_keyb_process_key_event()
317 else if( (scancode == DNKEY_REPEAT) && (prev_scancode < 0x7e) && in dn_keyb_process_key_event()
329 handle_scancode(scancode & ~BREAK_FLAG, !(scancode & BREAK_FLAG)); in dn_keyb_process_key_event()
/linux-2.4.37.9/drivers/macintosh/
Dmac_hid.c318 int mac_hid_kbd_translate(unsigned char scancode, unsigned char *keycode, in mac_hid_kbd_translate() argument
327 switch (scancode) { in mac_hid_kbd_translate()
328 case 0x7b: scancode = 0x38; break; /* R-shift */ in mac_hid_kbd_translate()
329 case 0x7c: scancode = 0x3a; break; /* R-option */ in mac_hid_kbd_translate()
330 case 0x7d: scancode = 0x36; break; /* R-control */ in mac_hid_kbd_translate()
333 *keycode = scancode; in mac_hid_kbd_translate()
346 if (scancode == 0xe0 || scancode == 0xe1) { in mac_hid_kbd_translate()
347 prev_scancode = scancode; in mac_hid_kbd_translate()
351 scancode &= 0x7f; in mac_hid_kbd_translate()
355 if (prev_scancode == 0xe1 && scancode == 0x1d) { in mac_hid_kbd_translate()
[all …]
/linux-2.4.37.9/include/asm-sh/
Dkeyboard.h16 static __inline__ int kbd_setkeycode(unsigned int scancode, in kbd_setkeycode() argument
22 static __inline__ int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
24 return scancode > 127 ? -EINVAL : scancode; in kbd_getkeycode()
28 extern int kbd_translate(unsigned char scancode, unsigned char *keycode,
31 static __inline__ int kbd_translate(unsigned char scancode, in kbd_translate() argument
34 *keycode = scancode; in kbd_translate()
/linux-2.4.37.9/arch/m68k/atari/
Datakeyb.c323 int scancode; in keyboard_interrupt() local
343 scancode = acia.key_data; in keyboard_interrupt()
350 else if (IS_SYNC_CODE(scancode)) { in keyboard_interrupt()
366 scancode = acia.key_data; /* get it or reset the ACIA, I'll get it! */ in keyboard_interrupt()
372 switch (scancode) in keyboard_interrupt()
385 kb_state.buf[0] = scancode; in keyboard_interrupt()
397 kb_state.buf[0] = scancode; in keyboard_interrupt()
410 break_flag = scancode & BREAK_MASK; in keyboard_interrupt()
411 scancode &= ~BREAK_MASK; in keyboard_interrupt()
420 int keyval = plain_map[scancode], keytyp; in keyboard_interrupt()
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Dpcikbd.c239 int pcikbd_setkeycode(unsigned int scancode, unsigned int keycode) in pcikbd_setkeycode() argument
241 if(scancode < SC_LIM || scancode > 255 || keycode > 127) in pcikbd_setkeycode()
243 if(scancode < 128) in pcikbd_setkeycode()
244 high_keys[scancode - SC_LIM] = keycode; in pcikbd_setkeycode()
246 e0_keys[scancode - 128] = keycode; in pcikbd_setkeycode()
250 int pcikbd_getkeycode(unsigned int scancode) in pcikbd_getkeycode() argument
253 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pcikbd_getkeycode()
254 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pcikbd_getkeycode()
255 e0_keys[scancode - 128]; in pcikbd_getkeycode()
258 static int do_acknowledge(unsigned char scancode) in do_acknowledge() argument
[all …]
/linux-2.4.37.9/include/asm-m68k/
Dkeyboard.h24 static __inline__ int kbd_setkeycode(unsigned int scancode, in kbd_setkeycode() argument
29 return q40kbd_setkeycode(scancode,keycode); in kbd_setkeycode()
34 static __inline__ int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
38 return q40kbd_getkeycode(scancode); in kbd_getkeycode()
40 return scancode > 127 ? -EINVAL : scancode; in kbd_getkeycode()
Dq40_keyboard.h15 extern int q40kbd_setkeycode(unsigned int scancode, unsigned int keycode);
16 extern int q40kbd_getkeycode(unsigned int scancode);
17 extern int q40kbd_pretranslate(unsigned char scancode, char raw_mode);
18 extern int q40kbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-mips/
Dkeyboard.h23 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
24 extern int pckbd_getkeycode(unsigned int scancode);
25 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
81 extern int kbd_setkeycode(unsigned int scancode, unsigned int keycode);
82 extern int kbd_getkeycode(unsigned int scancode);
83 extern int kbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-mips64/
Dkeyboard.h23 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
24 extern int pckbd_getkeycode(unsigned int scancode);
25 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
81 extern int kbd_setkeycode(unsigned int scancode, unsigned int keycode);
82 extern int kbd_getkeycode(unsigned int scancode);
83 extern int kbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-ia64/
Dkeyboard.h20 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
21 extern int pckbd_getkeycode(unsigned int scancode);
22 extern int pckbd_pretranslate(unsigned char scancode, char raw_mode);
23 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-ppc64/
Dkeyboard.h35 static inline int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
38 return ppc_md.kbd_setkeycode(scancode, keycode); in kbd_setkeycode()
43 static inline int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
46 return ppc_md.kbd_getkeycode(scancode); in kbd_getkeycode()
/linux-2.4.37.9/include/asm-ppc/
Dkeyboard.h36 static inline int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
39 return ppc_md.kbd_setkeycode(scancode, keycode); in kbd_setkeycode()
44 static inline int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
47 return ppc_md.kbd_getkeycode(scancode); in kbd_getkeycode()
/linux-2.4.37.9/include/asm-sparc64/
Dkeyboard.h22 extern int pcikbd_setkeycode(unsigned int scancode, unsigned int keycode);
23 extern int pcikbd_getkeycode(unsigned int scancode);
24 extern int pcikbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-arm/arch-shark/
Dkeyboard.h21 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
22 extern int pckbd_getkeycode(unsigned int scancode);
23 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-arm/arch-ebsa285/
Dkeyboard.h20 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
21 extern int pckbd_getkeycode(unsigned int scancode);
22 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
/linux-2.4.37.9/include/asm-alpha/
Dkeyboard.h24 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
25 extern int pckbd_getkeycode(unsigned int scancode);
26 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,

123