Home
last modified time | relevance | path

Searched refs:keymap (Results 1 – 25 of 173) sorted by relevance

1234567

/linux-6.12.1/drivers/platform/x86/dell/
Ddell-wmi-base.c196 struct dell_bios_keymap_entry keymap[]; member
203 struct key_entry *keymap; member
536 static bool have_scancode(u32 scancode, const struct key_entry *keymap, int len) in have_scancode() argument
541 if (keymap[i].code == scancode) in have_scancode()
552 struct key_entry *keymap; in handle_dmi_entry() local
554 if (results->err || results->keymap) in handle_dmi_entry()
577 keymap = kcalloc(hotkey_num, sizeof(struct key_entry), GFP_KERNEL); in handle_dmi_entry()
578 if (!keymap) { in handle_dmi_entry()
585 &table->keymap[i]; in handle_dmi_entry()
605 keymap[pos].type = KE_IGNORE; in handle_dmi_entry()
[all …]
Ddell-wmi-privacy.c297 struct key_entry *keymap; in dell_privacy_wmi_probe() local
317 keymap = kcalloc(ARRAY_SIZE(dell_wmi_keymap_type_0012), in dell_privacy_wmi_probe()
319 if (!keymap) in dell_privacy_wmi_probe()
336 keymap[j] = dell_wmi_keymap_type_0012[i]; in dell_privacy_wmi_probe()
337 keymap[j].code |= (0x0012 << 16); in dell_privacy_wmi_probe()
340 ret = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_privacy_wmi_probe()
341 kfree(keymap); in dell_privacy_wmi_probe()
/linux-6.12.1/drivers/net/wireless/ath/
Dkey.c391 if (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot_tkip()
392 test_bit(i + 64, common->keymap)) in ath_reserve_key_cache_slot_tkip()
395 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot_tkip()
396 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot_tkip()
416 if (!test_bit(i, common->keymap) && in ath_reserve_key_cache_slot()
417 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot()
418 test_bit(i + 64, common->keymap) || in ath_reserve_key_cache_slot()
419 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot()
421 if (!test_bit(i + 32, common->keymap) && in ath_reserve_key_cache_slot()
422 (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot()
[all …]
/linux-6.12.1/drivers/input/
Dmatrix-keymap.c26 unsigned short *keymap = input_dev->keycode; in matrix_keypad_map_key() local
38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
146 unsigned short *keymap, in matrix_keypad_build_keymap() argument
157 if (!keymap) { in matrix_keypad_build_keymap()
158 keymap = devm_kcalloc(input_dev->dev.parent, in matrix_keypad_build_keymap()
159 max_keys, sizeof(*keymap), in matrix_keypad_build_keymap()
161 if (!keymap) { in matrix_keypad_build_keymap()
168 input_dev->keycode = keymap; in matrix_keypad_build_keymap()
169 input_dev->keycodesize = sizeof(*keymap); in matrix_keypad_build_keymap()
176 unsigned int key = keymap_data->keymap[i]; in matrix_keypad_build_keymap()
/linux-6.12.1/drivers/input/misc/
Dcobalt_btns.c30 unsigned short keymap[ARRAY_SIZE(cobalt_map)]; member
43 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons()
47 input_report_key(input, bdev->keymap[i], 1); in handle_buttons()
53 input_report_key(input, bdev->keymap[i], 0); in handle_buttons()
80 memcpy(bdev->keymap, cobalt_map, sizeof(bdev->keymap)); in cobalt_buttons_probe()
92 input->keycode = bdev->keymap; in cobalt_buttons_probe()
93 input->keycodemax = ARRAY_SIZE(bdev->keymap); in cobalt_buttons_probe()
99 __set_bit(bdev->keymap[i], input->keybit); in cobalt_buttons_probe()
Dsgi_btns.c48 unsigned short keymap[ARRAY_SIZE(sgi_map)]; member
60 for (i = 0; i < ARRAY_SIZE(bdev->keymap); i++) { in handle_buttons()
64 input_report_key(input, bdev->keymap[i], 1); in handle_buttons()
70 input_report_key(input, bdev->keymap[i], 0); in handle_buttons()
92 memcpy(bdev->keymap, sgi_map, sizeof(bdev->keymap)); in sgi_buttons_probe()
100 input->keycode = bdev->keymap; in sgi_buttons_probe()
101 input->keycodemax = ARRAY_SIZE(bdev->keymap); in sgi_buttons_probe()
107 __set_bit(bdev->keymap[i], input->keybit); in sgi_buttons_probe()
Dmc13783-pwrbutton.c39 unsigned short keymap[3]; member
68 input_report_key(priv->pwr, priv->keymap[0], val); in button_irq()
75 input_report_key(priv->pwr, priv->keymap[1], val); in button_irq()
82 input_report_key(priv->pwr, priv->keymap[2], val); in button_irq()
129 priv->keymap[0] = pdata->b1on_key; in mc13783_pwrbutton_probe()
148 priv->keymap[1] = pdata->b2on_key; in mc13783_pwrbutton_probe()
167 priv->keymap[2] = pdata->b3on_key; in mc13783_pwrbutton_probe()
193 pwr->keycode = priv->keymap; in mc13783_pwrbutton_probe()
194 pwr->keycodemax = ARRAY_SIZE(priv->keymap); in mc13783_pwrbutton_probe()
195 pwr->keycodesize = sizeof(priv->keymap[0]); in mc13783_pwrbutton_probe()
Dapanel.c56 unsigned short keymap[MAX_PANEL_KEYS]; member
111 report_key(idev, ap->keymap[i]); in apanel_poll()
155 memcpy(ap->keymap, apanel_keymap, sizeof(apanel_keymap)); in apanel_probe()
156 idev->keycode = ap->keymap; in apanel_probe()
157 idev->keycodesize = sizeof(ap->keymap[0]); in apanel_probe()
162 if (ap->keymap[i]) in apanel_probe()
163 set_bit(ap->keymap[i], idev->keybit); in apanel_probe()
Dwistron_btns.c43 module_param_named(keymap, keymap_name, charp, 0);
44 MODULE_PARM_DESC(keymap, "Keymap name, if it can't be autodetected [generic, 1557/MS2141]");
223 static struct key_entry *keymap; /* = NULL; Current key map */ variable
232 keymap = dmi->driver_data; in dmi_matched()
233 for (key = keymap; key->type != KE_END; key++) { in dmi_matched()
990 for (key = keymap; key->type != KE_END; key++) in copy_keymap()
993 new_keymap = kmemdup_array(keymap, length, sizeof(struct key_entry), in copy_keymap()
998 keymap = new_keymap; in copy_keymap()
1008 keymap = keymap_wistron_ms2141; in select_keymap()
1010 keymap = keymap_aopen_1557; in select_keymap()
[all …]
Dcm109.c123 unsigned short keymap[KEYMAP_SIZE]; member
288 static unsigned short (*keymap)(int) = keymap_kip1000; variable
325 keycode = dev->keymap[0xff + BIT(i)]; in cm109_report_special()
396 report_key(dev, dev->keymap[dev->irq_data->byte[HID_IR1]]); in cm109_urb_irq_callback()
791 input_dev->keycode = dev->keymap; in cm109_usb_probe()
793 input_dev->keycodemax = ARRAY_SIZE(dev->keymap); in cm109_usb_probe()
800 unsigned short k = keymap(i); in cm109_usb_probe()
801 dev->keymap[i] = k; in cm109_usb_probe()
895 keymap = keymap_kip1000; in cm109_select_keymap()
899 keymap = keymap_gtalk; in cm109_select_keymap()
[all …]
/linux-6.12.1/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c14 struct rc_map_table *keymap, in legacy_dvb_usb_get_keymap_index() argument
28 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index()
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()
49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode() local
53 index = legacy_dvb_usb_get_keymap_index(ke, keymap, keymap_size); in legacy_dvb_usb_getkeycode()
57 ke->keycode = keymap[index].keycode; in legacy_dvb_usb_getkeycode()
60 ke->len = sizeof(keymap[index].scancode); in legacy_dvb_usb_getkeycode()
61 memcpy(&ke->scancode, &keymap[index].scancode, ke->len); in legacy_dvb_usb_getkeycode()
72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode() local
[all …]
/linux-6.12.1/drivers/input/keyboard/
Djornada680_kbd.c67 unsigned short keymap[ARRAY_SIZE(jornada_scancodes)]; member
76 unsigned short *keymap = jornadakbd->keymap; in jornada_parse_kbd() local
95 keymap[scancode], in jornada_parse_kbd()
197 memcpy(jornadakbd->keymap, jornada_scancodes, in jornada680kbd_probe()
198 sizeof(jornadakbd->keymap)); in jornada680kbd_probe()
204 input_dev->keycode = jornadakbd->keymap; in jornada680kbd_probe()
210 if (jornadakbd->keymap[i]) in jornada680kbd_probe()
211 __set_bit(jornadakbd->keymap[i], input_dev->keybit); in jornada680kbd_probe()
Djornada720_kbd.c48 unsigned short keymap[ARRAY_SIZE(jornada_std_keymap)]; member
76 input_report_key(input, jornadakbd->keymap[scan_code], in jornada720_kbd_interrupt()
105 memcpy(jornadakbd->keymap, jornada_std_keymap, in jornada720_kbd_probe()
112 input_dev->keycode = jornadakbd->keymap; in jornada720_kbd_probe()
118 for (i = 0; i < ARRAY_SIZE(jornadakbd->keymap); i++) in jornada720_kbd_probe()
119 __set_bit(jornadakbd->keymap[i], input_dev->keybit); in jornada720_kbd_probe()
/linux-6.12.1/drivers/input/joystick/
Dsensehat-joystick.c30 static const unsigned int keymap[] = { variable
50 ARRAY_SIZE(keymap)); in sensehat_joystick_report()
52 for_each_set_bit(i, &changes, ARRAY_SIZE(keymap)) in sensehat_joystick_report()
53 input_report_key(sensehat_joystick->keys_dev, keymap[i], in sensehat_joystick_report()
91 for (i = 0; i < ARRAY_SIZE(keymap); i++) in sensehat_joystick_probe()
92 __set_bit(keymap[i], sensehat_joystick->keys_dev->keybit); in sensehat_joystick_probe()
/linux-6.12.1/drivers/hid/
Dhid-creative-sb0540.c120 unsigned short keymap[ARRAY_SIZE(creative_sb0540_key_table)]; member
142 return creative_sb0540->keymap[i]; in get_key()
194 input_dev->keycode = creative_sb0540->keymap; in creative_sb0540_input_configured()
196 input_dev->keycodemax = ARRAY_SIZE(creative_sb0540->keymap); in creative_sb0540_input_configured()
200 memcpy(creative_sb0540->keymap, creative_sb0540_key_table, in creative_sb0540_input_configured()
201 sizeof(creative_sb0540->keymap)); in creative_sb0540_input_configured()
203 set_bit(creative_sb0540->keymap[i], input_dev->keybit); in creative_sb0540_input_configured()
Dhid-appleir.c110 unsigned short keymap[ARRAY_SIZE(appleir_key_table)]; member
212 appleir->current_key = appleir->keymap[index]; in appleir_raw_event()
260 input_dev->keycode = appleir->keymap; in appleir_input_configured()
262 input_dev->keycodemax = ARRAY_SIZE(appleir->keymap); in appleir_input_configured()
266 memcpy(appleir->keymap, appleir_key_table, sizeof(appleir->keymap)); in appleir_input_configured()
268 set_bit(appleir->keymap[i], input_dev->keybit); in appleir_input_configured()
/linux-6.12.1/Documentation/devicetree/bindings/input/
Dnvidia,tegra20-kbc.txt14 - linux,keymap: The keymap for keys as described in the binding document
15 devicetree/bindings/input/matrix-keymap.txt.
26 - linux,fn-keymap: a second keymap, same specification as the
48 linux,keymap = <0x00000074
Dst-keyscan.txt4 matrix-keymap.
19 - linux,keymap: The keymap for keys as described in the binding document
20 devicetree/bindings/input/matrix-keymap.txt.
44 linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_F13)
Dlpc32xx-key.txt3 This binding is based on the matrix-keymap binding with the following
14 - linux,keymap: the key-code to be reported when the key is pressed
16 Documentation/devicetree/bindings/input/matrix-keymap.txt
33 linux,keymap = <0x00000002>;
Dclps711x-keypad.txt7 - linux,keymap: The definition can be found at
8 bindings/input/matrix-keymap.txt.
21 linux,keymap = <
/linux-6.12.1/drivers/platform/x86/
Dfujitsu-tablet.c39 unsigned short keymap[KEYMAP_LEN]; member
240 idev->keycode = fujitsu.config.keymap; in input_fujitsu_setup()
241 idev->keycodesize = sizeof(fujitsu.config.keymap[0]); in input_fujitsu_setup()
242 idev->keycodemax = ARRAY_SIZE(fujitsu.config.keymap); in input_fujitsu_setup()
246 for (i = 0; i < ARRAY_SIZE(fujitsu.config.keymap); i++) in input_fujitsu_setup()
247 if (fujitsu.config.keymap[i]) in input_fujitsu_setup()
248 input_set_capability(idev, EV_KEY, fujitsu.config.keymap[i]); in input_fujitsu_setup()
291 keycode = fujitsu.config.keymap[i]; in fujitsu_interrupt()
309 memcpy(fujitsu.config.keymap, dmi->driver_data, in fujitsu_dmi_common()
310 sizeof(fujitsu.config.keymap)); in fujitsu_dmi_common()
/linux-6.12.1/Documentation/driver-api/
Dinput.rst34 Sparse keymap support
37 .. kernel-doc:: include/linux/input/sparse-keymap.h
40 .. kernel-doc:: drivers/input/sparse-keymap.c
/linux-6.12.1/sound/pci/hda/
Dhda_jack.h105 const struct hda_jack_keymap *keymap,
163 int type, const struct hda_jack_keymap *keymap);
180 int type, const struct hda_jack_keymap *keymap) in snd_hda_jack_add_kctl() argument
183 name, phantom_jack, type, keymap); in snd_hda_jack_add_kctl()
/linux-6.12.1/net/netfilter/
Dnf_conntrack_proto_gre.c97 kmp = &ct_pptp_info->keymap[dir]; in nf_ct_gre_keymap_add()
136 if (ct_pptp_info->keymap[dir]) { in nf_ct_gre_keymap_destroy()
138 ct_pptp_info->keymap[dir]); in nf_ct_gre_keymap_destroy()
139 list_del_rcu(&ct_pptp_info->keymap[dir]->list); in nf_ct_gre_keymap_destroy()
140 kfree_rcu(ct_pptp_info->keymap[dir], rcu); in nf_ct_gre_keymap_destroy()
141 ct_pptp_info->keymap[dir] = NULL; in nf_ct_gre_keymap_destroy()
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dtc3589x.txt51 bindings/input/matrix-keymap.txt
53 bindings/input/matrix-keymap.txt
54 - linux,keymap: the definition can be found in
55 bindings/input/matrix-keymap.txt
87 linux,keymap = <0x0301006b

1234567