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

12

/drivers/mfd/
H A Ducb1x00-assabet.c45 static struct gpio_keys_button buttons[6]; local
48 memset(buttons, 0, sizeof(buttons));
51 for (i = 0; i < ARRAY_SIZE(buttons); i++) {
52 buttons[i].code = BTN_0 + i;
53 buttons[i].gpio = ucb->gpio.base + i;
54 buttons[i].type = EV_KEY;
55 buttons[i].can_disable = true;
58 keys.buttons = buttons;
[all...]
/drivers/input/joystick/
H A Dmaplecontrol.c28 unsigned short buttons; local
34 buttons = ~le16_to_cpup((__le16 *)(res + 8));
37 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0));
39 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0));
41 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0));
43 (buttons & 0x4000 ? -1 : 0) + (buttons
[all...]
H A Djoydump.c54 int axes[4], buttons; local
74 gameport_cooked_read(gameport, axes, &buttons);
78 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons);
H A Danalog.c111 short *buttons; member in struct:analog
128 int buttons; member in struct:analog_port
182 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) argument
190 buttons |= 1 << (i + 14);
196 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1);
200 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1);
218 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((
[all...]
H A Dadi.c71 * Names, buttons, axes ...
115 char buttons; member in struct:adi
233 for (i = 0; i < adi->buttons && i < 63; i++) {
248 for (i = 63; i < adi->buttons; i++)
356 adi->buttons = adi_get_bits(adi, 6);
364 adi->buttons += adi_get_bits(adi, 6);
380 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4;
390 adi->buttons -= 4;
394 adi->buttons -= 4;
439 for (i = 0; i < adi->buttons;
[all...]
H A Dtwidjoy.c13 * The Twiddler is a one-handed chording keyboard featuring twelve buttons on
14 * the front, six buttons on the top, and a built-in tilt sensor. The buttons
15 * on the front, which are grouped as four rows of three buttons, are pressed
17 * at the same time) and the buttons on the top are for the thumb. The tilt
25 * controller with amazing 18 buttons :-)
71 int buttons[3]; member in struct:twidjoy_button_spec
117 input_report_key(dev, bp->buttons[i], i+1 == value);
212 set_bit(bp->buttons[i], input_dev->keybit);
H A Da3d.c60 int buttons; member in struct:a3d
138 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf;
198 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
205 *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);
H A Dtmdc.c101 const short *buttons; member in struct:tmdc_model
300 port->btn = model->buttons;
/drivers/input/mouse/
H A Datarimouse.c70 int buttons, dx, dy; local
72 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1);
74 buttons |= atari_mouse_buttons & 2;
75 atari_mouse_buttons = buttons;
85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4);
86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2);
87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1);
H A Dlogibm.c80 unsigned char buttons; local
89 buttons = inb(LOGIBM_DATA_PORT);
90 dy |= (buttons & 0xf) << 4;
91 buttons = ~buttons >> 5;
95 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1);
96 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2);
97 input_report_key(logibm_dev, BTN_LEFT, buttons & 4);
H A Dinport.c88 unsigned char buttons; local
100 buttons = inb(INPORT_DATA_PORT);
102 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1);
103 input_report_key(inport_dev, BTN_LEFT, buttons & 2);
104 input_report_key(inport_dev, BTN_RIGHT, buttons & 4);
H A Dmaplemouse.c28 int buttons, relx, rely, relz; local
34 buttons = ~res[8];
39 input_report_key(dev, BTN_LEFT, buttons & 4);
40 input_report_key(dev, BTN_MIDDLE, buttons & 9);
41 input_report_key(dev, BTN_RIGHT, buttons & 2);
H A Dlogips2pp.c68 case 0x0e: /* buttons 4, 5, 6, 7, 8, 9, 10 info */
332 unsigned char model, buttons; local
346 buttons = param[1];
348 if (!model || !buttons)
416 if (buttons >= 3)
H A Dsentelic.h102 unsigned int buttons; /* Number of buttons */ member in struct:fsp_data
/drivers/input/keyboard/
H A Dgpio_keys.c108 * input events anymore. Note that one can only disable buttons
113 * disabling buttons at the same time.
148 * gpio_keys_attr_show_helper() - fill in stringified bitmap of buttons
152 * @only_disabled: does caller want only those buttons that are
153 * currently disabled or all buttons that can be
156 * This function writes buttons that can be disabled to @buf. If
157 * @only_disabled is true, then @buf contains only those buttons
196 * gpio_keys_attr_store_helper() - enable/disable buttons based on given bitmap
202 * GPIO buttons accordingly. Returns 0 on success and negative error
486 dev_err(dev, "Only EV_KEY allowed for IRQ buttons
550 struct gpio_keys_button *buttons; local
[all...]
H A Dgpio_keys_polled.c2 * Driver for buttons on GPIO lines not capable of generating interrupts
80 gpio_keys_polled_check_state(input, &pdata->buttons[i],
150 struct gpio_keys_button *button = &pdata->buttons[i];
197 /* report initial state of the buttons */
199 gpio_keys_polled_check_state(input, &pdata->buttons[i],
206 gpio_free(pdata->buttons[i].gpio);
226 gpio_free(pdata->buttons[i].gpio);
H A Dtca6416-keypad.c54 struct tca6416_button buttons[0]; member in struct:tca6416_keypad_chip
109 struct tca6416_button *button = &chip->buttons[pin_index];
258 chip->buttons[i] = pdata->buttons[i];
259 type = (pdata->buttons[i].type) ?: EV_KEY;
260 input_set_capability(input, type, pdata->buttons[i].code);
/drivers/staging/quickstart/
H A Dquickstart.c68 static LIST_HEAD(buttons);
81 if (list_empty(&buttons))
84 list_for_each_entry(b, &buttons, list) {
129 list_add_tail(&b->list, &buttons);
148 list_for_each_entry_safe(b, n, &buttons, list)
324 static DEVICE_ATTR(buttons, 0444, quickstart_buttons_show, NULL);
378 list_for_each_entry(b, &buttons, list) {
406 if (list_empty(&buttons)) {
/drivers/input/
H A Dmousedev.c59 unsigned long buttons; member in struct:mousedev_hw_data
91 unsigned long buttons; member in struct:mousedev_motion
261 set_bit(index, &mousedev->packet.buttons);
262 set_bit(index, &mousedev_mix->packet.buttons);
264 clear_bit(index, &mousedev->packet.buttons);
265 clear_bit(index, &mousedev_mix->packet.buttons);
284 if (client->ready && p->buttons != mousedev->packet.buttons) {
309 p->buttons = mousedev->packet.buttons;
[all...]
/drivers/misc/ibmasm/
H A Dremote.c139 unsigned char buttons = input->mouse_buttons; local
142 (buttons) ? " -- buttons:" : "",
143 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "",
144 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "",
145 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : ""
160 unsigned char buttons = input->mouse_buttons; local
164 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT);
165 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE);
166 input_report_key(dev, BTN_RIGHT, buttons
[all...]
/drivers/input/gameport/
H A Dfm801-gp.c45 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
50 *buttons = (~w >> 14) & 0x03;
55 *buttons |= ((~w >> 14) & 0x03) << 2;
H A Dlightning.c76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
100 *buttons = inb(L4_PORT) & 0x0f;
/drivers/hid/
H A Dhid-roccat-pyra.h64 uint8_t buttons[14]; member in struct:pyra_profile_buttons
/drivers/input/misc/
H A DKconfig150 tristate "MC13783 ON buttons"
153 Support the ON buttons of MC13783 PMIC as an input device
181 tristate "Fujitsu Lifebook Application Panel buttons"
186 Say Y here for support of the Application Panel buttons, used on
261 Say Y here for support of Atlas wallmount touchscreen buttons.
276 This driver provides mouse pointer, left and right mouse buttons,
277 and maps all the other remote buttons to keypress events.
303 supported at this time. This driver maps all buttons to keypress

Completed in 613 milliseconds

12