Home
last modified time | relevance | path

Searched refs:keycode (Results 1 – 25 of 154) sorted by relevance

1234567

/linux-6.1.9/drivers/tty/vt/
Ddefkeymap.map7 # 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-6.1.9/drivers/s390/char/
Ddefkeymap.map5 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-6.1.9/arch/m68k/hp300/
Dhp300map.map6 # 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-6.1.9/drivers/input/
Dsparse-keymap.c28 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-6.1.9/drivers/input/keyboard/
Dmaple_keyb.c28 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 …]
Dadc-keys.c21 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()
Dpxa27x_keypad.c254 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 …]
Dxtkbd.c38 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()
Diqs62x-keys.c40 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 …]
Dlkkbd.c262 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 …]
Dnewtonkbd.c41 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()
Datkbd.c186 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()
1031 u16 scancode, keycode; in atkbd_get_keymap_from_fwnode() local
[all …]
Dstowaway.c47 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()
Dadp5520-keys.c20 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()
Dsnvs_pwrkey.c37 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()
Dsunkbd.c57 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()
/linux-6.1.9/drivers/media/firewire/
Dfiredtv-rc.c138 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-6.1.9/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c34 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-6.1.9/drivers/macintosh/
Dadbhid.c217 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-6.1.9/Documentation/input/
Dnotifier.rst15 - 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-6.1.9/drivers/input/misc/
Ddm355evm_keys.c104 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()
Dati_remote2.c132 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 …]
/linux-6.1.9/Documentation/userspace-api/media/rc/
Dkeytable.c.rst70 " %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-6.1.9/drivers/platform/x86/dell/
Ddell-wmi-base.c185 u16 keycode; member
404 if ((key->keycode == KEY_BRIGHTNESSUP || in dell_wmi_process_key()
405 key->keycode == KEY_BRIGHTNESSDOWN) && in dell_wmi_process_key()
412 if (key->keycode == KEY_KBDILLUMTOGGLE) { in dell_wmi_process_key()
570 u16 keycode = (bios_entry->keycode < in handle_dmi_entry() local
572 bios_to_linux_keycode[bios_entry->keycode] : in handle_dmi_entry()
573 (bios_entry->keycode == 0xffff ? KEY_UNKNOWN : KEY_RESERVED); in handle_dmi_entry()
580 if (keycode == KEY_RESERVED) { in handle_dmi_entry()
582 bios_entry->scancode, bios_entry->keycode); in handle_dmi_entry()
586 if (keycode == KEY_KBDILLUMTOGGLE) in handle_dmi_entry()
[all …]
/linux-6.1.9/sound/usb/caiaq/
Dinput.c294 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 …]

1234567