/openbmc/linux/drivers/input/joystick/ |
H A D | psxpad-spi.c | 240 input_report_key(input, BTN_X, b_rsp4 & BIT(3)); in psxpad_spi_poll() 241 input_report_key(input, BTN_A, b_rsp4 & BIT(2)); in psxpad_spi_poll() 242 input_report_key(input, BTN_B, b_rsp4 & BIT(1)); in psxpad_spi_poll() 243 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll() 244 input_report_key(input, BTN_TL, b_rsp4 & BIT(5)); in psxpad_spi_poll() 267 input_report_key(input, BTN_X, b_rsp4 & BIT(3)); in psxpad_spi_poll() 268 input_report_key(input, BTN_A, b_rsp4 & BIT(2)); in psxpad_spi_poll() 269 input_report_key(input, BTN_B, b_rsp4 & BIT(1)); in psxpad_spi_poll() 270 input_report_key(input, BTN_Y, b_rsp4 & BIT(0)); in psxpad_spi_poll() 275 input_report_key(input, BTN_THUMBL, false); in psxpad_spi_poll() [all …]
|
H A D | spaceball.c | 90 input_report_key(dev, BTN_2, data[2] & 0x02); in spaceball_process_packet() 91 input_report_key(dev, BTN_3, data[2] & 0x04); in spaceball_process_packet() 92 input_report_key(dev, BTN_4, data[2] & 0x08); in spaceball_process_packet() 93 input_report_key(dev, BTN_5, data[1] & 0x01); in spaceball_process_packet() 94 input_report_key(dev, BTN_6, data[1] & 0x02); in spaceball_process_packet() 95 input_report_key(dev, BTN_7, data[1] & 0x04); in spaceball_process_packet() 96 input_report_key(dev, BTN_8, data[1] & 0x10); in spaceball_process_packet() 101 input_report_key(dev, BTN_1, data[2] & 0x01); in spaceball_process_packet() 102 input_report_key(dev, BTN_2, data[2] & 0x02); in spaceball_process_packet() 103 input_report_key(dev, BTN_3, data[2] & 0x04); in spaceball_process_packet() [all …]
|
H A D | xpad.c | 775 input_report_key(dev, BTN_TL2, data[10]); in xpad_process_packet() 803 input_report_key(dev, BTN_A, data[4]); in xpad_process_packet() 804 input_report_key(dev, BTN_B, data[5]); in xpad_process_packet() 805 input_report_key(dev, BTN_X, data[6]); in xpad_process_packet() 806 input_report_key(dev, BTN_Y, data[7]); in xpad_process_packet() 809 input_report_key(dev, BTN_C, data[8]); in xpad_process_packet() 810 input_report_key(dev, BTN_Z, data[9]); in xpad_process_packet() 889 input_report_key(dev, BTN_TL2, data[4]); in xpad360_process_packet() 890 input_report_key(dev, BTN_TR2, data[5]); in xpad360_process_packet() 1078 input_report_key(dev, BTN_TL2, in xpadone_process_packet() [all …]
|
H A D | stinger.c | 52 input_report_key(dev, BTN_A, ((data[0] & 0x20) >> 5)); in stinger_process_packet() 53 input_report_key(dev, BTN_B, ((data[0] & 0x10) >> 4)); in stinger_process_packet() 54 input_report_key(dev, BTN_C, ((data[0] & 0x08) >> 3)); in stinger_process_packet() 55 input_report_key(dev, BTN_X, ((data[0] & 0x04) >> 2)); in stinger_process_packet() 56 input_report_key(dev, BTN_Y, ((data[3] & 0x20) >> 5)); in stinger_process_packet() 57 input_report_key(dev, BTN_Z, ((data[3] & 0x10) >> 4)); in stinger_process_packet() 58 input_report_key(dev, BTN_TL, ((data[3] & 0x08) >> 3)); in stinger_process_packet() 59 input_report_key(dev, BTN_TR, ((data[3] & 0x04) >> 2)); in stinger_process_packet() 60 input_report_key(dev, BTN_SELECT, ((data[3] & 0x02) >> 1)); in stinger_process_packet() 61 input_report_key(dev, BTN_START, (data[3] & 0x01)); in stinger_process_packet()
|
H A D | db9.c | 299 input_report_key(dev, BTN_A, data[j + 3] & 0x80); in db9_saturn_report() 304 input_report_key(dev, BTN_A, data[j + 1] & 0x04); in db9_saturn_report() 315 input_report_key(dev, db9_cd32_btn[i], 0); in db9_saturn_report() 405 input_report_key(dev, BTN_B, ~data & DB9_FIRE1); in db9_timer() 406 input_report_key(dev, BTN_C, ~data & DB9_FIRE2); in db9_timer() 422 input_report_key(dev, BTN_B, ~data & DB9_FIRE1); in db9_timer() 423 input_report_key(dev, BTN_C, ~data & DB9_FIRE2); in db9_timer() 442 input_report_key(dev, BTN_B, ~data & DB9_FIRE1); in db9_timer() 443 input_report_key(dev, BTN_C, ~data & DB9_FIRE2); in db9_timer() 449 input_report_key(dev, BTN_A, ~data & DB9_FIRE1); in db9_timer() [all …]
|
H A D | n64joy.c | 161 input_report_key(dev, BTN_DPAD_UP, data[i].up); in n64joy_poll() 167 input_report_key(dev, BTN_FORWARD, data[i].c_up); in n64joy_poll() 168 input_report_key(dev, BTN_BACK, data[i].c_down); in n64joy_poll() 169 input_report_key(dev, BTN_LEFT, data[i].c_left); in n64joy_poll() 170 input_report_key(dev, BTN_RIGHT, data[i].c_right); in n64joy_poll() 173 input_report_key(dev, BTN_START, data[i].start); in n64joy_poll() 174 input_report_key(dev, BTN_Z, data[i].z); in n64joy_poll() 177 input_report_key(dev, BTN_0, data[i].a); in n64joy_poll() 178 input_report_key(dev, BTN_1, data[i].b); in n64joy_poll() 179 input_report_key(dev, BTN_2, data[i].l); in n64joy_poll() [all …]
|
H A D | maplecontrol.c | 46 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 47 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 48 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 49 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() 50 input_report_key(dev, BTN_Z, buttons & 0x0100); in dc_pad_callback() 51 input_report_key(dev, BTN_Y, buttons & 0x0200); in dc_pad_callback() 52 input_report_key(dev, BTN_X, buttons & 0x0400); in dc_pad_callback() 53 input_report_key(dev, BTN_SELECT, buttons & 0x0800); in dc_pad_callback()
|
H A D | a3d.c | 107 input_report_key(dev, BTN_RIGHT, data[2] & 1); in a3d_read() 108 input_report_key(dev, BTN_LEFT, data[3] & 2); in a3d_read() 109 input_report_key(dev, BTN_MIDDLE, data[3] & 4); in a3d_read() 127 input_report_key(dev, BTN_RIGHT, data[2] & 1); in a3d_read() 128 input_report_key(dev, BTN_LEFT, data[3] & 2); in a3d_read() 129 input_report_key(dev, BTN_MIDDLE, data[3] & 4); in a3d_read() 130 input_report_key(dev, BTN_SIDE, data[7] & 2); in a3d_read() 131 input_report_key(dev, BTN_EXTRA, data[7] & 4); in a3d_read() 143 input_report_key(dev, BTN_TRIGGER, data[8] & 1); in a3d_read() 144 input_report_key(dev, BTN_THUMB, data[8] & 2); in a3d_read() [all …]
|
H A D | gamecon.c | 239 input_report_key(dev, gc_n64_btn[j], in gc_n64_process_packet() 382 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet() 393 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet() 410 input_report_key(dev, BTN_LEFT, s & data[9]); in gc_nes_process_packet() 411 input_report_key(dev, BTN_RIGHT, s & data[8]); in gc_nes_process_packet() 484 input_report_key(dev, BTN_THUMB, s & data[5]); in gc_multi_process_packet() 492 input_report_key(dev, BTN_TRIGGER, s & data[4]); in gc_multi_process_packet() 636 input_report_key(dev, BTN_THUMBL, ~data[0] & 0x04); in gc_psx_report_one() 637 input_report_key(dev, BTN_THUMBR, ~data[0] & 0x02); in gc_psx_report_one() 645 input_report_key(dev, gc_psx_ddr_btn[i], in gc_psx_report_one() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-udraw-ps3.c | 121 input_report_key(udraw->joy_input_dev, BTN_WEST, data[0] & 1); in udraw_raw_event() 123 input_report_key(udraw->joy_input_dev, BTN_EAST, !!(data[0] & 4)); in udraw_raw_event() 214 input_report_key(udraw->touch_input_dev, BTN_TOUCH, 1); in udraw_raw_event() 215 input_report_key(udraw->touch_input_dev, BTN_TOOL_FINGER, in udraw_raw_event() 217 input_report_key(udraw->touch_input_dev, BTN_TOOL_DOUBLETAP, in udraw_raw_event() 223 input_report_key(udraw->touch_input_dev, BTN_TOUCH, 0); in udraw_raw_event() 224 input_report_key(udraw->touch_input_dev, BTN_TOOL_FINGER, 0); in udraw_raw_event() 225 input_report_key(udraw->touch_input_dev, BTN_TOOL_DOUBLETAP, 0); in udraw_raw_event() 237 input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 1); in udraw_raw_event() 242 input_report_key(udraw->pen_input_dev, BTN_TOUCH, 0); in udraw_raw_event() [all …]
|
H A D | wacom_wac.c | 47 input_report_key(input, BTN_TOUCH, 0); in wacom_force_proxout() 48 input_report_key(input, BTN_STYLUS, 0); in wacom_force_proxout() 49 input_report_key(input, BTN_STYLUS2, 0); in wacom_force_proxout() 50 input_report_key(input, BTN_STYLUS3, 0); in wacom_force_proxout() 147 input_report_key(input, BTN_TOUCH, 0); in wacom_penpartner_irq() 416 input_report_key(input, BTN_MIDDLE, in wacom_graphire_irq() 796 input_report_key(input, BTN_LEFT, 0); in wacom_exit_report() 798 input_report_key(input, BTN_RIGHT, 0); in wacom_exit_report() 799 input_report_key(input, BTN_SIDE, 0); in wacom_exit_report() 800 input_report_key(input, BTN_EXTRA, 0); in wacom_exit_report() [all …]
|
H A D | hid-wiimote-modules.c | 1136 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1139 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1142 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1145 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1148 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1151 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1154 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1157 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1160 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() 1163 input_report_key(wdata->extension.input, in wiimod_classic_in_ext() [all …]
|
H A D | hid-lg-g15.c | 485 input_report_key(g15->input, KEY_KBD_LCD_MENU2 + i, val); in lg_g15_handle_lcd_menu_keys() 496 input_report_key(g15->input, KEY_MACRO1 + i, val); in lg_g15_event() 501 input_report_key(g15->input, KEY_MACRO7 + i, val); in lg_g15_event() 506 input_report_key(g15->input, KEY_MACRO13 + i, val); in lg_g15_event() 509 input_report_key(g15->input, KEY_MACRO18, data[8] & 0x40); in lg_g15_event() 514 input_report_key(g15->input, KEY_MACRO_PRESET1 + i, val); in lg_g15_event() 536 input_report_key(g15->input, KEY_MACRO1 + i, val); in lg_g15_v2_event() 550 input_report_key(g15->input, KEY_KBD_LCD_MENU2 + i, val); in lg_g15_v2_event() 569 input_report_key(g15->input, KEY_MACRO1 + i, val); in lg_g510_event() 597 input_report_key(g15->input, KEY_MUTE, data[4] & 0x20); in lg_g510_event() [all …]
|
H A D | hid-letsketch.c | 161 input_report_key(input, BTN_TOOL_PEN, 0); in letsketch_inrange_timeout() 179 input_report_key(input, BTN_TOOL_PEN, 1); in letsketch_raw_event() 180 input_report_key(input, BTN_TOUCH, raw_data[1] & 0x01); in letsketch_raw_event() 181 input_report_key(input, BTN_STYLUS, raw_data[1] & 0x02); in letsketch_raw_event() 182 input_report_key(input, BTN_STYLUS2, raw_data[1] & 0x04); in letsketch_raw_event() 198 input_report_key(input, BTN_0 + i, raw_data[4] == (i + 1)); in letsketch_raw_event()
|
/openbmc/linux/drivers/input/mouse/ |
H A D | sermouse.c | 52 input_report_key(dev, BTN_LEFT, !(data & 4)); in sermouse_process_msc() 53 input_report_key(dev, BTN_RIGHT, !(data & 1)); in sermouse_process_msc() 54 input_report_key(dev, BTN_MIDDLE, !(data & 2)); in sermouse_process_msc() 98 input_report_key(dev, BTN_LEFT, (data >> 5) & 1); in sermouse_process_ms() 99 input_report_key(dev, BTN_RIGHT, (data >> 4) & 1); in sermouse_process_ms() 132 input_report_key(dev, BTN_MIDDLE, (data >> 5) & 1); in sermouse_process_ms() 133 input_report_key(dev, BTN_SIDE, (data >> 4) & 1); in sermouse_process_ms() 138 input_report_key(dev, BTN_SIDE, (data >> 5) & 1); in sermouse_process_ms() 142 input_report_key(dev, BTN_MIDDLE, (data >> 4) & 1); in sermouse_process_ms() 163 input_report_key(dev, BTN_SIDE, (data >> 4) & 1); in sermouse_process_ms() [all …]
|
H A D | vsxxxaa.c | 240 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_REL_packet() 241 input_report_key(dev, BTN_MIDDLE, middle); in vsxxxaa_handle_REL_packet() 242 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_REL_packet() 243 input_report_key(dev, BTN_TOUCH, 0); in vsxxxaa_handle_REL_packet() 292 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_ABS_packet() 293 input_report_key(dev, BTN_MIDDLE, middle); in vsxxxaa_handle_ABS_packet() 294 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_ABS_packet() 295 input_report_key(dev, BTN_TOUCH, touch); in vsxxxaa_handle_ABS_packet() 345 input_report_key(dev, BTN_LEFT, left); in vsxxxaa_handle_POR_packet() 347 input_report_key(dev, BTN_RIGHT, right); in vsxxxaa_handle_POR_packet() [all …]
|
H A D | logips2pp.c | 63 input_report_key(dev, BTN_SIDE, packet[2] & BIT(4)); in ps2pp_process_byte() 64 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(5)); in ps2pp_process_byte() 70 input_report_key(dev, BTN_SIDE, packet[2] & BIT(0)); in ps2pp_process_byte() 71 input_report_key(dev, BTN_EXTRA, packet[2] & BIT(1)); in ps2pp_process_byte() 72 input_report_key(dev, BTN_TASK, packet[2] & BIT(2)); in ps2pp_process_byte() 73 input_report_key(dev, BTN_BACK, packet[2] & BIT(3)); in ps2pp_process_byte() 74 input_report_key(dev, BTN_FORWARD, packet[2] & BIT(4)); in ps2pp_process_byte()
|
H A D | atarimouse.c | 80 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 81 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 82 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
H A D | rpcmouse.c | 53 input_report_key(dev, BTN_LEFT, b & 0x40); in rpcmouse_irq() 54 input_report_key(dev, BTN_MIDDLE, b & 0x20); in rpcmouse_irq() 55 input_report_key(dev, BTN_RIGHT, b & 0x10); in rpcmouse_irq()
|
/openbmc/linux/drivers/input/tablet/ |
H A D | hanwang.c | 124 input_report_key(input_dev, in hanwang_parse_packet() 132 input_report_key(input_dev, in hanwang_parse_packet() 143 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet() 149 input_report_key(input_dev, BTN_TOOL_RUBBER, 1); in hanwang_parse_packet() 187 input_report_key(input_dev, BTN_STYLUS2, in hanwang_parse_packet() 190 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet() 206 input_report_key(input_dev, BTN_TOOL_FINGER, in hanwang_parse_packet() 209 input_report_key(input_dev, BTN_0, data[2]); in hanwang_parse_packet() 211 input_report_key(input_dev, in hanwang_parse_packet() 225 input_report_key(input_dev, in hanwang_parse_packet() [all …]
|
H A D | aiptek.c | 493 input_report_key(inputdev, in aiptek_irq() 535 input_report_key(inputdev, in aiptek_irq() 537 input_report_key(inputdev, in aiptek_irq() 612 input_report_key(inputdev, in aiptek_irq() 614 input_report_key(inputdev, in aiptek_irq() 669 input_report_key(inputdev, in aiptek_irq() 671 input_report_key(inputdev, in aiptek_irq() 710 input_report_key(inputdev, in aiptek_irq() 712 input_report_key(inputdev, in aiptek_irq() 754 input_report_key(inputdev, in aiptek_irq() [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | ep93xx_keypad.c | 100 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 103 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 105 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 106 input_report_key(input_dev, key2, 1); in ep93xx_keypad_irq_handler() 113 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 116 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler() 118 input_report_key(input_dev, key1, 1); in ep93xx_keypad_irq_handler() 124 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler() 125 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler()
|
/openbmc/linux/drivers/macintosh/ |
H A D | adbhid.c | 332 input_report_key(ahid->input, KEY_CAPSLOCK, 1); in adbhid_input_keycode() 334 input_report_key(ahid->input, KEY_CAPSLOCK, 0); in adbhid_input_keycode() 396 input_report_key(adbhid[id]->input, key, !up_flag); in adbhid_input_keycode() 520 input_report_key(adbhid[id]->input, KEY_SOUND, down); in adbhid_buttons_input() 524 input_report_key(adbhid[id]->input, KEY_MUTE, down); in adbhid_buttons_input() 528 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); in adbhid_buttons_input() 532 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); in adbhid_buttons_input() 554 input_report_key(adbhid[id]->input, KEY_MUTE, down); in adbhid_buttons_input() 558 input_report_key(adbhid[id]->input, KEY_VOLUMEDOWN, down); in adbhid_buttons_input() 562 input_report_key(adbhid[id]->input, KEY_VOLUMEUP, down); in adbhid_buttons_input() [all …]
|
/openbmc/linux/drivers/hid/usbhid/ |
H A D | usbmouse.c | 68 input_report_key(dev, BTN_LEFT, data[0] & 0x01); in usb_mouse_irq() 69 input_report_key(dev, BTN_RIGHT, data[0] & 0x02); in usb_mouse_irq() 70 input_report_key(dev, BTN_MIDDLE, data[0] & 0x04); in usb_mouse_irq() 71 input_report_key(dev, BTN_SIDE, data[0] & 0x08); in usb_mouse_irq() 72 input_report_key(dev, BTN_EXTRA, data[0] & 0x10); in usb_mouse_irq()
|
/openbmc/linux/drivers/input/misc/ |
H A D | hisi_powerkey.c | 34 input_report_key(input, KEY_POWER, 1); in hi65xx_power_press_isr() 45 input_report_key(input, KEY_POWER, 0); in hi65xx_power_release_isr() 57 input_report_key(input, KEY_RESTART, !value); in hi65xx_restart_toggle_isr()
|