Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/input/keyboard/
Dopencores-kbd.c22 unsigned short keycodes[128]; member
80 input->keycode = opencores_kbd->keycodes; in opencores_kbd_probe()
81 input->keycodesize = sizeof(opencores_kbd->keycodes[0]); in opencores_kbd_probe()
82 input->keycodemax = ARRAY_SIZE(opencores_kbd->keycodes); in opencores_kbd_probe()
86 for (i = 0; i < ARRAY_SIZE(opencores_kbd->keycodes); i++) { in opencores_kbd_probe()
91 opencores_kbd->keycodes[i] = i; in opencores_kbd_probe()
92 __set_bit(opencores_kbd->keycodes[i], input->keybit); in opencores_kbd_probe()
Dtm2-touchkey.c53 u32 keycodes[4]; member
162 touchkey->keycodes[i], 0); in tm2_touchkey_irq_handler()
165 touchkey->keycodes[index], 1); in tm2_touchkey_irq_handler()
219 "linux,keycodes", touchkey->keycodes, 0, in tm2_touchkey_probe()
220 ARRAY_SIZE(touchkey->keycodes)); in tm2_touchkey_probe()
222 /* default keycodes */ in tm2_touchkey_probe()
223 touchkey->keycodes[0] = KEY_PHONE; in tm2_touchkey_probe()
224 touchkey->keycodes[1] = KEY_BACK; in tm2_touchkey_probe()
254 touchkey->keycodes[i]); in tm2_touchkey_probe()
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 …]
Dmpr121_touchkey.c65 u32 keycodes[MPR121_MAX_KEY_COUNT]; member
151 key_val = mpr121->keycodes[key_num]; in mpr_touchkey_report()
261 mpr121->keycount = device_property_count_u32(dev, "linux,keycodes"); in mpr_touchkey_probe()
267 error = device_property_read_u32_array(dev, "linux,keycodes", in mpr_touchkey_probe()
268 mpr121->keycodes, in mpr_touchkey_probe()
284 input_dev->keycode = mpr121->keycodes; in mpr_touchkey_probe()
285 input_dev->keycodesize = sizeof(mpr121->keycodes[0]); in mpr_touchkey_probe()
289 input_set_capability(input_dev, EV_KEY, mpr121->keycodes[i]); in mpr_touchkey_probe()
Dmax7359_keypad.c58 unsigned short keycodes[MAX7359_MAX_KEY_NUM]; member
102 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt()
205 input_dev->keycodesize = sizeof(keypad->keycodes[0]); in max7359_probe()
206 input_dev->keycodemax = ARRAY_SIZE(keypad->keycodes); in max7359_probe()
207 input_dev->keycode = keypad->keycodes; in max7359_probe()
215 keypad->keycodes, in max7359_probe()
Dmcs_touchkey.c51 unsigned short keycodes[]; member
80 data->key_code = data->keycodes[key_val]; in mcs_touchkey_interrupt()
112 data = kzalloc(struct_size(data, keycodes, pdata->key_maxval + 1), in mcs_touchkey_probe()
151 input_dev->keycode = data->keycodes; in mcs_touchkey_probe()
152 input_dev->keycodesize = sizeof(data->keycodes[0]); in mcs_touchkey_probe()
159 data->keycodes[val] = code; in mcs_touchkey_probe()
Dcap11xx.c87 u32 keycodes[]; member
194 input_report_key(priv->idev, priv->keycodes[i], in cap11xx_thread_func()
344 struct_size(priv, keycodes, cap->num_channels), in cap11xx_i2c_probe()
396 priv->keycodes[i] = KEY_A + i; in cap11xx_i2c_probe()
398 of_property_read_u32_array(node, "linux,keycodes", in cap11xx_i2c_probe()
399 priv->keycodes, cap->num_channels); in cap11xx_i2c_probe()
424 __set_bit(priv->keycodes[i], priv->idev->keybit); in cap11xx_i2c_probe()
428 priv->idev->keycode = priv->keycodes; in cap11xx_i2c_probe()
429 priv->idev->keycodesize = sizeof(priv->keycodes[0]); in cap11xx_i2c_probe()
Dqt1070.c52 unsigned short keycodes[ARRAY_SIZE(qt1070_key2code)]; member
120 input_report_key(input, data->keycodes[i], keyval); in qt1070_interrupt()
170 input->keycode = data->keycodes; in qt1070_probe()
171 input->keycodesize = sizeof(data->keycodes[0]); in qt1070_probe()
177 data->keycodes[i] = qt1070_key2code[i]; in qt1070_probe()
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()
Diqs62x-keys.c52 ret = device_property_count_u32(&pdev->dev, "linux,keycodes"); in iqs62x_keys_parse_prop()
54 dev_err(&pdev->dev, "Too many keycodes present\n"); in iqs62x_keys_parse_prop()
57 dev_err(&pdev->dev, "Failed to count keycodes: %d\n", ret); in iqs62x_keys_parse_prop()
62 ret = device_property_read_u32_array(&pdev->dev, "linux,keycodes", in iqs62x_keys_parse_prop()
66 dev_err(&pdev->dev, "Failed to read keycodes: %d\n", ret); in iqs62x_keys_parse_prop()
Dsh_keysc.c138 k = pdata->keycodes[i]; in sh_keysc_isr()
224 input->keycode = pdata->keycodes; in sh_keysc_probe()
225 input->keycodesize = sizeof(pdata->keycodes[0]); in sh_keysc_probe()
226 input->keycodemax = ARRAY_SIZE(pdata->keycodes); in sh_keysc_probe()
236 __set_bit(pdata->keycodes[i], input->keybit); in sh_keysc_probe()
Dclps711x-keypad.c34 const unsigned short *keycodes = input->keycode; in clps711x_keypad_poll() local
69 if (keycodes[code]) in clps711x_keypad_poll()
71 keycodes[code], state); in clps711x_keypad_poll()
Dqt2160.c58 unsigned short keycodes[ARRAY_SIZE(qt2160_key2code)]; member
187 input_report_key(input, qt2160->keycodes[i], keyval); in qt2160_get_key_matrix()
377 input->keycode = qt2160->keycodes; in qt2160_probe()
378 input->keycodesize = sizeof(qt2160->keycodes[0]); in qt2160_probe()
384 qt2160->keycodes[i] = qt2160_key2code[i]; in qt2160_probe()
Dlm8333.c36 unsigned short keycodes[LM8333_NUM_ROWS << LM8333_ROW_SHIFT]; member
96 input_report_key(input, lm8333->keycodes[code], pressed); in lm8333_key_handler()
164 lm8333->keycodes, input); in lm8333_probe()
/kernel/linux/linux-5.10/drivers/staging/nvec/
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()
/kernel/linux/linux-5.10/drivers/input/misc/
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()
219 err = of_property_read_u32_array(node, "linux,keycodes", in atmel_captouch_probe()
220 capdev->keycodes, in atmel_captouch_probe()
229 __set_bit(capdev->keycodes[i], capdev->input->keybit); in atmel_captouch_probe()
231 capdev->input->keycode = capdev->keycodes; in atmel_captouch_probe()
232 capdev->input->keycodesize = sizeof(capdev->keycodes[0]); in atmel_captouch_probe()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dfsl,mpr121-touchkey.yaml37 linux,keycodes:
49 - linux,keycodes
68 linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
87 linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
Dcypress,tm2-touchkey.txt16 - linux,keycodes: array of keycodes (max 4), default KEY_PHONE and KEY_BACK
31 linux,keycodes = <KEY_PHONE KEY_BACK>;
Dmtk-pmic-keys.txt13 - linux,keycodes: See Documentation/devicetree/bindings/input/input.yaml
34 linux,keycodes = <116>;
39 linux,keycodes = <114>;
Datmel,captouch.txt15 linux,keycodes: Specifies an array of numeric keycode values to
31 linux,keycodes = <BTN_0>, <BTN_1>,
Dcap11xx.txt35 linux,keycodes: Specifies an array of numeric keycode values to
52 linux,keycodes = <103>, /* KEY_UP */
/kernel/linux/linux-5.10/drivers/media/rc/keymaps/
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
/kernel/linux/linux-5.10/Documentation/admin-guide/media/
Dremote-controller.rst69 Xorg recognizes several IR keycodes that have its numerical value lower
71 and should now accept all keycodes. Yet, you may want to just reasign
72 the keycodes to something that your favorite media application likes.
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/
Dhideep.txt17 - linux,keycodes : Specifies an array of numeric keycode values to
39 linux,keycodes = <KEY_HOME>, <KEY_MENU>, <KEY_BACK>;
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Diqs62x.yaml75 linux,keycodes = <KEY_SELECT>,
122 linux,keycodes = <0>,
159 linux,keycodes = <BTN_0>,

1234