/linux/drivers/tty/vt/ |
H A D | defkeymap.map | 7 # altgr control keycode 83 = Boot 8 # altgr control keycode 111 = Boot 13 # keycode 100 = Alt 15 keycode 1 = Escape Escape 16 alt keycode 1 = Meta_Escape 17 keycode 2 = one exclam 18 alt keycode 2 = Meta_one 19 keycode 3 = two at at 20 control keycode 3 = nul 21 shift control keycode 3 = nul [all …]
|
/linux/drivers/s390/char/ |
H A D | defkeymap.map | 5 keycode 0 = nul Oslash 6 keycode 1 = nul a 7 keycode 2 = nul b 8 keycode 3 = nul c 9 keycode 4 = nul d 10 keycode 5 = nul e 11 keycode 6 = nul f 12 keycode 7 = nul g 13 keycode 8 = nul h 14 keycode 9 = nul i [all …]
|
/linux/arch/m68k/hp300/ |
H A D | hp300map.map | 6 # altgr control keycode 83 = Boot 7 # altgr control keycode 111 = Boot 12 # keycode 100 = Alt 14 keycode 1 = 15 keycode 2 = Alt 16 keycode 3 = Alt 17 keycode 4 = Shift 18 keycode 5 = Shift 19 keycode 6 = Control 20 keycode 7 = [all …]
|
/linux/drivers/input/ |
H A D | sparse-keymap.c | 28 for (key = dev->keycode; key->type != KE_END; key++) { in sparse_keymap_get_key_index() 45 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_by_index() 66 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_from_scancode() 83 unsigned int keycode) in sparse_keymap_entry_from_keycode() argument 87 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_from_keycode() 88 if (key->type == KE_KEY && keycode == key->keycode) in sparse_keymap_entry_from_keycode() 116 if (dev->keycode) { in sparse_keymap_getkeycode() 119 ke->keycode = key->keycode; in sparse_keymap_getkeycode() 138 if (dev->keycode) { in sparse_keymap_setkeycode() 141 *old_keycode = key->keycode; in sparse_keymap_setkeycode() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | maple_keyb.c | 28 unsigned short keycode[NR_SCANCODES]; member 85 int code, keycode; in dc_scan_kbd() local 90 keycode = kbd->keycode[code]; in dc_scan_kbd() 92 input_report_key(dev, keycode, (kbd->new[0] >> i) & 1); in dc_scan_kbd() 99 keycode = kbd->keycode[code]; in dc_scan_kbd() 100 if (keycode) { in dc_scan_kbd() 102 input_report_key(dev, keycode, 0); in dc_scan_kbd() 111 keycode = kbd->keycode[code]; in dc_scan_kbd() 112 if (keycode) { in dc_scan_kbd() 114 input_report_key(dev, keycode, 1); in dc_scan_kbd() [all …]
|
H A D | adc-keys.c | 21 u32 keycode; member 37 int keycode = 0; in adc_keys_poll() local 48 keycode = st->map[i].keycode; in adc_keys_poll() 54 keycode = 0; in adc_keys_poll() 56 if (st->last_key && st->last_key != keycode) in adc_keys_poll() 59 if (keycode) in adc_keys_poll() 60 input_report_key(input, keycode, 1); in adc_keys_poll() 63 st->last_key = keycode; in adc_keys_poll() 91 &map[i].keycode)) { in adc_keys_load_keymap() 161 __set_bit(st->map[i].keycode, input->keybit); in adc_keys_probe()
|
H A D | pxa27x_keypad.c | 254 unsigned short keycode; in pxa27x_keypad_rotary_parse_dt() local 256 keycode = code & 0xffff; in pxa27x_keypad_rotary_parse_dt() 257 keypad->keycodes[n] = keycode; in pxa27x_keypad_rotary_parse_dt() 258 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_rotary_parse_dt() 260 keycode = code >> 16; in pxa27x_keypad_rotary_parse_dt() 261 keypad->keycodes[n + 1] = keycode; in pxa27x_keypad_rotary_parse_dt() 262 __set_bit(keycode, input_dev->keybit); in pxa27x_keypad_rotary_parse_dt() 345 unsigned short keycode; in pxa27x_keypad_build_keycode() local 364 keycode = pdata->direct_key_map[i]; in pxa27x_keypad_build_keycode() 365 keypad->keycodes[MAX_MATRIX_KEY_NUM + i] = keycode; in pxa27x_keypad_build_keycode() [all …]
|
H A D | xtkbd.c | 38 unsigned char keycode[256]; member 55 if (xtkbd->keycode[data & XTKBD_KEY]) { in xtkbd_interrupt() 56 input_report_key(xtkbd->dev, xtkbd->keycode[data & XTKBD_KEY], !(data & XTKBD_RELEASE)); in xtkbd_interrupt() 81 memcpy(xtkbd->keycode, xtkbd_keycode, sizeof(xtkbd->keycode)); in xtkbd_connect() 92 input_dev->keycode = xtkbd->keycode; in xtkbd_connect() 97 set_bit(xtkbd->keycode[i], input_dev->keybit); in xtkbd_connect()
|
H A D | iqs62x-keys.c | 40 unsigned int keycode[IQS62X_NUM_KEYS]; member 62 iqs62x_keys->keycode, in iqs62x_keys_parse_prop() 117 if (iqs62x_keys->keycode[i] == KEY_RESERVED) in iqs62x_keys_init() 163 if (iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_UP] != KEY_RESERVED) in iqs62x_keys_init() 166 if (iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_DN] != KEY_RESERVED) in iqs62x_keys_init() 210 input_report_key(iqs62x_keys->input, iqs62x_keys->keycode[i], in iqs62x_keys_notifier() 232 iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_UP], in iqs62x_keys_notifier() 237 iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_DN], in iqs62x_keys_notifier() 270 input->keycode = iqs62x_keys->keycode; in iqs62x_keys_probe() 271 input->keycodesize = sizeof(*iqs62x_keys->keycode); in iqs62x_keys_probe() [all …]
|
H A D | lkkbd.c | 262 unsigned short keycode[LK_NUM_KEYCODES]; member 352 lk->keycode[0xb1] = KEY_COMPOSE; in lkkbd_detection_done() 362 lk->keycode[0xb1] = KEY_LEFTALT; in lkkbd_detection_done() 416 lk->id[3], lk->keycode[lk->id[3]]); in lkkbd_detection_done() 428 unsigned int keycode; in lkkbd_interrupt() local 446 input_report_key(input_dev, lk->keycode[i], 0); in lkkbd_interrupt() 470 keycode = lk->keycode[data]; in lkkbd_interrupt() 471 if (keycode != KEY_RESERVED) { in lkkbd_interrupt() 472 input_report_key(input_dev, keycode, in lkkbd_interrupt() 473 !test_bit(keycode, input_dev->key)); in lkkbd_interrupt() [all …]
|
H A D | newtonkbd.c | 41 unsigned char keycode[128]; member 53 if (nkbd->keycode[data & NKBD_KEY]) { in nkbd_interrupt() 54 input_report_key(nkbd->dev, nkbd->keycode[data & NKBD_KEY], data & NKBD_PRESS); in nkbd_interrupt() 79 memcpy(nkbd->keycode, nkbd_keycode, sizeof(nkbd->keycode)); in nkbd_connect() 90 input_dev->keycode = nkbd->keycode; in nkbd_connect() 94 set_bit(nkbd->keycode[i], input_dev->keybit); in nkbd_connect()
|
H A D | atkbd.c | 186 unsigned short keycode; member 212 unsigned short keycode[ATKBD_KEYMAP_SIZE]; member 450 unsigned short keycode; in atkbd_receive_byte() local 507 keycode = atkbd->keycode[code]; in atkbd_receive_byte() 510 if (keycode != ATKBD_KEY_NULL) in atkbd_receive_byte() 513 switch (keycode) { in atkbd_receive_byte() 552 } else if (!atkbd->softrepeat && test_bit(keycode, dev->key)) { in atkbd_receive_byte() 561 input_event(dev, EV_KEY, keycode, value); in atkbd_receive_byte() 566 input_report_key(dev, keycode, 0); in atkbd_receive_byte() 1092 u16 scancode, keycode; in atkbd_get_keymap_from_fwnode() local [all …]
|
H A D | stowaway.c | 47 unsigned char keycode[128]; member 59 if (skbd->keycode[data & SKBD_KEY_MASK]) { in skbd_interrupt() 60 input_report_key(dev, skbd->keycode[data & SKBD_KEY_MASK], in skbd_interrupt() 83 memcpy(skbd->keycode, skbd_keycode, sizeof(skbd->keycode)); in skbd_connect() 94 input_dev->keycode = skbd->keycode; in skbd_connect()
|
H A D | adp5520-keys.c | 20 unsigned short keycode[ADP5520_KEYMAPSIZE]; member 30 input_report_key(dev->input, dev->keycode[i], value); in adp5520_keys_report_event() 114 input->keycodesize = sizeof(dev->keycode[0]); in adp5520_keys_probe() 116 input->keycode = dev->keycode; in adp5520_keys_probe() 118 memcpy(dev->keycode, pdata->keymap, in adp5520_keys_probe() 128 __set_bit(dev->keycode[i], input->keybit); in adp5520_keys_probe()
|
H A D | imx-sm-bbm-key.c | 23 int keycode; member 50 input_event(input, EV_KEY, bbnsm->keycode, state); in scmi_imx_bbm_pwrkey_check_for_events() 53 pr_debug("EV_KEY: %x\n", bbnsm->keycode); in scmi_imx_bbm_pwrkey_check_for_events() 73 input_event(input, EV_KEY, bbnsm->keycode, 1); in scmi_imx_bbm_pwrkey_event() 114 if (device_property_read_u32(dev, "linux,code", &bbnsm->keycode)) { in scmi_imx_bbm_pwrkey_init() 115 bbnsm->keycode = KEY_POWER; in scmi_imx_bbm_pwrkey_init() 131 input_set_capability(input, EV_KEY, bbnsm->keycode); in scmi_imx_bbm_pwrkey_init()
|
H A D | snvs_pwrkey.c | 37 int keycode; member 57 input_event(input, EV_KEY, pdata->keycode, state); in imx_imx_snvs_check_for_events() 86 input_report_key(input, pdata->keycode, 1); in imx_snvs_pwrkey_interrupt() 88 input_report_key(input, pdata->keycode, 0); in imx_snvs_pwrkey_interrupt() 134 if (of_property_read_u32(np, "linux,keycode", &pdata->keycode)) { in imx_snvs_pwrkey_probe() 135 pdata->keycode = KEY_POWER; in imx_snvs_pwrkey_probe() 171 input_set_capability(input, EV_KEY, pdata->keycode); in imx_snvs_pwrkey_probe()
|
/linux/drivers/media/firewire/ |
H A D | firedtv-rc.c | 138 idev->keycode = kmemdup(keytable, sizeof(keytable), GFP_KERNEL); in fdtv_register_rc() 139 if (!idev->keycode) { in fdtv_register_rc() 156 kfree(idev->keycode); in fdtv_register_rc() 165 kfree(fdtv->remote_ctrl_dev->keycode); in fdtv_unregister_rc() 172 u16 *keycode = idev->keycode; in fdtv_handle_rc() local 175 code = keycode[code - 0x0300]; in fdtv_handle_rc() 177 code = keycode[code - 0x0320]; in fdtv_handle_rc()
|
/linux/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-remote.c | 34 if (keymap[index].keycode == KEY_RESERVED || in legacy_dvb_usb_get_keymap_index() 35 keymap[index].keycode == KEY_UNKNOWN) { in legacy_dvb_usb_get_keymap_index() 57 ke->keycode = keymap[index].keycode; in legacy_dvb_usb_getkeycode() 58 if (ke->keycode == KEY_UNKNOWN) in legacy_dvb_usb_getkeycode() 59 ke->keycode = KEY_RESERVED; in legacy_dvb_usb_getkeycode() 87 *old_keycode = keymap[index].keycode; in legacy_dvb_usb_setkeycode() 88 keymap->keycode = ke->keycode; in legacy_dvb_usb_setkeycode() 89 __set_bit(ke->keycode, dev->keybit); in legacy_dvb_usb_setkeycode() 94 if (keymap[index].keycode == *old_keycode) { in legacy_dvb_usb_setkeycode() 214 d->props.rc.legacy.rc_map_table[i].keycode, i); in legacy_dvb_usb_remote_init() [all …]
|
/linux/drivers/macintosh/ |
H A D | adbhid.c | 217 u16 *keycode; member 288 int keycode, up_flag, key; in adbhid_input_keycode() local 290 keycode = scancode & 0x7f; in adbhid_input_keycode() 294 if (keycode == ADB_KEY_CAPSLOCK && !up_flag) { in adbhid_input_keycode() 312 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() [all …]
|
/linux/Documentation/input/ |
H A D | notifier.rst | 15 - KBD_KEYCODE events are always sent before other events, value is the keycode. 16 - KBD_UNBOUND_KEYCODE events are sent if the keycode is not bound to a keysym. 17 value is the keycode. 18 - KBD_UNICODE events are sent if the keycode -> keysym translation produced a 20 - KBD_KEYSYM events are sent if the keycode -> keysym translation produced a 31 kbd_keycode(keycode) { 33 params.value = keycode;
|
/linux/Documentation/userspace-api/media/rc/ |
H A D | keytable.c.rst | 70 " %s <device> <scancode> <keycode>\\n" 105 char *scancode, *keycode, s[2048]; 109 perror ("opening keycode file"); 136 keycode=strtok(NULL,"\\n\\t =:("); 137 if (!keycode) { 138 perror ("parsing input file keycode"); 142 // printf ("parsing %s=%s:", scancode, keycode); 143 value=parse_code(keycode); 147 value = strtol(keycode, NULL, 0);
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-wmi-base.c | 191 u16 keycode; member 422 if ((key->keycode == KEY_BRIGHTNESSUP || in dell_wmi_process_key() 423 key->keycode == KEY_BRIGHTNESSDOWN) && in dell_wmi_process_key() 430 if (key->keycode == KEY_KBDILLUMTOGGLE) { in dell_wmi_process_key() 588 u16 keycode = (bios_entry->keycode < in handle_dmi_entry() local 590 bios_to_linux_keycode[bios_entry->keycode] : in handle_dmi_entry() 591 (bios_entry->keycode == 0xffff ? KEY_UNKNOWN : KEY_RESERVED); in handle_dmi_entry() 598 if (keycode == KEY_RESERVED) { in handle_dmi_entry() 600 bios_entry->scancode, bios_entry->keycode); in handle_dmi_entry() 604 if (keycode == KEY_KBDILLUMTOGGLE) in handle_dmi_entry() [all …]
|
/linux/sound/usb/caiaq/ |
H A D | input.c | 294 unsigned short *keycode = input_dev->keycode; in snd_caiaq_input_read_io() local 297 if (!keycode) in snd_caiaq_input_read_io() 305 input_report_key(input_dev, keycode[i], in snd_caiaq_input_read_io() 612 BUILD_BUG_ON(sizeof(cdev->keycode) < sizeof(keycode_rk2)); in snd_usb_caiaq_input_init() 613 memcpy(cdev->keycode, keycode_rk2, sizeof(keycode_rk2)); in snd_usb_caiaq_input_init() 624 BUILD_BUG_ON(sizeof(cdev->keycode) < sizeof(keycode_rk3)); in snd_usb_caiaq_input_init() 625 memcpy(cdev->keycode, keycode_rk3, sizeof(keycode_rk3)); in snd_usb_caiaq_input_init() 635 BUILD_BUG_ON(sizeof(cdev->keycode) < sizeof(keycode_ak1)); in snd_usb_caiaq_input_init() 636 memcpy(cdev->keycode, keycode_ak1, sizeof(keycode_ak1)); in snd_usb_caiaq_input_init() 651 BUILD_BUG_ON(sizeof(cdev->keycode) < sizeof(keycode_kore)); in snd_usb_caiaq_input_init() [all …]
|
/linux/drivers/input/misc/ |
H A D | ati_remote2.c | 132 u16 keycode; member 199 u16 keycode[ATI_REMOTE2_MODES][ARRAY_SIZE(ati_remote2_key_table)]; member 384 if (ar2->keycode[mode][index] == BTN_LEFT || in ati_remote2_input_key() 385 ar2->keycode[mode][index] == BTN_RIGHT) in ati_remote2_input_key() 400 input_event(idev, EV_KEY, ar2->keycode[mode][index], data[1]); in ati_remote2_input_key() 495 ke->keycode = ar2->keycode[mode][offset]; in ati_remote2_getkeycode() 533 *old_keycode = ar2->keycode[mode][offset]; in ati_remote2_setkeycode() 534 ar2->keycode[mode][offset] = ke->keycode; in ati_remote2_setkeycode() 535 __set_bit(ke->keycode, idev->keybit); in ati_remote2_setkeycode() 539 if (ar2->keycode[mode][index] == *old_keycode) in ati_remote2_setkeycode() [all …]
|
H A D | nxp-bbnsm-pwrkey.c | 39 int keycode; member 59 input_event(input, EV_KEY, bbnsm->keycode, state); in bbnsm_pwrkey_check_for_events() 89 input_event(input, EV_KEY, bbnsm->keycode, 1); in bbnsm_pwrkey_interrupt() 129 &bbnsm->keycode)) { in bbnsm_pwrkey_probe() 130 bbnsm->keycode = KEY_POWER; in bbnsm_pwrkey_probe() 157 input_set_capability(input, EV_KEY, bbnsm->keycode); in bbnsm_pwrkey_probe()
|