Home
last modified time | relevance | path

Searched refs:EV_KEY (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/Linux-v4.19/arch/arm/mach-imx/
Dmach-pcm037_eet.c66 .type = EV_KEY,
72 .type = EV_KEY,
78 .type = EV_KEY,
84 .type = EV_KEY,
90 .type = EV_KEY,
96 .type = EV_KEY,
102 .type = EV_KEY,
108 .type = EV_KEY,
114 .type = EV_KEY,
120 .type = EV_KEY,
[all …]
/Linux-v4.19/arch/x86/platform/intel-mid/device_libs/
Dplatform_gpio_keys.c29 {KEY_POWER, -1, 1, "power_btn", EV_KEY, 0, 3000},
30 {KEY_PROG1, -1, 1, "prog_btn1", EV_KEY, 0, 20},
31 {KEY_PROG2, -1, 1, "prog_btn2", EV_KEY, 0, 20},
33 {KEY_VOLUMEUP, -1, 1, "vol_up", EV_KEY, 0, 20},
34 {KEY_VOLUMEDOWN, -1, 1, "vol_down", EV_KEY, 0, 20},
35 {KEY_MUTE, -1, 1, "mute_enable", EV_KEY, 0, 20},
36 {KEY_VOLUMEUP, -1, 1, "volume_up", EV_KEY, 0, 20},
37 {KEY_VOLUMEDOWN, -1, 1, "volume_down", EV_KEY, 0, 20},
38 {KEY_CAMERA, -1, 1, "camera_full", EV_KEY, 0, 20},
39 {KEY_CAMERA_FOCUS, -1, 1, "camera_half", EV_KEY, 0, 20},
/Linux-v4.19/drivers/hid/
Dhid-steam.c447 input_set_capability(input, EV_KEY, BTN_TR2); in steam_register()
448 input_set_capability(input, EV_KEY, BTN_TL2); in steam_register()
449 input_set_capability(input, EV_KEY, BTN_TR); in steam_register()
450 input_set_capability(input, EV_KEY, BTN_TL); in steam_register()
451 input_set_capability(input, EV_KEY, BTN_Y); in steam_register()
452 input_set_capability(input, EV_KEY, BTN_B); in steam_register()
453 input_set_capability(input, EV_KEY, BTN_X); in steam_register()
454 input_set_capability(input, EV_KEY, BTN_A); in steam_register()
455 input_set_capability(input, EV_KEY, BTN_DPAD_UP); in steam_register()
456 input_set_capability(input, EV_KEY, BTN_DPAD_RIGHT); in steam_register()
[all …]
Dhid-ite.c33 input_event(input, EV_KEY, KEY_RFKILL, 1); in ite_event()
35 input_event(input, EV_KEY, KEY_RFKILL, 0); in ite_event()
Dhid-zydacron.c46 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c))
126 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event()
155 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
/Linux-v4.19/drivers/input/joystick/
Dpsxpad-spi.c325 input_set_capability(idev, EV_KEY, BTN_DPAD_UP); in psxpad_spi_probe()
326 input_set_capability(idev, EV_KEY, BTN_DPAD_DOWN); in psxpad_spi_probe()
327 input_set_capability(idev, EV_KEY, BTN_DPAD_LEFT); in psxpad_spi_probe()
328 input_set_capability(idev, EV_KEY, BTN_DPAD_RIGHT); in psxpad_spi_probe()
329 input_set_capability(idev, EV_KEY, BTN_A); in psxpad_spi_probe()
330 input_set_capability(idev, EV_KEY, BTN_B); in psxpad_spi_probe()
331 input_set_capability(idev, EV_KEY, BTN_X); in psxpad_spi_probe()
332 input_set_capability(idev, EV_KEY, BTN_Y); in psxpad_spi_probe()
333 input_set_capability(idev, EV_KEY, BTN_TL); in psxpad_spi_probe()
334 input_set_capability(idev, EV_KEY, BTN_TR); in psxpad_spi_probe()
[all …]
Dgamecon.c848 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in gc_setup_pad()
853 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in gc_setup_pad()
861 input_set_capability(input_dev, EV_KEY, gc_n64_btn[i]); in gc_setup_pad()
878 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in gc_setup_pad()
879 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in gc_setup_pad()
886 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
890 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad()
894 input_set_capability(input_dev, EV_KEY, BTN_THUMB); in gc_setup_pad()
897 input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); in gc_setup_pad()
906 input_set_capability(input_dev, EV_KEY, gc_psx_btn[i]); in gc_setup_pad()
[all …]
/Linux-v4.19/arch/arm/mach-s3c64xx/
Dmach-smartq7.c63 .type = EV_KEY,
71 .type = EV_KEY,
79 .type = EV_KEY,
87 .type = EV_KEY,
95 .type = EV_KEY,
103 .type = EV_KEY,
Dmach-smartq5.c63 .type = EV_KEY,
71 .type = EV_KEY,
79 .type = EV_KEY,
87 .type = EV_KEY,
/Linux-v4.19/arch/arm/mach-omap1/
Dboard-htcherald.c265 {BTN_0, HTCHERALD_GPIO_POWER, 1, "POWER", EV_KEY, 1, 20},
268 {KEY_LEFT, HTCPLD_GPIO_LEFT_KBD, 1, "LEFT", EV_KEY, 1, 20},
269 {KEY_RIGHT, HTCPLD_GPIO_RIGHT_KBD, 1, "RIGHT", EV_KEY, 1, 20},
270 {KEY_UP, HTCPLD_GPIO_UP_KBD, 1, "UP", EV_KEY, 1, 20},
271 {KEY_DOWN, HTCPLD_GPIO_DOWN_KBD, 1, "DOWN", EV_KEY, 1, 20},
273 {KEY_LEFT, HTCPLD_GPIO_LEFT_DPAD, 1, "DLEFT", EV_KEY, 1, 20},
274 {KEY_RIGHT, HTCPLD_GPIO_RIGHT_DPAD, 1, "DRIGHT", EV_KEY, 1, 20},
275 {KEY_UP, HTCPLD_GPIO_UP_DPAD, 1, "DUP", EV_KEY, 1, 20},
276 {KEY_DOWN, HTCPLD_GPIO_DOWN_DPAD, 1, "DDOWN", EV_KEY, 1, 20},
277 {KEY_ENTER, HTCPLD_GPIO_ENTER_DPAD, 1, "DENTER", EV_KEY, 1, 20},
/Linux-v4.19/net/rfkill/
Dinput.c199 if (type == EV_KEY && data == 1) { in rfkill_event()
280 .evbit = { BIT_MASK(EV_KEY) },
285 .evbit = { BIT_MASK(EV_KEY) },
290 .evbit = { BIT_MASK(EV_KEY) },
295 .evbit = { BIT_MASK(EV_KEY) },
300 .evbit = { BIT_MASK(EV_KEY) },
/Linux-v4.19/drivers/input/keyboard/
Dgpio_keys.c107 BUG_ON(type != EV_SW && type != EV_KEY); in get_n_events_by_type()
109 return (type == EV_KEY) ? KEY_CNT : SW_CNT; in get_n_events_by_type()
123 BUG_ON(type != EV_SW && type != EV_KEY); in get_bm_events_by_type()
125 return (type == EV_KEY) ? dev->keybit : dev->swbit; in get_bm_events_by_type()
303 ATTR_SHOW_FN(keys, EV_KEY, false);
305 ATTR_SHOW_FN(disabled_keys, EV_KEY, true);
334 ATTR_STORE_FN(disabled_keys, EV_KEY);
366 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
407 (button->type == 0 || button->type == EV_KEY)) { in gpio_keys_gpio_isr()
432 input_event(input, EV_KEY, *bdata->code, 0); in gpio_keys_irq_timer()
[all …]
/Linux-v4.19/drivers/platform/x86/
Dpeaq-wmi.c59 input_event(peaq_poll_dev->input, EV_KEY, KEY_SOUND, 1); in peaq_wmi_poll()
61 input_event(peaq_poll_dev->input, EV_KEY, KEY_SOUND, 0); in peaq_wmi_poll()
98 input_set_capability(peaq_poll_dev->input, EV_KEY, KEY_SOUND); in peaq_wmi_init()
Dsurfacepro3_button.c180 input_set_capability(input, EV_KEY, KEY_POWER); in surface_button_add()
181 input_set_capability(input, EV_KEY, KEY_LEFTMETA); in surface_button_add()
182 input_set_capability(input, EV_KEY, KEY_VOLUMEUP); in surface_button_add()
183 input_set_capability(input, EV_KEY, KEY_VOLUMEDOWN); in surface_button_add()
Dsurface3_button.c178 { "power", 0, EV_KEY, KEY_POWER, false, true, true },
179 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, false },
180 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true },
181 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
/Linux-v4.19/drivers/input/misc/
Dsirfsoc-onkey.c48 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 0); in sirfsoc_pwrc_report_event()
63 input_event(pwrcdrv->input, EV_KEY, KEY_POWER, 1); in sirfsoc_pwrc_isr()
138 pwrcdrv->input->evbit[0] = BIT_MASK(EV_KEY); in sirfsoc_pwrc_probe()
139 input_set_capability(pwrcdrv->input, EV_KEY, KEY_POWER); in sirfsoc_pwrc_probe()
Dsoc_button_array.c168 info->event_type = EV_KEY; in soc_button_parse_btn_desc()
372 { "power", 0, EV_KEY, KEY_POWER, false, true },
373 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true },
374 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false },
375 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false },
/Linux-v4.19/drivers/input/mouse/
Dlogips2pp.c280 input_set_capability(input_dev, EV_KEY, BTN_SIDE); in ps2pp_set_model_properties()
283 input_set_capability(input_dev, EV_KEY, BTN_EXTRA); in ps2pp_set_model_properties()
286 input_set_capability(input_dev, EV_KEY, BTN_TASK); in ps2pp_set_model_properties()
289 input_set_capability(input_dev, EV_KEY, BTN_FORWARD); in ps2pp_set_model_properties()
290 input_set_capability(input_dev, EV_KEY, BTN_BACK); in ps2pp_set_model_properties()
439 input_set_capability(psmouse->dev, EV_KEY, BTN_MIDDLE); in ps2pp_detect()
Dgpio_mouse.c139 input_set_capability(input, EV_KEY, BTN_LEFT); in gpio_mouse_probe()
141 input_set_capability(input, EV_KEY, BTN_MIDDLE); in gpio_mouse_probe()
143 input_set_capability(input, EV_KEY, BTN_RIGHT); in gpio_mouse_probe()
/Linux-v4.19/drivers/input/
Dinput-mt.c62 __set_bit(EV_KEY, dev->evbit); in input_mt_init_slots()
179 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count()
180 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count()
181 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count()
182 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count()
183 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count()
224 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
/Linux-v4.19/arch/mips/ath79/
Dmach-ap121.c45 .type = EV_KEY,
53 .type = EV_KEY,
Dmach-ap81.c55 .type = EV_KEY,
62 .type = EV_KEY,
Dmach-pb44.c80 .type = EV_KEY,
87 .type = EV_KEY,
/Linux-v4.19/Documentation/input/
Duinput.rst73 ioctl(fd, UI_SET_EVBIT, EV_KEY);
95 emit(fd, EV_KEY, KEY_SPACE, 1);
97 emit(fd, EV_KEY, KEY_SPACE, 0);
132 ioctl(fd, UI_SET_EVBIT, EV_KEY);
210 ioctl(fd, UI_SET_EVBIT, EV_KEY);
229 emit(fd, EV_KEY, KEY_SPACE, 1);
231 emit(fd, EV_KEY, KEY_SPACE, 0);
/Linux-v4.19/drivers/macintosh/
Dmac_hid.c49 mac_hid_emumouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in mac_hid_create_emumouse()
76 if (type != EV_KEY) in mac_hid_emumouse_filter()
146 .evbit = { BIT_MASK(EV_KEY) },

12345678910>>...16