/drivers/tty/vt/ |
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 …]
|
D | keyboard.c | 205 .keycode = 0, in getkeycode() 214 return d.error ?: d.ke.keycode; in getkeycode() 226 static int setkeycode(unsigned int scancode, unsigned int keycode) in setkeycode() argument 232 .keycode = keycode, in setkeycode() 1312 static int emulate_raw(struct vc_data *vc, unsigned int keycode, in emulate_raw() argument 1317 switch (keycode) { in emulate_raw() 1354 if (keycode > 255) in emulate_raw() 1357 code = x86_keycodes[keycode]; in emulate_raw() 1378 static int emulate_raw(struct vc_data *vc, unsigned int keycode, unsigned char up_flag) in emulate_raw() argument 1380 if (keycode > 127) in emulate_raw() [all …]
|
/drivers/s390/char/ |
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 …]
|
/drivers/input/ |
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 …]
|
/drivers/input/keyboard/ |
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 …]
|
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() 93 &map[i].keycode)) { in adc_keys_load_keymap() 164 __set_bit(st->map[i].keycode, input->keybit); in adc_keys_probe()
|
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 …]
|
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 …]
|
D | iqs62x-keys.c | 40 unsigned int keycode[IQS62X_NUM_KEYS]; member 63 iqs62x_keys->keycode, in iqs62x_keys_parse_prop() 120 if (iqs62x_keys->keycode[i] == KEY_RESERVED) in iqs62x_keys_init() 166 if (iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_UP] != KEY_RESERVED) in iqs62x_keys_init() 169 if (iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_DN] != KEY_RESERVED) in iqs62x_keys_init() 213 input_report_key(iqs62x_keys->input, iqs62x_keys->keycode[i], in iqs62x_keys_notifier() 235 iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_UP], in iqs62x_keys_notifier() 240 iqs62x_keys->keycode[IQS62X_EVENT_WHEEL_DN], in iqs62x_keys_notifier() 273 input->keycode = iqs62x_keys->keycode; in iqs62x_keys_probe() 274 input->keycodesize = sizeof(*iqs62x_keys->keycode); in iqs62x_keys_probe() [all …]
|
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()
|
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()
|
D | atkbd.c | 186 unsigned short keycode; member 212 unsigned short keycode[ATKBD_KEYMAP_SIZE]; member 407 unsigned short keycode; in atkbd_interrupt() local 486 keycode = atkbd->keycode[code]; in atkbd_interrupt() 489 if (keycode != ATKBD_KEY_NULL) in atkbd_interrupt() 492 switch (keycode) { in atkbd_interrupt() 531 } else if (!atkbd->softrepeat && test_bit(keycode, dev->key)) { in atkbd_interrupt() 540 input_event(dev, EV_KEY, keycode, value); in atkbd_interrupt() 545 input_report_key(dev, keycode, 0); in atkbd_interrupt() 1074 u16 scancode, keycode; in atkbd_get_keymap_from_fwnode() local [all …]
|
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()
|
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()
|
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() 139 if (of_property_read_u32(np, "linux,keycode", &pdata->keycode)) { in imx_snvs_pwrkey_probe() 140 pdata->keycode = KEY_POWER; in imx_snvs_pwrkey_probe() 192 input_set_capability(input, EV_KEY, pdata->keycode); in imx_snvs_pwrkey_probe()
|
D | sunkbd.c | 57 unsigned char keycode[ARRAY_SIZE(sunkbd_keycode)]; member 115 if (sunkbd->keycode[data & SUNKBD_KEY]) { in sunkbd_interrupt() 117 sunkbd->keycode[data & SUNKBD_KEY], in sunkbd_interrupt() 290 memcpy(sunkbd->keycode, sunkbd_keycode, sizeof(sunkbd->keycode)); in sunkbd_connect() 310 input_dev->keycode = sunkbd->keycode; in sunkbd_connect() 314 __set_bit(sunkbd->keycode[i], input_dev->keybit); in sunkbd_connect()
|
D | locomokbd.c | 59 unsigned char keycode[LOCOMOKBD_NUMKEYS]; member 135 key = locomokbd->keycode[scancode]; in locomokbd_scankeyboard() 271 input_dev->keycode = locomokbd->keycode; in locomokbd_probe() 277 memcpy(locomokbd->keycode, locomokbd_keycode, sizeof(locomokbd->keycode)); in locomokbd_probe() 279 set_bit(locomokbd->keycode[i], input_dev->keybit); in locomokbd_probe()
|
D | sun4i-lradc-keys.c | 91 u32 keycode; member 111 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local 133 keycode = lradc->chan0_map[i].keycode; in sun4i_lradc_irq() 137 lradc->chan0_keycode = keycode; in sun4i_lradc_irq() 243 error = of_property_read_u32(pp, "linux,code", &map->keycode); in sun4i_lradc_load_dt_keymap() 306 __set_bit(lradc->chan0_map[i].keycode, lradc->input->keybit); in sun4i_lradc_probe()
|
/drivers/media/firewire/ |
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()
|
/drivers/media/usb/dvb-usb/ |
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 …]
|
/drivers/macintosh/ |
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 …]
|
/drivers/input/misc/ |
D | dm355evm_keys.c | 104 unsigned int keycode; in dm355evm_keys_irq() local 153 keycode = ke ? ke->keycode : KEY_UNKNOWN; in dm355evm_keys_irq() 156 event, keycode); in dm355evm_keys_irq() 159 input_report_key(keys->input, keycode, 1); in dm355evm_keys_irq() 161 input_report_key(keys->input, keycode, 0); in dm355evm_keys_irq()
|
D | ati_remote2.c | 132 u16 keycode; member 199 u16 keycode[ATI_REMOTE2_MODES][ARRAY_SIZE(ati_remote2_key_table)]; member 403 if (ar2->keycode[mode][index] == BTN_LEFT || in ati_remote2_input_key() 404 ar2->keycode[mode][index] == BTN_RIGHT) in ati_remote2_input_key() 419 input_event(idev, EV_KEY, ar2->keycode[mode][index], data[1]); in ati_remote2_input_key() 514 ke->keycode = ar2->keycode[mode][offset]; in ati_remote2_getkeycode() 552 *old_keycode = ar2->keycode[mode][offset]; in ati_remote2_setkeycode() 553 ar2->keycode[mode][offset] = ke->keycode; in ati_remote2_setkeycode() 554 __set_bit(ke->keycode, idev->keybit); in ati_remote2_setkeycode() 558 if (ar2->keycode[mode][index] == *old_keycode) in ati_remote2_setkeycode() [all …]
|
/drivers/platform/x86/dell/ |
D | dell-wmi-base.c | 185 u16 keycode; member 407 if ((key->keycode == KEY_BRIGHTNESSUP || in dell_wmi_process_key() 408 key->keycode == KEY_BRIGHTNESSDOWN) && in dell_wmi_process_key() 415 if (key->keycode == KEY_KBDILLUMTOGGLE) { in dell_wmi_process_key() 573 u16 keycode = (bios_entry->keycode < in handle_dmi_entry() local 575 bios_to_linux_keycode[bios_entry->keycode] : in handle_dmi_entry() 576 (bios_entry->keycode == 0xffff ? KEY_UNKNOWN : KEY_RESERVED); in handle_dmi_entry() 583 if (keycode == KEY_RESERVED) { in handle_dmi_entry() 585 bios_entry->scancode, bios_entry->keycode); in handle_dmi_entry() 589 if (keycode == KEY_KBDILLUMTOGGLE) in handle_dmi_entry() [all …]
|
/drivers/media/rc/ |
D | rc-main.c | 318 int old_keycode = rc_map->scan[index].keycode; in ir_update_mapping() 333 rc_map->scan[index].keycode = new_keycode; in ir_update_mapping() 342 if (rc_map->scan[i].keycode == old_keycode) { in ir_update_mapping() 408 rc_map->scan[i].keycode = KEY_RESERVED; in ir_establish_scancode() 455 *old_keycode = ir_update_mapping(rdev, rc_map, index, ke->keycode); in ir_setkeycode() 491 from->scan[i].keycode); in ir_setkeytable() 571 ke->keycode = entry->keycode; in ir_getkeycode() 581 ke->keycode = KEY_RESERVED; in ir_getkeycode() 608 unsigned int keycode; in rc_g_keycode_from_table() local 615 keycode = index < rc_map->len ? in rc_g_keycode_from_table() [all …]
|