Home
last modified time | relevance | path

Searched full:keymap (Results 1 – 25 of 222) sorted by relevance

123456789

/linux/drivers/input/
H A Dmatrix-keymap.c26 unsigned short *keymap = input_dev->keycode; in matrix_keypad_map_key() local
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", in matrix_keypad_map_key()
38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
81 propname = "linux,keymap"; in matrix_keypad_parse_keymap()
117 * matrix_keypad_build_keymap - convert platform keymap into matrix keymap
118 * @keymap_data: keymap supplied by the platform code
119 * @keymap_name: name of device tree property containing keymap (if device
121 * @rows: number of rows in target keymap array
122 * @cols: number of cols in target keymap array
123 * @keymap: expanded version of keymap that is suitable for use by
[all …]
/linux/drivers/net/wireless/ath/
H A 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/drivers/input/misc/
H A 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()
H A 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()
H A Dmc13783-pwrbutton.c39 unsigned short keymap[3]; member
67 input_report_key(priv->pwr, priv->keymap[0], val); in button_irq()
74 input_report_key(priv->pwr, priv->keymap[1], val); in button_irq()
81 input_report_key(priv->pwr, priv->keymap[2], val); in button_irq()
128 priv->keymap[0] = pdata->b1on_key; in mc13783_pwrbutton_probe()
147 priv->keymap[1] = pdata->b2on_key; in mc13783_pwrbutton_probe()
166 priv->keymap[2] = pdata->b3on_key; in mc13783_pwrbutton_probe()
192 pwr->keycode = priv->keymap; in mc13783_pwrbutton_probe()
193 pwr->keycodemax = ARRAY_SIZE(priv->keymap); in mc13783_pwrbutton_probe()
194 pwr->keycodesize = sizeof(priv->keymap[0]); in mc13783_pwrbutton_probe()
H A Dcm109.c21 * - Shaun Jackman <sjackman@gmail.com> for Genius G-talk keymap
123 unsigned short keymap[KEYMAP_SIZE]; member
229 * Keymap for Allied-Telesis Corega USBPH01
258 * Keymap for ATCom AU-100
288 static unsigned short (*keymap)(int) = keymap_kip1000; variable
325 keycode = dev->keymap[0xff + BIT(i)]; in cm109_report_special()
423 report_key(dev, dev->keymap[dev->irq_data->byte[HID_IR1]]); in cm109_urb_irq_callback()
782 input_dev->keycode = dev->keymap; in cm109_usb_probe()
784 input_dev->keycodemax = ARRAY_SIZE(dev->keymap); in cm109_usb_probe()
791 unsigned short k = keymap(i); in cm109_usb_probe()
[all …]
/linux/include/linux/input/
H A Dmatrix_keypad.h24 * struct matrix_keymap_data - keymap for matrix keyboards
25 * @keymap: pointer to array of uint32 values encoded with KEY() macro
26 * representing keymap
27 * @keymap_size: number of entries (initialized) in this keymap
33 const uint32_t *keymap; member
40 unsigned short *keymap,
H A Dsparse-keymap.h9 #define KE_END 0 /* Indicates end of keymap */
17 * struct key_entry - keymap entry for use in sparse keymap
29 * This structure defines an entry in a sparse keymap used by some
50 const struct key_entry *keymap,
/linux/Documentation/devicetree/bindings/input/
H A 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
H A 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)
H A Dgoogle,cros-ec-keyb.yaml48 function-row-physmap: [ 'linux,keymap' ]
49 google,needs-ghost-filter: [ 'linux,keymap' ]
60 $ref: /schemas/input/matrix-keymap.yaml#
64 - linux,keymap
89 * Keymap entries take the form of 0xRRCCKKKK where
95 linux,keymap = <
H A Dclps711x-keypad.txt7 - linux,keymap: The definition can be found at
8 bindings/input/matrix-keymap.txt.
21 linux,keymap = <
H A Dbrcm,bcm-keypad.txt9 This binding is based on the matrix-keymap binding with the following
61 - linux,keymap: The keymap for keys as described in the binding document
62 devicetree/bindings/input/matrix-keymap.txt.
76 linux,keymap = <MATRIX_KEY(0x00, 0x02, KEY_F) /* key_forward */
H A Dadi,adp5588.yaml17 - $ref: matrix-keymap.yaml#
73 - linux,keymap
76 - linux,keymap
78 linux,keymap:
111 linux,keymap = <
H A Dti,twl4030-keypad.yaml20 - $ref: matrix-keymap.yaml#
34 - linux,keymap
47 linux,keymap = <
/linux/drivers/input/rmi4/
H A Drmi_f1a.c13 u32 *keymap; member
49 f1a->keymap = buttonmap; in rmi_f1a_parse_device_properties()
72 input_report_key(f1a->input, f1a->keymap[key], in rmi_f1a_attention()
99 input_set_capability(f1a->input, EV_KEY, f1a->keymap[i]); in rmi_f1a_initialize()
101 f1a->input->keycode = f1a->keymap; in rmi_f1a_initialize()
103 f1a->input->keycodesize = sizeof(f1a->keymap[0]); in rmi_f1a_initialize()
/linux/drivers/hid/
H A 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()
215 * keymap processing. in creative_sb0540_input_mapping()
/linux/drivers/input/joystick/
H A 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/drivers/input/keyboard/
H A Djornada720_kbd.c48 unsigned short keymap[ARRAY_SIZE(jornada_std_keymap)]; member
71 /* Exchange TxDummy for location (keymap[kbddata]) */ in jornada720_kbd_interrupt()
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()
H A 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()
/linux/drivers/platform/x86/
H A Dfujitsu-tablet.c40 unsigned short keymap[KEYMAP_LEN]; member
241 idev->keycode = fujitsu.config.keymap; in input_fujitsu_setup()
242 idev->keycodesize = sizeof(fujitsu.config.keymap[0]); in input_fujitsu_setup()
243 idev->keycodemax = ARRAY_SIZE(fujitsu.config.keymap); in input_fujitsu_setup()
247 for (i = 0; i < ARRAY_SIZE(fujitsu.config.keymap); i++) in input_fujitsu_setup()
248 if (fujitsu.config.keymap[i]) in input_fujitsu_setup()
249 input_set_capability(idev, EV_KEY, fujitsu.config.keymap[i]); in input_fujitsu_setup()
292 keycode = fujitsu.config.keymap[i]; in fujitsu_interrupt()
310 memcpy(fujitsu.config.keymap, dmi->driver_data, in fujitsu_dmi_common()
311 sizeof(fujitsu.config.keymap)); in fujitsu_dmi_common()
/linux/Documentation/devicetree/bindings/mfd/
H A 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
/linux/include/linux/netfilter/
H A Dnf_conntrack_proto_gre.h14 /* structure for original <-> reply keymap */
21 /* add tuple->key_reply pairs to keymap */
26 /* delete keymap entries */
/linux/Documentation/driver-api/
H A Dinput.rst34 Sparse keymap support
37 .. kernel-doc:: include/linux/input/sparse-keymap.h
40 .. kernel-doc:: drivers/input/sparse-keymap.c
/linux/sound/hda/common/
H A Dhda_jack.h105 const struct hda_jack_keymap *keymap,
163 int type, const struct hda_jack_keymap *keymap);
172 * @keymap: optional jack / key mapping
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()

123456789