Home
last modified time | relevance | path

Searched full:keycodes (Results 1 – 25 of 180) sorted by relevance

12345678

/openbmc/qemu/ui/
H A Dx_keymap.c58 const gchar *keycodes = NULL; in qemu_xkeymap_mapping_table() local
74 keycodes = XGetAtomName (dpy, desc->names->keycodes); in qemu_xkeymap_mapping_table()
75 if (!keycodes) { in qemu_xkeymap_mapping_table()
78 trace_xkeymap_keycodes(keycodes); in qemu_xkeymap_mapping_table()
92 } else if ((keycodes && g_str_has_prefix(keycodes, "evdev")) || in qemu_xkeymap_mapping_table()
97 } else if ((keycodes && g_str_has_prefix(keycodes, "xfree86")) || in qemu_xkeymap_mapping_table()
112 keycodes ? keycodes : "<null>"); in qemu_xkeymap_mapping_table()
115 if (keycodes) { in qemu_xkeymap_mapping_table()
116 XFree((void *)keycodes); in qemu_xkeymap_mapping_table()
H A Dkeymaps.c36 uint16_t keycodes[4]; member
69 if (keysym2code->count < ARRAY_SIZE(keysym2code->keycodes)) { in add_keysym()
70 keysym2code->keycodes[keysym2code->count++] = keycode; in add_keysym()
72 warn_report("more than %zd keycodes for keysym %d", in add_keysym()
73 ARRAY_SIZE(keysym2code->keycodes), keysym); in add_keysym()
79 keysym2code->keycodes[0] = keycode; in add_keysym()
214 return keysym2code->keycodes[0]; in keysym2scancode()
236 if ((keysym2code->keycodes[i] & mask) == mods) { in keysym2scancode()
237 return keysym2code->keycodes[i]; in keysym2scancode()
246 (keysym2code->keycodes[i]); in keysym2scancode()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dcypress-sf.c26 u32 *keycodes; member
55 touchkey->keycodes[key], new_state); in cypress_sf_irq_handler()
96 "linux,keycodes", in cypress_sf_probe()
103 touchkey->keycodes = devm_kcalloc(&client->dev, in cypress_sf_probe()
105 sizeof(*touchkey->keycodes), in cypress_sf_probe()
107 if (!touchkey->keycodes) in cypress_sf_probe()
110 error = device_property_read_u32_array(&client->dev, "linux,keycodes", in cypress_sf_probe()
111 touchkey->keycodes, in cypress_sf_probe()
116 "Failed to read keycodes: %d, using defaults\n", in cypress_sf_probe()
119 /* Default keycodes */ in cypress_sf_probe()
[all …]
H A Dopencores-kbd.c22 unsigned short keycodes[128]; member
73 input->keycode = opencores_kbd->keycodes; in opencores_kbd_probe()
74 input->keycodesize = sizeof(opencores_kbd->keycodes[0]); in opencores_kbd_probe()
75 input->keycodemax = ARRAY_SIZE(opencores_kbd->keycodes); in opencores_kbd_probe()
79 for (i = 0; i < ARRAY_SIZE(opencores_kbd->keycodes); i++) { in opencores_kbd_probe()
84 opencores_kbd->keycodes[i] = i; in opencores_kbd_probe()
85 __set_bit(opencores_kbd->keycodes[i], input->keybit); in opencores_kbd_probe()
H A Dtm2-touchkey.c52 u32 keycodes[4]; member
163 touchkey->keycodes[i], 0); in tm2_touchkey_irq_handler()
166 touchkey->keycodes[index], 1); in tm2_touchkey_irq_handler()
220 "linux,keycodes", touchkey->keycodes, 0, in tm2_touchkey_probe()
221 ARRAY_SIZE(touchkey->keycodes)); in tm2_touchkey_probe()
223 /* default keycodes */ in tm2_touchkey_probe()
224 touchkey->keycodes[0] = KEY_PHONE; in tm2_touchkey_probe()
225 touchkey->keycodes[1] = KEY_BACK; in tm2_touchkey_probe()
253 touchkey->input_dev->keycode = touchkey->keycodes; in tm2_touchkey_probe()
255 touchkey->input_dev->keycodesize = sizeof(touchkey->keycodes[0]); in tm2_touchkey_probe()
[all …]
H A Dpxa27x_keypad.c105 unsigned short keycodes[MAX_KEYPAD_KEYS]; member
141 keypad->keycodes, input_dev); in pxa27x_keypad_matrix_key_parse_dt()
201 keypad->keycodes[MAX_MATRIX_KEY_NUM + i] = code; in pxa27x_keypad_direct_key_parse_dt()
257 keypad->keycodes[n] = keycode; in pxa27x_keypad_rotary_parse_dt()
261 keypad->keycodes[n + 1] = keycode; in pxa27x_keypad_rotary_parse_dt()
321 * The keycodes may not only includes matrix key but also the direct in pxa27x_keypad_build_keycode_from_dt()
324 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); in pxa27x_keypad_build_keycode_from_dt()
352 keypad->keycodes, input_dev); in pxa27x_keypad_build_keycode()
357 * The keycodes may not only include matrix keys but also the direct in pxa27x_keypad_build_keycode()
360 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); in pxa27x_keypad_build_keycode()
[all …]
H A Dmpr121_touchkey.c65 u32 keycodes[MPR121_MAX_KEY_COUNT]; member
151 key_val = mpr121->keycodes[key_num]; in mpr_touchkey_report()
260 mpr121->keycount = device_property_count_u32(dev, "linux,keycodes"); in mpr_touchkey_probe()
266 error = device_property_read_u32_array(dev, "linux,keycodes", in mpr_touchkey_probe()
267 mpr121->keycodes, in mpr_touchkey_probe()
283 input_dev->keycode = mpr121->keycodes; in mpr_touchkey_probe()
284 input_dev->keycodesize = sizeof(mpr121->keycodes[0]); in mpr_touchkey_probe()
288 input_set_capability(input_dev, EV_KEY, mpr121->keycodes[i]); in mpr_touchkey_probe()
H A Dmcs_touchkey.c51 unsigned short keycodes[]; member
80 data->key_code = data->keycodes[key_val]; in mcs_touchkey_interrupt()
120 struct_size(data, keycodes, pdata->key_maxval + 1), in mcs_touchkey_probe()
159 input_dev->keycode = data->keycodes; in mcs_touchkey_probe()
160 input_dev->keycodesize = sizeof(data->keycodes[0]); in mcs_touchkey_probe()
167 data->keycodes[val] = code; in mcs_touchkey_probe()
H A Dmax7359_keypad.c58 unsigned short keycodes[MAX7359_MAX_KEY_NUM]; member
102 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt()
204 input_dev->keycodesize = sizeof(keypad->keycodes[0]); in max7359_probe()
205 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); in max7359_probe()
206 input_dev->keycode = keypad->keycodes; in max7359_probe()
214 keypad->keycodes, in max7359_probe()
H A Dcap11xx.c87 u32 keycodes[]; member
203 input_report_key(priv->idev, priv->keycodes[i], in cap11xx_thread_func()
353 struct_size(priv, keycodes, cap->num_channels), in cap11xx_i2c_probe()
415 priv->keycodes[i] = KEY_A + i; in cap11xx_i2c_probe()
417 of_property_read_u32_array(node, "linux,keycodes", in cap11xx_i2c_probe()
418 priv->keycodes, cap->num_channels); in cap11xx_i2c_probe()
446 __set_bit(priv->keycodes[i], priv->idev->keybit); in cap11xx_i2c_probe()
450 priv->idev->keycode = priv->keycodes; in cap11xx_i2c_probe()
451 priv->idev->keycodesize = sizeof(priv->keycodes[0]); in cap11xx_i2c_probe()
H A Dqt1070.c52 unsigned short keycodes[ARRAY_SIZE(qt1070_key2code)]; member
120 input_report_key(input, data->keycodes[i], keyval); in qt1070_interrupt()
169 input->keycode = data->keycodes; in qt1070_probe()
170 input->keycodesize = sizeof(data->keycodes[0]); in qt1070_probe()
176 data->keycodes[i] = qt1070_key2code[i]; in qt1070_probe()
H A Dtegra-kbc.c132 unsigned short keycodes[], in tegra_kbc_report_pressed_keys() argument
139 input_report_key(input, keycodes[i], 1); in tegra_kbc_report_pressed_keys()
146 unsigned short keycodes[KBC_MAX_KPENT]; in tegra_kbc_report_keys() local
165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys()
167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys()
206 * Function keycodes are max_keys apart from the plain keycodes. in tegra_kbc_report_keys()
211 keycodes[i] = kbc->keycode[scancodes[i]]; in tegra_kbc_report_keys()
221 keycodes, num_down); in tegra_kbc_report_keys()
222 tegra_kbc_report_pressed_keys(kbc->idev, scancodes, keycodes, num_down); in tegra_kbc_report_keys()
225 memcpy(kbc->current_keys, keycodes, sizeof(kbc->current_keys)); in tegra_kbc_report_keys()
/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dcypress,tt21000.yaml40 linux,keycodes:
52 linux,keycodes:
57 - linux,keycodes
94 linux,keycodes = <KEY_HOMEPAGE>;
99 linux,keycodes = <KEY_MENU>;
104 linux,keycodes = <KEY_BACK>;
/openbmc/linux/drivers/input/misc/
H A Dibm-panel.c21 u32 keycodes[PANEL_KEYCODES_COUNT]; member
68 input_report_key(panel->input, panel->keycodes[button], in ibm_panel_process_command()
142 "linux,keycodes", in ibm_panel_probe()
143 panel->keycodes, in ibm_panel_probe()
150 panel->keycodes[0] = BTN_NORTH; in ibm_panel_probe()
151 panel->keycodes[1] = BTN_SOUTH; in ibm_panel_probe()
152 panel->keycodes[2] = BTN_SELECT; in ibm_panel_probe()
156 input_set_capability(panel->input, EV_KEY, panel->keycodes[i]); in ibm_panel_probe()
H A Datmel_captouch.c64 * @keycodes: map of button# to KeyCode
72 u32 keycodes[MAX_NUM_OF_BUTTONS]; member
151 capdev->keycodes[i], in atmel_captouch_isr()
218 err = of_property_read_u32_array(node, "linux,keycodes", in atmel_captouch_probe()
219 capdev->keycodes, in atmel_captouch_probe()
228 __set_bit(capdev->keycodes[i], capdev->input->keybit); in atmel_captouch_probe()
230 capdev->input->keycode = capdev->keycodes; in atmel_captouch_probe()
231 capdev->input->keycodesize = sizeof(capdev->keycodes[0]); in atmel_captouch_probe()
/openbmc/qemu/include/hw/input/
H A Dstellaris_gamepad.h19 * + QOM array property "keycodes": uint32_t QEMU keycodes to handle
22 * "keycodes" array property entries; asserted when key is down
33 uint32_t *keycodes; member
/openbmc/linux/drivers/input/touchscreen/
H A Dmsg2638.c78 u32 keycodes[MAX_BUTTONS]; member
102 input_report_key(msg2638->input_dev, msg2638->keycodes[i], in msg2138_report_keys()
325 input_dev->keycode = msg2638->keycodes; in msg2638_init_input_dev()
327 input_dev->keycodesize = sizeof(msg2638->keycodes[0]); in msg2638_init_input_dev()
330 EV_KEY, msg2638->keycodes[i]); in msg2638_init_input_dev()
402 "linux,keycodes"); in msg2638_ts_probe()
406 dev_err(dev, "Unable to parse linux,keycodes property: %d\n", in msg2638_ts_probe()
409 } else if (msg2638->num_keycodes > ARRAY_SIZE(msg2638->keycodes)) { in msg2638_ts_probe()
410 dev_warn(dev, "Found %d linux,keycodes but max is %zd, ignoring the rest\n", in msg2638_ts_probe()
411 msg2638->num_keycodes, ARRAY_SIZE(msg2638->keycodes)); in msg2638_ts_probe()
[all …]
H A Dmms114.c73 u32 keycodes[MMS114_MAX_TOUCHKEYS]; member
212 input_report_key(input_dev, data->keycodes[keycode_id], touch->pressed); in mms114_process_touchkey()
510 "linux,keycodes"); in mms114_probe()
515 "Unable to parse linux,keycodes property: %d\n", in mms114_probe()
520 "Found %d linux,keycodes but max is %d, ignoring the rest\n", in mms114_probe()
527 "linux,keycodes", in mms114_probe()
528 data->keycodes, in mms114_probe()
532 "Unable to read linux,keycodes values: %d\n", in mms114_probe()
537 input_dev->keycode = data->keycodes; in mms114_probe()
539 input_dev->keycodesize = sizeof(data->keycodes[0]); in mms114_probe()
[all …]
/openbmc/linux/drivers/staging/nvec/
H A Dnvec_kbd.c28 static unsigned char keycodes[ARRAY_SIZE(code_tab_102us) variable
120 keycodes[j++] = code_tab_102us[i]; in nvec_kbd_probe()
123 keycodes[j++] = extcode_tab_us102[i]; in nvec_kbd_probe()
133 idev->keycode = keycodes; in nvec_kbd_probe()
135 idev->keycodemax = ARRAY_SIZE(keycodes); in nvec_kbd_probe()
137 for (i = 0; i < ARRAY_SIZE(keycodes); ++i) in nvec_kbd_probe()
138 set_bit(keycodes[i], idev->keybit); in nvec_kbd_probe()
/openbmc/qemu/hw/input/
H A Dstellaris_gamepad.c27 if (s->keycodes[i] == qcode && s->pressed[i] != key->down) { in stellaris_gamepad_event()
56 error_setg(errp, "keycodes property array must be set"); in stellaris_gamepad_realize()
70 g_free(s->keycodes); in stellaris_gamepad_finalize()
81 DEFINE_PROP_ARRAY("keycodes", StellarisGamepad, num_buttons,
82 keycodes, qdev_prop_uint32, uint32_t),
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dfsl,mpr121-touchkey.yaml36 linux,keycodes:
48 - linux,keycodes
67 linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
86 linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
H A Dmediatek,pmic-keys.yaml58 linux,keycodes:
64 - linux,keycodes
107 linux,keycodes = <KEY_POWER>;
112 linux,keycodes = <KEY_VOLUMEDOWN>;
H A Dfsl,scu-key.yaml24 linux,keycodes:
29 - linux,keycodes
39 linux,keycodes = <KEY_POWER>;
/openbmc/linux/drivers/media/rc/keymaps/
H A Drc-hauppauge.c27 * Keycodes start with address = 0x1e
93 * Keycodes start with address = 0x1f
140 * Keycodes for DSR-0112 remote bundled with Haupauge MiniStick
141 * Keycodes start with address = 0x1d
181 * Keycodes for PT# R-005 remote bundled with Haupauge HVR-930C
182 * Keycodes start with address = 0x1c
232 * Keycodes for the old Black Remote Controller
234 * Keycodes start with address = 0x00
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx7d-remarkable2.dts272 linux,keycodes = <KEY_HOMEPAGE>;
277 linux,keycodes = <KEY_MENU>;
282 linux,keycodes = <KEY_BACK>;
287 linux,keycodes = <KEY_SEARCH>;
292 linux,keycodes = <KEY_VOLUMEDOWN>;
297 linux,keycodes = <KEY_VOLUMEUP>;
302 linux,keycodes = <KEY_CAMERA>;
307 linux,keycodes = <KEY_POWER>;

12345678