Searched refs:buttons (Results 1 - 25 of 86) sorted by relevance

1234

/linux-master/include/linux/
H A Dtca6416_keypad.h23 struct tca6416_button *buttons; member in struct:tca6416_keys_platform_data
H A Dgpio_keys.h43 * @buttons: pointer to array of &gpio_keys_button structures
44 * describing buttons attached to the device
45 * @nbuttons: number of elements in @buttons array
53 const struct gpio_keys_button *buttons; member in struct:gpio_keys_platform_data
/linux-master/drivers/mfd/
H A Ducb1x00-assabet.c42 static struct gpio_keys_button buttons[6]; local
45 memset(buttons, 0, sizeof(buttons));
48 for (i = 0; i < ARRAY_SIZE(buttons); i++) {
49 buttons[i].code = BTN_0 + i;
50 buttons[i].gpio = ucb->gpio.base + i;
51 buttons[i].type = EV_KEY;
52 buttons[i].can_disable = true;
55 keys.buttons = buttons;
[all...]
/linux-master/tools/testing/selftests/hid/tests/
H A Dtest_gamepad.py36 buttons = {}
39 buttons[button] = True
40 r = uhdev.event(buttons=buttons)
47 buttons[button] = False
48 r = uhdev.event(buttons=buttons)
59 for b in uhdev.buttons:
63 """check for button reliability when pressing 2 buttons"""
69 b1 = uhdev.buttons[
[all...]
H A Dtest_wacom_generic.py84 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/arch/mips/bcm47xx/
H A DMakefile8 obj-y += board.o buttons.o leds.o workarounds.o
/linux-master/drivers/input/joystick/
H A Dmaplecontrol.c29 unsigned short buttons; local
35 buttons = ~le16_to_cpup((__le16 *)(res + 8));
38 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0));
40 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0));
42 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0));
44 (buttons & 0x4000 ? -1 : 0) + (buttons
[all...]
H A Djoydump.c34 int axes[4], buttons; local
54 gameport_cooked_read(gameport, axes, &buttons);
58 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons);
H A Danalog.c94 short *buttons; member in struct:analog
110 int buttons; member in struct:analog_port
119 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) argument
127 buttons |= 1 << (i + 14);
133 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1);
137 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1);
155 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((
[all...]
H A Dtwidjoy.c14 * The Twiddler is a one-handed chording keyboard featuring twelve buttons on
15 * the front, six buttons on the top, and a built-in tilt sensor. The buttons
16 * on the front, which are grouped as four rows of three buttons, are pressed
18 * at the same time) and the buttons on the top are for the thumb. The tilt
26 * controller with amazing 18 buttons :-)
55 int buttons[3]; member in struct:twidjoy_button_spec
101 input_report_key(dev, bp->buttons[i], i+1 == value);
196 set_bit(bp->buttons[i], input_dev->keybit);
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...]
/linux-master/arch/mips/cobalt/
H A DMakefile6 obj-y := buttons.o irq.o lcd.o led.o mtd.o reset.o rtc.o serial.o setup.o time.o
/linux-master/drivers/input/mouse/
H A Datarimouse.c65 int buttons, dx, dy; local
67 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1);
69 buttons |= atari_mouse_buttons & 2;
70 atari_mouse_buttons = buttons;
80 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4);
81 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2);
82 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1);
H A Dlogibm.c61 unsigned char buttons; local
70 buttons = inb(LOGIBM_DATA_PORT);
71 dy |= (buttons & 0xf) << 4;
72 buttons = ~buttons >> 5;
76 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1);
77 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2);
78 input_report_key(logibm_dev, BTN_LEFT, buttons & 4);
H A Dmaplemouse.c29 int buttons, relx, rely, relz; local
35 buttons = ~res[8];
40 input_report_key(dev, BTN_LEFT, buttons & 4);
41 input_report_key(dev, BTN_MIDDLE, buttons & 9);
42 input_report_key(dev, BTN_RIGHT, buttons & 2);
H A Dinport.c69 unsigned char buttons; local
81 buttons = inb(INPORT_DATA_PORT);
83 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1);
84 input_report_key(inport_dev, BTN_LEFT, buttons & 2);
85 input_report_key(inport_dev, BTN_RIGHT, buttons & 4);
/linux-master/drivers/input/keyboard/
H A Dtca6416-keypad.c51 struct tca6416_button buttons[]; member in struct:tca6416_keypad_chip
106 struct tca6416_button *button = &chip->buttons[pin_index];
205 struct_size(chip, buttons, pdata->nbuttons),
238 chip->buttons[i] = pdata->buttons[i];
239 type = (pdata->buttons[i].type) ?: EV_KEY;
240 input_set_capability(input, type, pdata->buttons[i].code);
H A Dgpio_keys_polled.c3 * 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],
/linux-master/drivers/input/gameport/
H A Dfm801-gp.c29 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
34 *buttons = (~w >> 14) & 0x03;
39 *buttons |= ((~w >> 14) & 0x03) << 2;
/linux-master/drivers/input/
H A Dmousedev.c55 unsigned long buttons; member in struct:mousedev_hw_data
90 unsigned long buttons; member in struct:mousedev_motion
253 set_bit(index, &mousedev->packet.buttons);
254 set_bit(index, &mousedev_mix->packet.buttons);
256 clear_bit(index, &mousedev->packet.buttons);
257 clear_bit(index, &mousedev_mix->packet.buttons);
276 if (client->ready && p->buttons != mousedev->packet.buttons) {
300 p->buttons = mousedev->packet.buttons;
[all...]
/linux-master/drivers/misc/ibmasm/
H A Dremote.c125 unsigned char buttons = input->mouse_buttons; local
128 (buttons) ? " -- buttons:" : "",
129 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "",
130 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "",
131 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : ""
146 unsigned char buttons = input->mouse_buttons; local
150 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT);
151 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE);
152 input_report_key(dev, BTN_RIGHT, buttons
[all...]
/linux-master/drivers/platform/x86/x86-android-tablets/
H A Dcore.c155 static struct gpio_keys_button *buttons; variable in typeref:struct:gpio_keys_button
292 kfree(buttons);
419 buttons = kcalloc(dev_info->gpio_button_count, sizeof(*buttons), GFP_KERNEL);
420 if (!buttons) {
435 buttons[i] = dev_info->gpio_button[i].button;
436 buttons[i].gpio = desc_to_gpio(gpiod);
441 pdata.buttons = buttons;
/linux-master/arch/mips/sgi-ip22/
H A Dip22-reset.c142 unsigned int buttons; local
144 buttons = sgioc->panel;
160 if (!(buttons & SGIOC_PANEL_POWERINTR))
/linux-master/sound/pci/au88x0/
H A Dau88x0_game.c43 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
48 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf;
/linux-master/drivers/platform/x86/
H A Dbarco-p50-gpio.c101 static struct gpio_keys_button buttons[] = { variable in typeref:struct:gpio_keys_button
112 .buttons = buttons,
113 .nbuttons = ARRAY_SIZE(buttons),
350 buttons[0].gpio += p50->gc.base;

Completed in 254 milliseconds

1234