Searched refs:buttons (Results 26 - 50 of 88) sorted by relevance

1234

/linux-master/drivers/input/joystick/
H A Dadi.c51 * Names, buttons, axes ...
95 char buttons; member in struct:adi
213 for (i = 0; i < adi->buttons && i < 63; i++) {
228 for (i = 63; i < adi->buttons; i++)
336 adi->buttons = adi_get_bits(adi, 6);
344 adi->buttons += adi_get_bits(adi, 6);
360 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4;
370 adi->buttons -= 4;
374 adi->buttons -= 4;
419 for (i = 0; i < adi->buttons;
[all...]
H A Da3d.c40 int buttons; member in struct:a3d
118 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf;
178 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
185 *buttons = a3d->buttons;
H A Dgrip_mp.c45 int buttons; member in struct:grip_port
412 port->buttons = (~packet) & 0xff;
518 input_report_key(port->dev, grip_btn_gp[i], (port->buttons >> i) & 1);
/linux-master/drivers/input/misc/
H A Dims-pcu.c109 struct ims_pcu_buttons buttons; member in struct:ims_pcu
185 struct ims_pcu_buttons *buttons = &pcu->buttons; local
186 struct input_dev *input = buttons->input;
190 unsigned short keycode = buttons->keymap[i];
203 struct ims_pcu_buttons *buttons = &pcu->buttons; local
215 snprintf(buttons->name, sizeof(buttons->name),
218 usb_make_path(pcu->udev, buttons
252 struct ims_pcu_buttons *buttons = &pcu->buttons; local
[all...]
/linux-master/drivers/hid/
H A Dhid-playstation.c212 uint8_t buttons[4]; member in struct:dualsense_input_report
428 uint8_t buttons[3]; member in struct:dualshock4_input_report_common
515 * Common gamepad buttons across DualShock 3 / 4 and DualSense.
1359 value = ds_report->buttons[0] & DS_BUTTONS0_HAT_SWITCH;
1365 input_report_key(ds->gamepad, BTN_WEST, ds_report->buttons[0] & DS_BUTTONS0_SQUARE);
1366 input_report_key(ds->gamepad, BTN_SOUTH, ds_report->buttons[0] & DS_BUTTONS0_CROSS);
1367 input_report_key(ds->gamepad, BTN_EAST, ds_report->buttons[0] & DS_BUTTONS0_CIRCLE);
1368 input_report_key(ds->gamepad, BTN_NORTH, ds_report->buttons[0] & DS_BUTTONS0_TRIANGLE);
1369 input_report_key(ds->gamepad, BTN_TL, ds_report->buttons[1] & DS_BUTTONS1_L1);
1370 input_report_key(ds->gamepad, BTN_TR, ds_report->buttons[
[all...]
/linux-master/include/linux/
H A Dgameport.h175 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
178 return gameport->cooked_read(gameport, axes, buttons);
/linux-master/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c106 .buttons = rsk7203_gpio_keys_table,
/linux-master/include/uapi/linux/
H A Djoystick.h58 #define JSIOCGBUTTONS _IOR('j', 0x12, __u8) /* get number of buttons */
109 __s32 buttons; member in struct:JS_DATA_TYPE
/linux-master/drivers/input/mouse/
H A Dlogips2pp.c68 case 0x0e: /* buttons 4, 5, 6, 7, 8, 9, 10 info */
362 u8 model, buttons; local
375 buttons = param[1];
377 if (!model || !buttons)
435 if (buttons >= 3)
H A Dsentelic.h97 unsigned int buttons; /* Number of buttons */ member in struct:fsp_data
/linux-master/arch/x86/platform/geode/
H A Dnet5501.c4 * At the moment this means setup of GPIO control of LEDs and buttons
43 .buttons = net5501_gpio_buttons,
H A Dgeos.c41 .buttons = geos_gpio_buttons,
H A Dalix.c57 .buttons = alix_gpio_buttons,
/linux-master/arch/mips/bcm47xx/
H A Dbuttons.c501 static int __init bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, argument
504 size_t size = nbuttons * sizeof(*buttons);
506 bcm47xx_button_pdata.buttons = kmemdup(buttons, size, GFP_KERNEL);
507 if (!bcm47xx_button_pdata.buttons)
767 pr_debug("No buttons configuration found for this device\n");
/linux-master/drivers/input/keyboard/
H A Dcros_ec_keyb.c45 * @bs_idev: The input device for non-matrix buttons and switches (or NULL).
218 * cros_ec_keyb_report_bs - Report non-matrixed buttons or switches
220 * This takes a bitmap of buttons or switches from the EC and reports events,
225 * @mask: A bitmap of buttons from the EC.
291 &ckdev->ec->event_data.data.buttons);
399 * kernel. Note that we don't query for buttons because they are more
444 * cros_ec_keyb_register_bs - Register non-matrix buttons/switches
446 * Handles all the bits of the keyboard driver related to non-matrix buttons
450 * If this device has no support for buttons and switches we'll return no error
467 u32 buttons; local
[all...]
/linux-master/sound/soc/codecs/
H A Dcs42l43-jack.c96 ret = device_property_count_u32(cs42l43->dev, "cirrus,buttons-ohms");
99 dev_err(priv->dev, "Property cirrus,buttons-ohms malformed: %d\n",
106 dev_err(priv->dev, "Property cirrus,buttons-ohms too many entries\n");
110 ret = device_property_read_u32_array(cs42l43->dev, "cirrus,buttons-ohms",
111 priv->buttons, ret);
118 priv->buttons[0] = 70;
119 priv->buttons[1] = 185;
120 priv->buttons[2] = 355;
121 priv->buttons[3] = 735;
373 unsigned int buttons local
[all...]
H A Dcs42l43.h85 unsigned int buttons[CS42L43_N_BUTTONS]; member in struct:cs42l43_codec
/linux-master/arch/arm/mach-mv78xx0/
H A Dbuffalo-wxl-setup.c118 .buttons = tswxl_buttons,
/linux-master/tools/testing/selftests/hid/tests/
H A Dtest_mouse.py42 def create_report(self, x, y, buttons=None, wheels=None, reportID=None):
48 :param buttons: a (l, r, m) tuple of bools for the button states,
54 if buttons is not None:
55 left, right, middle = buttons
88 def event(self, x, y, buttons=None, wheels=None):
94 :param buttons: a (l, r, m) tuple of bools for the button states,
99 r = self.create_report(x, y, buttons, wheels)
142 def fake_report(self, x, y, buttons):
143 if buttons is not None:
144 left, right, middle = buttons
[all...]
/linux-master/drivers/input/gameport/
H A Dlightning.c57 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
81 *buttons = inb(L4_PORT) & 0x0f;
/linux-master/drivers/media/usb/em28xx/
H A Dem28xx-input.c494 * Handle buttons
512 /* Check states of the buttons and act */
514 while (dev->board.buttons[j].role >= 0 &&
515 dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) {
518 button = &dev->board.buttons[j];
617 while (dev->board.buttons[i].role >= 0 &&
618 dev->board.buttons[i].role < EM28XX_NUM_BUTTON_ROLES) {
619 const struct em28xx_button *button = &dev->board.buttons[i];
704 if (dev->board.buttons)
/linux-master/drivers/platform/x86/
H A Dmeraki-mx100.c133 .buttons = tink_buttons,
H A Dpcengines-apuv2.c5 * for GPIO buttons and LEDs
115 .buttons = apu2_keys_buttons,
/linux-master/sound/pci/hda/
H A Dhda_jack.c547 int err, state, buttons; local
558 buttons = 0;
561 buttons |= map->type;
564 err = snd_jack_new(codec->card, name, type | buttons,
/linux-master/arch/sh/boards/mach-x3proto/
H A Dsetup.c197 .buttons = baseboard_buttons,

Completed in 190 milliseconds

1234