Home
last modified time | relevance | path

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

12345678910>>...16

/openbmc/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()
82 propname = "linux,keymap"; in matrix_keypad_parse_keymap()
124 * matrix_keypad_build_keymap - convert platform keymap into matrix keymap
125 * @keymap_data: keymap supplied by the platform code
126 * @keymap_name: name of device tree property containing keymap (if device
128 * @rows: number of rows in target keymap array
129 * @cols: number of cols in target keymap array
130 * @keymap: expanded version of keymap that is suitable for use by
[all …]
H A Dsparse-keymap.c14 #include <linux/input/sparse-keymap.h>
54 * sparse_keymap_entry_from_scancode - perform sparse keymap lookup
55 * @dev: Input device using sparse keymap
59 * input device using sparse keymap.
75 * sparse_keymap_entry_from_keycode - perform sparse keymap lookup
76 * @dev: Input device using sparse keymap
80 * input device using sparse keymap.
154 * sparse_keymap_setup - set up sparse keymap for an input device
156 * @keymap: Keymap in form of array of &key_entry structures ending
158 * @setup: Function that can be used to adjust keymap entries
[all …]
H A DKconfig55 tristate "Sparse keymap support library"
58 device that uses sparse keymap. This option is only
65 module will be called sparse-keymap.
68 tristate "Matrix keymap support library"
71 device that uses matrix keymap. This option is only
78 module will be called matrix-keymap.
83 ChromeOS Vivaldi keymap support library. This is a hidden
85 expose the vivaldi function row keymap.
/openbmc/qemu/ui/
H A Dinput-keymap.c7 #include "ui/input-keymap-atset1-to-qcode.c.inc"
8 #include "ui/input-keymap-linux-to-qcode.c.inc"
9 #include "ui/input-keymap-qcode-to-atset1.c.inc"
10 #include "ui/input-keymap-qcode-to-atset2.c.inc"
11 #include "ui/input-keymap-qcode-to-atset3.c.inc"
12 #include "ui/input-keymap-qcode-to-linux.c.inc"
13 #include "ui/input-keymap-qcode-to-qnum.c.inc"
14 #include "ui/input-keymap-qcode-to-sun.c.inc"
15 #include "ui/input-keymap-qnum-to-qcode.c.inc"
16 #include "ui/input-keymap-usb-to-qcode.c.inc"
[all …]
/openbmc/linux/drivers/platform/x86/dell/
H A Ddell-wmi-base.c22 #include <linux/input/sparse-keymap.h>
74 * Keymap for WMI events of type 0x0000
196 struct dell_bios_keymap_entry keymap[]; member
203 struct key_entry *keymap; member
251 * Keymap for WMI events of type 0x0010
328 * Keymap for WMI events of type 0x0011
361 * Keymap for WMI events of type 0x0012
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
[all …]
H A Ddell-wmi-privacy.c13 #include <linux/input/sparse-keymap.h>
58 * Keymap for WMI privacy events of type 0x0012
298 struct key_entry *keymap; in dell_privacy_wmi_probe() local
321 /* remap the wmi keymap event to new keymap */ in dell_privacy_wmi_probe()
322 keymap = kcalloc(ARRAY_SIZE(dell_wmi_keymap_type_0012), in dell_privacy_wmi_probe()
324 if (!keymap) in dell_privacy_wmi_probe()
327 /* remap the keymap code with Dell privacy key type 0x12 as prefix in dell_privacy_wmi_probe()
341 keymap[j] = dell_wmi_keymap_type_0012[i]; in dell_privacy_wmi_probe()
342 keymap[j].code |= (0x0012 << 16); in dell_privacy_wmi_probe()
345 ret = sparse_keymap_setup(priv->input_dev, keymap, NULL); in dell_privacy_wmi_probe()
[all …]
/openbmc/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 …]
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dqcom,pm8xxx-keypad.txt25 - linux,keymap:
28 Definition: the linux keymap. More information can be found in
29 input/matrix-keymap.txt.
45 Definition: number of rows in the keymap. More information can be found
46 in input/matrix-keymap.txt.
51 Definition: number of columns in the keymap. More information can be
52 found in input/matrix-keymap.txt.
79 linux,keymap = <
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 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>;
H A Dti,nspire-keypad.txt18 - linux,keymap: The keymap to use
19 (see Documentation/devicetree/bindings/input/matrix-keymap.txt)
37 linux,keymap = <
/openbmc/linux/drivers/input/misc/
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 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 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()
/openbmc/openbmc/poky/meta/recipes-bsp/keymaps/files/
H A Dkeymap.sh3 # load keymap, if existing
9 if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then
10 loadkeys /etc/keymap-$KERNEL_MAJMIN.map
13 if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" )
15 for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*`
/openbmc/linux/drivers/media/usb/dvb-usb/
H A 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 …]
/openbmc/openbmc/poky/meta/recipes-bsp/keymaps/
H A Dkeymaps_1.0.bb2 DESCRIPTION = "Keymaps and initscript to set the keymap on bootup."
8 LIC_FILES_CHKSUM = "file://keymap.sh;beginline=5;endline=5;md5=829e563511c9a1d6d41f17a7a4989d6a"
22 SRC_URI = "file://keymap.sh"
24 INITSCRIPT_NAME = "keymap.sh"
35 install -m 0755 ${S}/keymap.sh ${D}${sysconfdir}/init.d/
45 systemctl $OPTS mask keymap.service
/openbmc/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
86 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,
/openbmc/u-boot/drivers/input/
H A Dkey_matrix.c57 const u8 *keymap; in key_matrix_decode() local
62 keymap = config->plain_keycode; in key_matrix_decode()
72 keymap = config->fn_keycode; in key_matrix_decode()
76 keycode[valid++] = keymap[pos]; in key_matrix_decode()
77 debug(" keycode=%d\n", keymap[pos]); in key_matrix_decode()
146 prop = dev_read_prop(dev, "linux,keymap", &proplen); in key_matrix_decode_fdt()
147 /* Basic keymap is required */ in key_matrix_decode_fdt()
160 prop = dev_read_prop(dev, "linux,fn-keymap", &proplen); in key_matrix_decode_fdt()
161 /* fn keymap is optional */ in key_matrix_decode_fdt()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/platform/x86/
H A 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()

12345678910>>...16