/Linux-v5.15/drivers/hid/ |
D | hid-steam.c | 416 input_set_capability(input, EV_KEY, BTN_TR2); in steam_input_register() 417 input_set_capability(input, EV_KEY, BTN_TL2); in steam_input_register() 418 input_set_capability(input, EV_KEY, BTN_TR); in steam_input_register() 419 input_set_capability(input, EV_KEY, BTN_TL); in steam_input_register() 420 input_set_capability(input, EV_KEY, BTN_Y); in steam_input_register() 421 input_set_capability(input, EV_KEY, BTN_B); in steam_input_register() 422 input_set_capability(input, EV_KEY, BTN_X); in steam_input_register() 423 input_set_capability(input, EV_KEY, BTN_A); in steam_input_register() 424 input_set_capability(input, EV_KEY, BTN_DPAD_UP); in steam_input_register() 425 input_set_capability(input, EV_KEY, BTN_DPAD_RIGHT); in steam_input_register() [all …]
|
D | hid-ite.c | 53 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F22); in ite_input_mapping() 58 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, KEY_F23); in ite_input_mapping() 83 input_event(input, EV_KEY, KEY_RFKILL, 1); in ite_event() 85 input_event(input, EV_KEY, KEY_RFKILL, 0); in ite_event()
|
D | hid-zydacron.c | 43 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 123 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event() 152 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
|
D | hid-plantronics.c | 114 hid_map_usage_clear(hi, usage, bit, max, EV_KEY, mapped_key); in plantronics_input_mapping() 210 { HID_CP_VOLUMEUP, EV_KEY, HID_ANY_ID }, 211 { HID_CP_VOLUMEDOWN, EV_KEY, HID_ANY_ID },
|
/Linux-v5.15/drivers/input/joystick/ |
D | n64joy.c | 289 input_set_capability(dev, EV_KEY, BTN_DPAD_UP); in n64joy_probe() 290 input_set_capability(dev, EV_KEY, BTN_DPAD_DOWN); in n64joy_probe() 291 input_set_capability(dev, EV_KEY, BTN_DPAD_LEFT); in n64joy_probe() 292 input_set_capability(dev, EV_KEY, BTN_DPAD_RIGHT); in n64joy_probe() 294 input_set_capability(dev, EV_KEY, BTN_LEFT); in n64joy_probe() 295 input_set_capability(dev, EV_KEY, BTN_RIGHT); in n64joy_probe() 296 input_set_capability(dev, EV_KEY, BTN_FORWARD); in n64joy_probe() 297 input_set_capability(dev, EV_KEY, BTN_BACK); in n64joy_probe() 299 input_set_capability(dev, EV_KEY, BTN_START); in n64joy_probe() 300 input_set_capability(dev, EV_KEY, BTN_Z); in n64joy_probe() [all …]
|
D | psxpad-spi.c | 317 input_set_capability(idev, EV_KEY, BTN_DPAD_UP); in psxpad_spi_probe() 318 input_set_capability(idev, EV_KEY, BTN_DPAD_DOWN); in psxpad_spi_probe() 319 input_set_capability(idev, EV_KEY, BTN_DPAD_LEFT); in psxpad_spi_probe() 320 input_set_capability(idev, EV_KEY, BTN_DPAD_RIGHT); in psxpad_spi_probe() 321 input_set_capability(idev, EV_KEY, BTN_A); in psxpad_spi_probe() 322 input_set_capability(idev, EV_KEY, BTN_B); in psxpad_spi_probe() 323 input_set_capability(idev, EV_KEY, BTN_X); in psxpad_spi_probe() 324 input_set_capability(idev, EV_KEY, BTN_Y); in psxpad_spi_probe() 325 input_set_capability(idev, EV_KEY, BTN_TL); in psxpad_spi_probe() 326 input_set_capability(idev, EV_KEY, BTN_TR); in psxpad_spi_probe() [all …]
|
D | gamecon.c | 836 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in gc_setup_pad() 841 input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in gc_setup_pad() 849 input_set_capability(input_dev, EV_KEY, gc_n64_btn[i]); in gc_setup_pad() 866 input_set_capability(input_dev, EV_KEY, BTN_LEFT); in gc_setup_pad() 867 input_set_capability(input_dev, EV_KEY, BTN_RIGHT); in gc_setup_pad() 874 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad() 879 input_set_capability(input_dev, EV_KEY, gc_snes_btn[i]); in gc_setup_pad() 883 input_set_capability(input_dev, EV_KEY, BTN_THUMB); in gc_setup_pad() 887 input_set_capability(input_dev, EV_KEY, BTN_TRIGGER); in gc_setup_pad() 895 input_set_capability(input_dev, EV_KEY, gc_psx_btn[i]); in gc_setup_pad() [all …]
|
/Linux-v5.15/arch/arm/mach-s3c/ |
D | mach-smartq7.c | 62 .type = EV_KEY, 70 .type = EV_KEY, 78 .type = EV_KEY, 86 .type = EV_KEY, 94 .type = EV_KEY, 102 .type = EV_KEY,
|
D | mach-smartq5.c | 62 .type = EV_KEY, 70 .type = EV_KEY, 78 .type = EV_KEY, 86 .type = EV_KEY,
|
/Linux-v5.15/drivers/input/keyboard/ |
D | gpio_keys.c | 68 * keys [ro] - bitmap of keys (EV_KEY) which can be 100 * @type: type of button (%EV_KEY, %EV_SW) 107 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() 115 * @type: type of button (%EV_KEY, %EV_SW) 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() 187 * @type: button type (%EV_KEY, %EV_SW) 235 * @type: button type (%EV_KEY, %EV_SW) 310 ATTR_SHOW_FN(keys, EV_KEY, false); [all …]
|
/Linux-v5.15/Documentation/input/ |
D | uinput.rst | 73 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);
|
D | input-programming.rst | 44 button_dev->evbit[0] = BIT_MASK(EV_KEY); 84 accepted by this input device. Our example device can only generate EV_KEY 88 set_bit(EV_KEY, button_dev.evbit); 216 The most simple event type is EV_KEY, which is used for keys and buttons. 226 In addition to EV_KEY, there are two more basic event types: EV_REL and 234 Having the device report EV_REL buttons is as simple as with EV_KEY; simply
|
/Linux-v5.15/net/rfkill/ |
D | input.c | 196 if (type == EV_KEY && data == 1) { in rfkill_event() 277 .evbit = { BIT_MASK(EV_KEY) }, 282 .evbit = { BIT_MASK(EV_KEY) }, 287 .evbit = { BIT_MASK(EV_KEY) }, 292 .evbit = { BIT_MASK(EV_KEY) }, 297 .evbit = { BIT_MASK(EV_KEY) },
|
/Linux-v5.15/drivers/media/usb/dvb-usb/ |
D | dvb-usb-remote.c | 135 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control() 137 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control() 142 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control() 144 input_event(d->input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control() 157 input_event(d->rc_input_dev, EV_KEY, d->last_event, 0); in legacy_dvb_usb_read_remote_control() 167 input_event(d->rc_input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control() 177 input_event(d->rc_input_dev, EV_KEY, d->last_event, 2); in legacy_dvb_usb_read_remote_control() 199 input_dev->evbit[0] = BIT_MASK(EV_KEY); in legacy_dvb_usb_remote_init()
|
/Linux-v5.15/arch/arm/mach-omap1/ |
D | board-htcherald.c | 250 {BTN_0, HTCHERALD_GPIO_POWER, 1, "POWER", EV_KEY, 1, 20}, 253 {KEY_LEFT, HTCPLD_GPIO_LEFT_KBD, 1, "LEFT", EV_KEY, 1, 20}, 254 {KEY_RIGHT, HTCPLD_GPIO_RIGHT_KBD, 1, "RIGHT", EV_KEY, 1, 20}, 255 {KEY_UP, HTCPLD_GPIO_UP_KBD, 1, "UP", EV_KEY, 1, 20}, 256 {KEY_DOWN, HTCPLD_GPIO_DOWN_KBD, 1, "DOWN", EV_KEY, 1, 20}, 258 {KEY_LEFT, HTCPLD_GPIO_LEFT_DPAD, 1, "DLEFT", EV_KEY, 1, 20}, 259 {KEY_RIGHT, HTCPLD_GPIO_RIGHT_DPAD, 1, "DRIGHT", EV_KEY, 1, 20}, 260 {KEY_UP, HTCPLD_GPIO_UP_DPAD, 1, "DUP", EV_KEY, 1, 20}, 261 {KEY_DOWN, HTCPLD_GPIO_DOWN_DPAD, 1, "DDOWN", EV_KEY, 1, 20}, 262 {KEY_ENTER, HTCPLD_GPIO_ENTER_DPAD, 1, "DENTER", EV_KEY, 1, 20},
|
/Linux-v5.15/drivers/input/misc/ |
D | soc_button_array.c | 239 info->event_type = EV_KEY; in soc_button_parse_btn_desc() 451 { "power", 0, EV_KEY, KEY_POWER, false, true, true }, 452 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, true }, 453 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true }, 454 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true }, 455 { "rotation_lock", 4, EV_KEY, KEY_ROTATE_LOCK_TOGGLE, false, false, true }, 521 { "power", 0, EV_KEY, KEY_POWER, false, true, true }, 522 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true }, 523 { "volume_down", 4, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
|
/Linux-v5.15/drivers/platform/x86/ |
D | peaq-wmi.c | 60 input_event(input_dev, EV_KEY, KEY_SOUND, 1); in peaq_wmi_poll() 62 input_event(input_dev, EV_KEY, KEY_SOUND, 0); in peaq_wmi_poll() 98 input_set_capability(peaq_poll_dev, EV_KEY, KEY_SOUND); in peaq_wmi_init()
|
/Linux-v5.15/drivers/platform/surface/ |
D | surface3_button.c | 174 { "power", 0, EV_KEY, KEY_POWER, false, true, true }, 175 { "home", 1, EV_KEY, KEY_LEFTMETA, false, true, false }, 176 { "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false, true }, 177 { "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false, true },
|
D | surfacepro3_button.c | 221 input_set_capability(input, EV_KEY, KEY_POWER); in surface_button_add() 222 input_set_capability(input, EV_KEY, KEY_LEFTMETA); in surface_button_add() 223 input_set_capability(input, EV_KEY, KEY_VOLUMEUP); in surface_button_add() 224 input_set_capability(input, EV_KEY, KEY_VOLUMEDOWN); in surface_button_add()
|
/Linux-v5.15/drivers/input/ |
D | input-mt.c | 59 __set_bit(EV_KEY, dev->evbit); in input_mt_init_slots() 176 input_event(dev, EV_KEY, BTN_TOOL_FINGER, count == 1); in input_mt_report_finger_count() 177 input_event(dev, EV_KEY, BTN_TOOL_DOUBLETAP, count == 2); in input_mt_report_finger_count() 178 input_event(dev, EV_KEY, BTN_TOOL_TRIPLETAP, count == 3); in input_mt_report_finger_count() 179 input_event(dev, EV_KEY, BTN_TOOL_QUADTAP, count == 4); in input_mt_report_finger_count() 180 input_event(dev, EV_KEY, BTN_TOOL_QUINTTAP, count == 5); in input_mt_report_finger_count() 221 input_event(dev, EV_KEY, BTN_TOUCH, count > 0); in input_mt_report_pointer_emulation()
|
D | joydev.c | 121 case EV_KEY: in joydev_event() 776 .evbit = { BIT_MASK(EV_KEY) }, 783 .evbit = { BIT_MASK(EV_KEY) }, 833 * EV_ABS, EV_KEY and EV_SYN in joydev_dev_is_absolute_mouse() 835 * EV_ABS, EV_KEY, EV_SYN and EV_MSC in joydev_dev_is_absolute_mouse() 837 * EV_ABS, EV_KEY, EV_SYN, EV_MSC and EV_REL. in joydev_dev_is_absolute_mouse() 846 __set_bit(EV_KEY, jd_scratch); in joydev_dev_is_absolute_mouse() 1046 .evbit = { BIT_MASK(EV_KEY) }, 1052 .evbit = { BIT_MASK(EV_KEY) }, 1058 .evbit = { BIT_MASK(EV_KEY) },
|
/Linux-v5.15/drivers/input/mouse/ |
D | logips2pp.c | 277 input_set_capability(input_dev, EV_KEY, BTN_SIDE); in ps2pp_set_model_properties() 280 input_set_capability(input_dev, EV_KEY, BTN_EXTRA); in ps2pp_set_model_properties() 283 input_set_capability(input_dev, EV_KEY, BTN_TASK); in ps2pp_set_model_properties() 286 input_set_capability(input_dev, EV_KEY, BTN_FORWARD); in ps2pp_set_model_properties() 287 input_set_capability(input_dev, EV_KEY, BTN_BACK); in ps2pp_set_model_properties() 436 input_set_capability(psmouse->dev, EV_KEY, BTN_MIDDLE); in ps2pp_detect()
|
D | gpio_mouse.c | 125 input_set_capability(input, EV_KEY, BTN_LEFT); in gpio_mouse_probe() 127 input_set_capability(input, EV_KEY, BTN_MIDDLE); in gpio_mouse_probe() 129 input_set_capability(input, EV_KEY, BTN_RIGHT); in gpio_mouse_probe()
|
/Linux-v5.15/include/linux/input/ |
D | adxl34x.h | 288 u32 ev_code_tap[3]; /* EV_KEY {X-Axis, Y-Axis, Z-Axis} */ 296 u32 ev_code_ff; /* EV_KEY */ 297 u32 ev_code_act_inactivity; /* EV_KEY */ 354 u32 ev_codes_orient_2d[4]; /* EV_KEY {+X, -X, +Y, -Y} */ 355 u32 ev_codes_orient_3d[6]; /* EV_KEY {+Z, +Y, +X, -X, -Y, -Z} */
|
/Linux-v5.15/drivers/macintosh/ |
D | mac_hid.c | 50 mac_hid_emumouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); in mac_hid_create_emumouse() 77 if (type != EV_KEY) in mac_hid_emumouse_filter() 147 .evbit = { BIT_MASK(EV_KEY) },
|