• Home
  • Raw
  • Download

Lines Matching refs:keycode

216 	u16 *keycode;  member
287 int keycode, up_flag, key; in adbhid_input_keycode() local
289 keycode = scancode & 0x7f; in adbhid_input_keycode()
293 if (keycode == ADB_KEY_CAPSLOCK && !up_flag) { in adbhid_input_keycode()
311 keycode = ADB_KEY_CAPSLOCK; in adbhid_input_keycode()
328 switch (keycode) { in adbhid_input_keycode()
346 keycode = ADB_KEY_POWER; in adbhid_input_keycode()
358 keycode = ADB_KEY_CMD; in adbhid_input_keycode()
364 keycode = ADB_KEY_CMD; in adbhid_input_keycode()
375 keycode = ADB_KEY_FWDEL; in adbhid_input_keycode()
384 keycode = ADB_KEY_FWDEL; in adbhid_input_keycode()
394 key = adbhid[id]->keycode[keycode]; in adbhid_input_keycode()
399 printk(KERN_INFO "Unhandled ADB key (scancode %#02x) %s.\n", keycode, in adbhid_input_keycode()
791 hid->keycode = kmalloc(sizeof(adb_to_linux_keycodes), GFP_KERNEL); in adbhid_input_register()
792 if (!hid->keycode) { in adbhid_input_register()
799 memcpy(hid->keycode, adb_to_linux_keycodes, sizeof(adb_to_linux_keycodes)); in adbhid_input_register()
820 i = hid->keycode[10]; in adbhid_input_register()
821 hid->keycode[10] = hid->keycode[50]; in adbhid_input_register()
822 hid->keycode[50] = i; in adbhid_input_register()
833 if (hid->keycode[i]) in adbhid_input_register()
834 set_bit(hid->keycode[i], input_dev->keybit); in adbhid_input_register()
842 input_dev->keycodesize = sizeof(hid->keycode[0]); in adbhid_input_register()
891 input_dev->keycode = hid->keycode; in adbhid_input_register()
909 kfree(hid->keycode); in adbhid_input_register()
919 kfree(adbhid[id]->keycode); in adbhid_input_unregister()