/linux-master/drivers/input/joystick/ |
H A D | adi.c | 51 * 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 D | a3d.c | 40 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 D | grip_mp.c | 45 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 D | ims-pcu.c | 109 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 D | hid-playstation.c | 212 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 D | gameport.h | 175 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 D | devices-rsk7203.c | 106 .buttons = rsk7203_gpio_keys_table,
|
/linux-master/include/uapi/linux/ |
H A D | joystick.h | 58 #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 D | logips2pp.c | 68 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 D | sentelic.h | 97 unsigned int buttons; /* Number of buttons */ member in struct:fsp_data
|
/linux-master/arch/x86/platform/geode/ |
H A D | net5501.c | 4 * At the moment this means setup of GPIO control of LEDs and buttons 43 .buttons = net5501_gpio_buttons,
|
H A D | geos.c | 41 .buttons = geos_gpio_buttons,
|
H A D | alix.c | 57 .buttons = alix_gpio_buttons,
|
/linux-master/arch/mips/bcm47xx/ |
H A D | buttons.c | 501 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 D | cros_ec_keyb.c | 45 * @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 D | cs42l43-jack.c | 96 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 D | cs42l43.h | 85 unsigned int buttons[CS42L43_N_BUTTONS]; member in struct:cs42l43_codec
|
/linux-master/arch/arm/mach-mv78xx0/ |
H A D | buffalo-wxl-setup.c | 118 .buttons = tswxl_buttons,
|
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | test_mouse.py | 42 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 D | lightning.c | 57 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 D | em28xx-input.c | 494 * 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 D | meraki-mx100.c | 133 .buttons = tink_buttons,
|
H A D | pcengines-apuv2.c | 5 * for GPIO buttons and LEDs 115 .buttons = apu2_keys_buttons,
|
/linux-master/sound/pci/hda/ |
H A D | hda_jack.c | 547 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 D | setup.c | 197 .buttons = baseboard_buttons,
|