Home
last modified time | relevance | path

Searched refs:buttons (Results 1 – 25 of 191) sorted by relevance

12345678

/Linux-v4.19/drivers/input/joystick/
Dmaplecontrol.c28 unsigned short buttons; in dc_pad_callback() local
34 buttons = ~le16_to_cpup((__le16 *)(res + 8)); in dc_pad_callback()
37 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); in dc_pad_callback()
39 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback()
41 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback()
43 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback()
45 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback()
46 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback()
47 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback()
48 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback()
[all …]
Danalog.c112 short *buttons; member
129 int buttons; member
198 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument
206 buttons |= 1 << (i + 14); in analog_decode()
212 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode()
216 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode()
234 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); in analog_decode()
236 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); in analog_decode()
305 port->buttons = (~u >> 4) & 0xf; in analog_button_read()
309 port->buttons = 0; in analog_button_read()
[all …]
Djoydump.c49 int axes[4], buttons; in joydump_connect() local
69 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect()
73 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons); in joydump_connect()
Dadi.c110 char buttons; member
228 for (i = 0; i < adi->buttons && i < 63; i++) { in adi_decode()
243 for (i = 63; i < adi->buttons; i++) in adi_decode()
351 adi->buttons = adi_get_bits(adi, 6); in adi_id_decode()
359 adi->buttons += adi_get_bits(adi, 6); in adi_id_decode()
375 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4; in adi_id_decode()
385 adi->buttons -= 4; in adi_id_decode()
389 adi->buttons -= 4; in adi_id_decode()
434 for (i = 0; i < adi->buttons; i++) in adi_init_input()
Dtwidjoy.c70 int buttons[3]; member
116 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet()
211 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
Da3d.c55 int buttons; member
133 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf; in a3d_read()
193 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument
200 *buttons = a3d->buttons; in a3d_adc_cooked_read()
/Linux-v4.19/drivers/mfd/
Ducb1x00-assabet.c45 static struct gpio_keys_button buttons[6]; in ucb1x00_assabet_add() local
48 memset(buttons, 0, sizeof(buttons)); in ucb1x00_assabet_add()
51 for (i = 0; i < ARRAY_SIZE(buttons); i++) { in ucb1x00_assabet_add()
52 buttons[i].code = BTN_0 + i; in ucb1x00_assabet_add()
53 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add()
54 buttons[i].type = EV_KEY; in ucb1x00_assabet_add()
55 buttons[i].can_disable = true; in ucb1x00_assabet_add()
58 keys.buttons = buttons; in ucb1x00_assabet_add()
59 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
/Linux-v4.19/Documentation/input/
Dgamepad.rst44 4 buttons in diamonds-shape (on the right side). The buttons are
48 4 buttons (on the left side) that point up, down, left and right.
50 Different constellations, but most-times 2 buttons: SELECT - START
52 special system-button. It often looks different to the other buttons and
60 Not all devices provide them, but the upper buttons are normally named
61 Left- and Right-Triggers, the lower buttons Z-Left and Z-Right.
83 the buttons from this protocol. However, they try to do this in a compatible
84 fashion. For example, the "Nintendo Wii Nunchuk" provides two trigger buttons
86 analog stick and two trigger buttons on the right side.
101 Every gamepad device has at least 2 action buttons. This means, that every
[all …]
/Linux-v4.19/drivers/input/mouse/
Datarimouse.c70 int buttons, dx, dy; in atamouse_interrupt() local
72 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); in atamouse_interrupt()
74 buttons |= atari_mouse_buttons & 2; in atamouse_interrupt()
75 atari_mouse_buttons = buttons; in atamouse_interrupt()
85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt()
86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt()
87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
Dlogibm.c76 unsigned char buttons; in logibm_interrupt() local
85 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt()
86 dy |= (buttons & 0xf) << 4; in logibm_interrupt()
87 buttons = ~buttons >> 5; in logibm_interrupt()
91 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt()
92 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt()
93 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
Dmaplemouse.c28 int buttons, relx, rely, relz; in dc_mouse_callback() local
34 buttons = ~res[8]; in dc_mouse_callback()
39 input_report_key(dev, BTN_LEFT, buttons & 4); in dc_mouse_callback()
40 input_report_key(dev, BTN_MIDDLE, buttons & 9); in dc_mouse_callback()
41 input_report_key(dev, BTN_RIGHT, buttons & 2); in dc_mouse_callback()
Dinport.c84 unsigned char buttons; in inport_interrupt() local
96 buttons = inb(INPORT_DATA_PORT); in inport_interrupt()
98 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt()
99 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt()
100 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
/Linux-v4.19/drivers/input/
Dmousedev.c58 unsigned long buttons; member
93 unsigned long buttons; member
256 set_bit(index, &mousedev->packet.buttons); in mousedev_key_event()
257 set_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event()
259 clear_bit(index, &mousedev->packet.buttons); in mousedev_key_event()
260 clear_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event()
279 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers()
303 p->buttons = mousedev->packet.buttons; in mousedev_notify_readers()
306 p->buttons != client->last_buttons) in mousedev_notify_readers()
333 set_bit(0, &mousedev->packet.buttons); in mousedev_touchpad_touch()
[all …]
/Linux-v4.19/arch/mips/ath79/
Ddev-gpio-buttons.c21 struct gpio_keys_button *buttons) in ath79_register_gpio_keys_polled() argument
28 p = kmemdup(buttons, nbuttons * sizeof(*p), GFP_KERNEL); in ath79_register_gpio_keys_polled()
39 pdata.buttons = p; in ath79_register_gpio_keys_polled()
/Linux-v4.19/drivers/misc/ibmasm/
Dremote.c139 unsigned char buttons = input->mouse_buttons; in print_input() local
142 (buttons) ? " -- buttons:" : "", in print_input()
143 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", in print_input()
144 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", in print_input()
145 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" in print_input()
160 unsigned char buttons = input->mouse_buttons; in send_mouse_event() local
164 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); in send_mouse_event()
165 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); in send_mouse_event()
166 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); in send_mouse_event()
/Linux-v4.19/Documentation/input/devices/
Dxpad.rst10 Due to backwards compatibility all buttons are reported as digital.
12 have only digital face buttons.
23 The number of buttons/axes reported varies based on 3 things:
28 module configuration for "Map D-PAD to buttons rather than axes for unknown
33 If you said Y it will map the d-pad to buttons, which is needed for dance
47 axes and 10 buttons.
54 All of the 10 buttons work (in digital mode). The six buttons on the
66 When using a known dance pad, jstest will report 6 axes and 14 buttons.
73 Known dance pads automatically map the d-pad to buttons and will work
77 of buttons, see section 0.3 - Unknown Controllers
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/input/
Dadc-keys.txt1 ADC attached resistor ladder buttons
7 - io-channel-names = "buttons";
29 io-channel-names = "buttons";
/Linux-v4.19/drivers/input/keyboard/
Dtca6416-keypad.c54 struct tca6416_button buttons[0]; member
109 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan()
258 chip->buttons[i] = pdata->buttons[i]; in tca6416_keypad_probe()
259 type = (pdata->buttons[i].type) ?: EV_KEY; in tca6416_keypad_probe()
260 input_set_capability(input, type, pdata->buttons[i].code); in tca6416_keypad_probe()
Dgpio_keys_polled.c107 gpio_keys_button_event(dev, &pdata->buttons[i], in gpio_keys_polled_poll()
110 gpio_keys_polled_check_state(dev, &pdata->buttons[i], in gpio_keys_polled_poll()
165 pdata->buttons = button; in gpio_keys_polled_get_devtree_pdata()
210 const struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_set_abs_params()
288 const struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_probe()
372 gpio_keys_polled_check_state(poll_dev, &pdata->buttons[i], in gpio_keys_polled_probe()
Dcros_ec_keyb.c269 &ckdev->ec->event_data.data.buttons); in cros_ec_keyb_work()
446 u32 buttons; in cros_ec_keyb_register_bs() local
453 sizeof(event_data.buttons)); in cros_ec_keyb_register_bs()
456 buttons = get_unaligned_le32(&event_data.buttons); in cros_ec_keyb_register_bs()
465 if (!buttons && !switches) in cros_ec_keyb_register_bs()
496 if (buttons & BIT(map->bit)) in cros_ec_keyb_register_bs()
/Linux-v4.19/drivers/input/gameport/
Dfm801-gp.c44 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument
49 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read()
54 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
/Linux-v4.19/arch/mips/sgi-ip22/
Dip22-reset.c142 unsigned int buttons; in panel_int() local
144 buttons = sgioc->panel; in panel_int()
160 if (!(buttons & SGIOC_PANEL_POWERINTR)) in panel_int()
/Linux-v4.19/drivers/input/misc/
Dims-pcu.c114 struct ims_pcu_buttons buttons; member
190 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_buttons_report() local
191 struct input_dev *input = buttons->input; in ims_pcu_buttons_report()
195 unsigned short keycode = buttons->keymap[i]; in ims_pcu_buttons_report()
208 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_setup_buttons() local
220 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons()
223 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons()
224 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons()
226 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons()
228 input->name = buttons->name; in ims_pcu_setup_buttons()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/sound/
Dnau8824.txt29 - nuvoton,sar-threshold-num: Number of buttons supported
30 …- nuvoton,sar-threshold: Impedance threshold for each button. Array that contains up to 8 buttons
79 // Setup 4 buttons impedance according to Android specification
/Linux-v4.19/sound/pci/au88x0/
Dau88x0_game.c56 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) in vortex_game_cooked_read() argument
61 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; in vortex_game_cooked_read()

12345678