/linux-master/sound/soc/codecs/ |
H A D | nau8825.c | 1710 int buttons = 0; local 1712 /* The chip supports up to 8 buttons, but ALSA defines only 6 buttons */ 1714 buttons |= SND_JACK_BTN_0; 1716 buttons |= SND_JACK_BTN_1; 1718 buttons |= SND_JACK_BTN_2; 1720 buttons |= SND_JACK_BTN_3; 1722 buttons |= SND_JACK_BTN_4; 1724 buttons |= SND_JACK_BTN_5; 1726 return buttons; [all...] |
H A D | nau8824.c | 929 int buttons = 0; local 931 /* The chip supports up to 8 buttons, but ALSA defines 932 * only 6 buttons. 935 buttons |= SND_JACK_BTN_0; 937 buttons |= SND_JACK_BTN_1; 939 buttons |= SND_JACK_BTN_2; 941 buttons |= SND_JACK_BTN_3; 943 buttons |= SND_JACK_BTN_4; 945 buttons |= SND_JACK_BTN_5; 947 return buttons; [all...] |
H A D | cs42l43.h | 85 unsigned int buttons[CS42L43_N_BUTTONS]; member in struct:cs42l43_codec
|
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...] |
/linux-master/drivers/platform/x86/x86-android-tablets/ |
H A D | core.c | 153 static struct gpio_keys_button *buttons; variable in typeref:struct:gpio_keys_button 290 kfree(buttons); 417 buttons = kcalloc(dev_info->gpio_button_count, sizeof(*buttons), GFP_KERNEL); 418 if (!buttons) { 433 buttons[i] = dev_info->gpio_button[i].button; 434 buttons[i].gpio = desc_to_gpio(gpiod); 439 pdata.buttons = buttons;
|
/linux-master/tools/testing/selftests/hid/tests/ |
H A D | test_tablet.py | 45 We extend it with the various buttons when we need to check them. 503 # assert no other buttons than the tested ones are set 504 buttons = [ 510 buttons.remove(button) 511 for b in buttons: 902 Pen with two buttons and a rubber end, but which reports
|
H A D | test_gamepad.py | 37 buttons = {} 40 buttons[button] = True 41 r = uhdev.event(buttons=buttons) 48 buttons[button] = False 49 r = uhdev.event(buttons=buttons) 60 for b in uhdev.buttons: 64 """check for button reliability when pressing 2 buttons""" 70 b1 = uhdev.buttons[ [all...] |
H A D | base_gamepad.py | 62 self.buttons = (1, 2, 3) 86 buttons=None, 100 :param buttons: a dict of index/bool for the button states, 105 if buttons is not None: 106 for i, b in buttons.items(): 107 if i not in self.buttons: 150 self, *, left=(None, None), right=(None, None), hat_switch=None, buttons=None 161 :param buttons: a dict of index/bool for the button states, 165 left=left, right=right, hat_switch=hat_switch, buttons=buttons [all...] |
H A D | test_wacom_generic.py | 84 Describes the state of each of the buttons / "side switches" that 169 self.buttons = Buttons.clear() 192 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None 200 :param buttons: stylus button state. Use ``None`` for unchanged. 207 if buttons is not None: 208 self.buttons = buttons 209 buttons = self.buttons 226 buttons [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...] |
H A D | wacom_wac.c | 519 int buttons = 0, nbuttons = features->numbered_buttons; local 533 buttons = (data[3] << 1) | (data[2] & 0x01); 536 buttons = data[6]; 538 buttons = (data[4] << 1) | (data[3] & 0x01); 540 buttons = (data[8] << 8) | data[6]; 545 * Three "buttons" are available on the 24HD which are 586 * Do not send hardware buttons under Android. They 596 buttons = (data[4] << 1) | (data[3] & 0x01); 604 buttons = ((data[2] >> 4) << 7) | 616 buttons 1555 int buttons = data[44]; local [all...] |
H A D | wacom_sys.c | 1116 DEVICE_LUMINANCE_ATTR(buttons, img_lum);
|
/linux-master/arch/arm/mach-pxa/ |
H A D | spitz.c | 415 /* Two buttons detecting the lid state */ 431 .buttons = spitz_gpio_keys,
|
/linux-master/arch/arm/mach-orion5x/ |
H A D | ts409-setup.c | 232 .buttons = qnap_ts409_buttons,
|
H A D | net2big-setup.c | 337 .buttons = net2big_buttons,
|
H A D | dns323-setup.c | 356 .buttons = dns323ab_buttons, 370 .buttons = dns323c_buttons,
|
H A D | mv2120-setup.c | 94 .buttons = mv2120_buttons,
|
/linux-master/drivers/media/usb/em28xx/ |
H A D | em28xx-cards.c | 1687 .buttons = std_snapshot_button, 1710 .buttons = std_snapshot_button, 2152 .buttons = std_snapshot_button, 2404 .buttons = speedlink_vad_laplace_buttons, 3416 if (dev->board.buttons ||
|
/linux-master/sound/pci/ |
H A D | cs4281.c | 1186 int *axes, int *buttons) 1198 *buttons = (~jst >> 4) & 0x0F; 1185 snd_cs4281_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
|
H A D | azt3328.c | 1721 int *buttons 1734 *buttons = (~(val) >> 4) & 0xf; 1777 dev_dbg(chip->card->dev, "cooked_read: axes %d %d %d %d buttons %d\n", 1778 axes[0], axes[1], axes[2], axes[3], *buttons);
|
/linux-master/include/linux/platform_data/ |
H A D | cros_ec_commands.h | 3189 * For buttons and switches, info about which specifically are 3194 * bitmask indicating which buttons or switches are present. See the 3200 * Instantaneous state of buttons and switches. 3210 * For EC_MKBP_EVENT_BUTTON, returns uint32_t buttons, indicating the 3211 * state of supported buttons. 3378 /* The state of the non-matrixed buttons have changed. */ 3426 uint32_t buttons; member in union:ec_response_get_next_data 3451 uint32_t buttons; member in union:ec_response_get_next_data_v1 3478 /* Bit indices for buttons and switches.*/
|
/linux-master/drivers/mfd/ |
H A D | rohm-bd71828.c | 29 .buttons = &button,
|
H A D | rohm-bd718x7.c | 28 .buttons = &button,
|
H A D | mc13xxx-core.c | 474 pdata->buttons, sizeof(*pdata->buttons));
|
/linux-master/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 3 * Driver for buttons on GPIO lines not capable of generating interrupts 101 gpio_keys_button_event(input, &pdata->buttons[i], 104 gpio_keys_polled_check_state(input, &pdata->buttons[i], 161 pdata->buttons = button; 208 const struct gpio_keys_button *button = &pdata->buttons[i]; 280 const struct gpio_keys_button *button = &pdata->buttons[i]; 363 /* report initial state of the buttons */ 365 gpio_keys_polled_check_state(input, &pdata->buttons[i],
|