Home
last modified time | relevance | path

Searched refs:SC_LIM (Results 1 – 5 of 5) sorted by relevance

/linux-2.4.37.9/drivers/char/
Dq40_keyb.c135 #define SC_LIM 89 macro
162 static unsigned char high_keys[128 - SC_LIM] = {
218 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in q40kbd_setkeycode()
221 high_keys[scancode - SC_LIM] = keycode; in q40kbd_setkeycode()
230 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in q40kbd_getkeycode()
231 (scancode < 128) ? high_keys[scancode - SC_LIM] : in q40kbd_getkeycode()
310 } else if (scancode >= SC_LIM) { in q40kbd_translate()
321 *keycode = high_keys[scancode - SC_LIM]; in q40kbd_translate()
341 if (keycode >= SC_LIM || keycode == 85) in q40kbd_unexpected_up()
Dhp_keyb.c254 #define SC_LIM 89 /* 0x59 == 89 */ macro
287 static unsigned char high_keys[128 - SC_LIM] = {
341 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in pckbd_setkeycode()
344 high_keys[scancode - SC_LIM] = keycode; in pckbd_setkeycode()
353 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pckbd_getkeycode()
354 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pckbd_getkeycode()
425 } else if (scancode >= SC_LIM) { in pckbd_translate()
436 *keycode = high_keys[scancode - SC_LIM]; in pckbd_translate()
Dpc_keyb.c185 #define SC_LIM 89 macro
212 static unsigned char high_keys[128 - SC_LIM] = {
266 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in pckbd_setkeycode()
269 high_keys[scancode - SC_LIM] = keycode; in pckbd_setkeycode()
278 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pckbd_getkeycode()
279 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pckbd_getkeycode()
377 } else if (scancode >= SC_LIM) { in pckbd_translate()
388 *keycode = high_keys[scancode - SC_LIM]; in pckbd_translate()
408 if (keycode >= SC_LIM || keycode == 85) in pckbd_unexpected_up()
/linux-2.4.37.9/drivers/sbus/char/
Dpcikbd.c136 #define SC_LIM 89 macro
163 static unsigned char high_keys[128 - SC_LIM] = {
241 if(scancode < SC_LIM || scancode > 255 || keycode > 127) in pcikbd_setkeycode()
244 high_keys[scancode - SC_LIM] = keycode; in pcikbd_setkeycode()
253 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in pcikbd_getkeycode()
254 (scancode < 128) ? high_keys[scancode - SC_LIM] : in pcikbd_getkeycode()
389 } else if(scancode >= SC_LIM) { in pcikbd_translate()
390 *keycode = high_keys[scancode - SC_LIM]; in pcikbd_translate()
413 if(keycode >= SC_LIM || keycode == 85) in pcikbd_unexpected_up()
Dsunkbd.c311 #define SC_LIM 89 macro
338 static unsigned char high_keys[128 - SC_LIM] = {
407 if (scancode < SC_LIM || scancode > 255 || keycode > 127) in sun_setkeycode()
410 high_keys[scancode - SC_LIM] = keycode; in sun_setkeycode()
419 (scancode < SC_LIM || scancode > 255) ? -EINVAL : in sun_getkeycode()
420 (scancode < 128) ? high_keys[scancode - SC_LIM] : in sun_getkeycode()