Searched refs:buttons (Results 1 - 200 of 254) sorted by relevance

12

/linux-4.1.27/arch/mips/cobalt/
H A DMakefile5 obj-y := buttons.o irq.o lcd.o led.o mtd.o reset.o rtc.o serial.o setup.o time.o
H A Dbuttons.c2 * Cobalt buttons platform device.
36 pd = platform_device_alloc("Cobalt buttons", -1); cobalt_add_buttons()
/linux-4.1.27/drivers/mfd/
H A Ducb1x00-assabet.c45 static struct gpio_keys_button buttons[6]; ucb1x00_assabet_add() local
48 memset(buttons, 0, sizeof(buttons)); ucb1x00_assabet_add()
51 for (i = 0; i < ARRAY_SIZE(buttons); i++) { ucb1x00_assabet_add()
52 buttons[i].code = BTN_0 + i; ucb1x00_assabet_add()
53 buttons[i].gpio = ucb->gpio.base + i; ucb1x00_assabet_add()
54 buttons[i].type = EV_KEY; ucb1x00_assabet_add()
55 buttons[i].can_disable = true; ucb1x00_assabet_add()
58 keys.buttons = buttons; ucb1x00_assabet_add()
59 keys.nbuttons = ARRAY_SIZE(buttons); ucb1x00_assabet_add()
H A Dmc13xxx-core.c459 pdata->buttons, sizeof(*pdata->buttons)); mc13xxx_common_init()
H A Ddm355evm_msp.c332 /* input from buttons and IR remote (uses the IRQ) */ add_children()
/linux-4.1.27/drivers/input/joystick/
H A Dmaplecontrol.c28 unsigned short buttons; dc_pad_callback() local
34 buttons = ~le16_to_cpup((__le16 *)(res + 8)); dc_pad_callback()
37 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); dc_pad_callback()
39 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); dc_pad_callback()
41 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); dc_pad_callback()
43 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); dc_pad_callback()
45 input_report_key(dev, BTN_C, buttons & 0x0001); dc_pad_callback()
46 input_report_key(dev, BTN_B, buttons & 0x0002); dc_pad_callback()
47 input_report_key(dev, BTN_A, buttons & 0x0004); dc_pad_callback()
48 input_report_key(dev, BTN_START, buttons & 0x0008); dc_pad_callback()
49 input_report_key(dev, BTN_Z, buttons & 0x0100); dc_pad_callback()
50 input_report_key(dev, BTN_Y, buttons & 0x0200); dc_pad_callback()
51 input_report_key(dev, BTN_X, buttons & 0x0400); dc_pad_callback()
52 input_report_key(dev, BTN_SELECT, buttons & 0x0800); dc_pad_callback()
H A Danalog.c116 short *buttons; member in struct:analog
133 int buttons; member in struct:analog_port
202 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) analog_decode() argument
210 buttons |= 1 << (i + 14); analog_decode()
216 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); analog_decode()
220 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); analog_decode()
238 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); analog_decode()
240 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); analog_decode()
309 port->buttons = (~u >> 4) & 0xf; analog_button_read()
313 port->buttons = 0; analog_button_read()
316 port->buttons |= 1 << analog_chf[(~u >> 4) & 0xf]; analog_button_read()
341 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); analog_poll()
343 port->buttons = port->buttons ? (1 << analog_chf[port->buttons]) : 0; analog_poll()
359 analog_decode(port->analog + i, port->axes, port->initial, port->buttons); analog_poll()
470 analog->buttons = (analog->mask & ANALOG_GAMEPAD) ? analog_pad_btn : analog_joy_btn; analog_init_device()
524 set_bit(analog->buttons[j++], input_dev->keybit); analog_init_device()
528 set_bit(analog->buttons[j++], input_dev->keybit); analog_init_device()
532 set_bit(analog->buttons[j++], input_dev->keybit); analog_init_device()
538 analog_decode(analog, port->axes, port->initial, port->buttons); analog_init_device()
663 if (!gameport_cooked_read(gameport, port->axes, &port->buttons)) analog_init_port()
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 :-)
70 int buttons[3]; member in struct:twidjoy_button_spec
116 input_report_key(dev, bp->buttons[i], i+1 == value); twidjoy_process_packet()
211 set_bit(bp->buttons[i], input_dev->keybit); twidjoy_connect()
H A Djoydump.c53 int axes[4], buttons; joydump_connect() local
73 gameport_cooked_read(gameport, axes, &buttons); joydump_connect()
77 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons); joydump_connect()
H A Dxpad.c45 * - fix "analog" buttons (reported as digital now)
54 * - all axes and 9 of the 10 buttons work (german InterAct device)
63 * - verified that ALL buttons WORK
71 * - dance pads will map D-PAD to buttons, not axes
73 * the D-PAD to map to buttons if your pad is not detected
89 /* xbox d-pads should map to buttons, as is required for DDR pads
105 MODULE_PARM_DESC(dpad_to_buttons, "Map D-PAD to buttons rather than axes for unknown pads");
109 MODULE_PARM_DESC(triggers_to_buttons, "Map triggers to buttons rather than axes for unknown pads");
219 /* buttons shared with xbox and xbox360 */
221 BTN_A, BTN_B, BTN_X, BTN_Y, /* "analog" buttons */
228 BTN_C, BTN_Z, /* "analog" buttons */
232 /* used when dpad is mapped to buttons */
239 /* used when triggers are mapped to buttons */
246 static const signed short xpad360_btn[] = { /* buttons for x360 controller */
345 int mapping; /* map d-pad to buttons or to axes */
388 /* dpad as buttons (left, right, up, down) */ xpad_process_packet()
400 /* start/back buttons and stick press left/right */ xpad_process_packet()
406 /* "analog" buttons A, B, X, Y */ xpad_process_packet()
412 /* "analog" buttons black, white */ xpad_process_packet()
436 /* dpad as buttons (left, right, up, down) */ xpad360_process_packet()
448 /* start/back buttons */ xpad360_process_packet()
456 /* buttons A,B,X,Y,TL,TR and MODE */ xpad360_process_packet()
533 /* menu/view buttons */ xpadone_process_buttons()
537 /* buttons A,B,X,Y */ xpadone_process_buttons()
545 /* dpad as buttons (left, right, up, down) */ xpadone_process_buttons()
1109 /* set up standard buttons */ xpad_probe()
H A Dadi.c70 * Names, buttons, axes ...
114 char buttons; member in struct:adi
232 for (i = 0; i < adi->buttons && i < 63; i++) { adi_decode()
247 for (i = 63; i < adi->buttons; i++) adi_decode()
355 adi->buttons = adi_get_bits(adi, 6); adi_id_decode()
363 adi->buttons += adi_get_bits(adi, 6); adi_id_decode()
379 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4; adi_id_decode()
389 adi->buttons -= 4; adi_id_decode()
393 adi->buttons -= 4; adi_id_decode()
438 for (i = 0; i < adi->buttons; i++) adi_init_input()
H A Da3d.c59 int buttons; member in struct:a3d
137 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf; a3d_read()
197 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) a3d_adc_cooked_read() argument
204 *buttons = a3d->buttons; a3d_adc_cooked_read()
H A Ddb9.c95 const short *buttons; member in struct:db9_mode_data
290 case 0x02: /* digital pad (digital 2 axis + buttons) */ db9_saturn_report()
296 case 0x19: /* mission stick x2 (analog 6 axis + buttons) */ db9_saturn_report()
316 case 0xe3: /* shuttle mouse (analog 2 axis + buttons. signed value) */ db9_saturn_report()
634 set_bit(db9_mode->buttons[j], input_dev->keybit); db9_probe()
H A Dgrip_mp.c44 int buttons; member in struct:grip_port
411 port->buttons = (~packet) & 0xff; get_and_decode_packet()
517 input_report_key(port->dev, grip_btn_gp[i], (port->buttons >> i) & 1); report_slot()
H A Dtmdc.c100 const short *buttons; member in struct:tmdc_model
299 port->btn = model->buttons; tmdc_setup_port()
H A Dturbografx.c200 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); tgfx_probe()
H A Dsidewinder.c79 * Names, buttons, axes ...
298 * the axes and buttons arrays.
/linux-4.1.27/arch/mips/ath79/
H A Ddev-gpio-buttons.c16 #include "dev-gpio-buttons.h"
21 struct gpio_keys_button *buttons) ath79_register_gpio_keys_polled()
28 p = kmemdup(buttons, nbuttons * sizeof(*p), GFP_KERNEL); ath79_register_gpio_keys_polled()
39 pdata.buttons = p; ath79_register_gpio_keys_polled()
18 ath79_register_gpio_keys_polled(int id, unsigned poll_interval, unsigned nbuttons, struct gpio_keys_button *buttons) ath79_register_gpio_keys_polled() argument
H A Ddev-gpio-buttons.h21 struct gpio_keys_button *buttons);
H A DMakefile20 obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) += dev-gpio-buttons.o
H A Dmach-ap121.c12 #include "dev-gpio-buttons.h"
H A Dmach-ap81.c14 #include "dev-gpio-buttons.h"
H A Dmach-pb44.c18 #include "dev-gpio-buttons.h"
H A Dmach-ubnt-xm.c20 #include "dev-gpio-buttons.h"
H A Dmach-db120.c25 #include "dev-gpio-buttons.h"
H A Dmach-ap136.c25 #include "dev-gpio-buttons.h"
/linux-4.1.27/arch/x86/platform/intel-mid/device_libs/
H A Dplatform_gpio_keys.c24 * we will search these buttons in SFI GPIO table (by name)
26 * buttons here, we will shrink them if no GPIO found.
42 .buttons = gpio_button,
56 * Shrink the non-existent buttons, register the gpio button
/linux-4.1.27/arch/mips/bcm47xx/
H A Dbcm47xx_private.h16 /* buttons.c */
H A Dbuttons.c387 static int __init bcm47xx_buttons_copy(const struct gpio_keys_button *buttons, bcm47xx_buttons_copy() argument
390 size_t size = nbuttons * sizeof(*buttons); bcm47xx_buttons_copy()
392 bcm47xx_button_pdata.buttons = kmalloc(size, GFP_KERNEL); bcm47xx_buttons_copy()
393 if (!bcm47xx_button_pdata.buttons) bcm47xx_buttons_copy()
395 memcpy(bcm47xx_button_pdata.buttons, buttons, size); bcm47xx_buttons_copy()
596 pr_debug("No buttons configuration found for this device\n"); bcm47xx_buttons_register()
/linux-4.1.27/include/linux/
H A Dgpio_keys.h39 * @buttons: pointer to array of &gpio_keys_button structures
40 * describing buttons attached to the device
41 * @nbuttons: number of elements in @buttons array
49 struct gpio_keys_button *buttons; member in struct:gpio_keys_platform_data
H A Dtca6416_keypad.h26 struct tca6416_button *buttons; member in struct:tca6416_keys_platform_data
H A Dgameport.h185 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) gameport_cooked_read() argument
188 return gameport->cooked_read(gameport, axes, buttons); gameport_cooked_read()
H A Dinput.h48 * @keybit: bitmap of keys/buttons this device has
78 * @key: reflects current state of device's keys/buttons
H A Dhil.h258 #define HIL_IDD_IOD_NBUTTON_MASK 0x07 /* Number of buttons */
/linux-4.1.27/drivers/input/mouse/
H A Datarimouse.c70 int buttons, dx, dy; atamouse_interrupt() local
72 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); atamouse_interrupt()
74 buttons |= atari_mouse_buttons & 2; atamouse_interrupt()
75 atari_mouse_buttons = buttons; atamouse_interrupt()
85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); atamouse_interrupt()
86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); atamouse_interrupt()
87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); atamouse_interrupt()
H A Dlogibm.c80 unsigned char buttons; logibm_interrupt() local
89 buttons = inb(LOGIBM_DATA_PORT); logibm_interrupt()
90 dy |= (buttons & 0xf) << 4; logibm_interrupt()
91 buttons = ~buttons >> 5; logibm_interrupt()
95 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); logibm_interrupt()
96 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); logibm_interrupt()
97 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); logibm_interrupt()
H A Dmaplemouse.c28 int buttons, relx, rely, relz; dc_mouse_callback() local
34 buttons = ~res[8]; dc_mouse_callback()
39 input_report_key(dev, BTN_LEFT, buttons & 4); dc_mouse_callback()
40 input_report_key(dev, BTN_MIDDLE, buttons & 9); dc_mouse_callback()
41 input_report_key(dev, BTN_RIGHT, buttons & 2); dc_mouse_callback()
H A Dinport.c88 unsigned char buttons; inport_interrupt() local
100 buttons = inb(INPORT_DATA_PORT); inport_interrupt()
102 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); inport_interrupt()
103 input_report_key(inport_dev, BTN_LEFT, buttons & 2); inport_interrupt()
104 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); inport_interrupt()
H A Dsentelic.h110 unsigned int buttons; /* Number of buttons */ member in struct:fsp_data
H A Dsynaptics.h99 * 1 0x01 ext buttons are stick buttons exported in the extended
148 * A structure to describe the state of the touchpad hardware (buttons and pad)
186 unsigned char pt_buttons; /* Pass-through buttons */
H A Dvsxxxaa.c240 * (for three buttons) of byte 0. vsxxxaa_handle_REL_packet()
248 DBG(KERN_INFO "%s on %s: dx=%d, dy=%d, buttons=%s%s%s\n", vsxxxaa_handle_REL_packet()
299 DBG(KERN_INFO "%s on %s: x=%d, y=%d, buttons=%s%s%s%s\n", vsxxxaa_handle_ABS_packet()
348 * (for three buttons) of byte 0. Maybe even the bit <3> vsxxxaa_handle_POR_packet()
359 /* No (serious) error. Report buttons */ vsxxxaa_handle_POR_packet()
490 __set_bit(EV_KEY, input_dev->evbit); /* We have buttons */ vsxxxaa_connect()
493 __set_bit(BTN_LEFT, input_dev->keybit); /* We have 3 buttons */ vsxxxaa_connect()
H A Dlogips2pp.c68 case 0x0e: /* buttons 4, 5, 6, 7, 8, 9, 10 info */ ps2pp_process_byte()
332 unsigned char model, buttons; ps2pp_init() local
346 buttons = param[1]; ps2pp_init()
348 if (!model || !buttons) ps2pp_init()
416 if (buttons >= 3) ps2pp_init()
H A Delantech.c532 /* For clickpads map both buttons to BTN_LEFT */ elantech_report_absolute_v3()
552 /* For clickpads map both buttons to BTN_LEFT */ elantech_input_sync_v4()
1104 * Laptop-model: fw_version: caps: buttons:
1109 * Asus K53SV 0x450f01 78, 15, 0c 2 hw buttons
1110 * Asus G46VW 0x460f02 00, 18, 0c 2 hw buttons
1111 * Asus G750JX 0x360f00 00, 16, 0c 2 hw buttons
1117 * Fujitsu LIFEBOOK E544 0x470f00 d0, 12, 09 2 hw buttons
1118 * Fujitsu LIFEBOOK E554 0x570f01 40, 14, 0c 2 hw buttons
1119 * Fujitsu H730 0x570f00 c0, 14, 0c 3 hw buttons (**)
1120 * Gigabyte U2442 0x450f01 58, 17, 0c 2 hw buttons
1121 * Lenovo L430 0x350f02 b9, 15, 0c 2 hw buttons (*)
1122 * Lenovo L530 0x350f02 b9, 15, 0c 2 hw buttons (*)
1123 * Samsung NF210 0x150b00 78, 14, 0a 2 hw buttons
1128 * Samsung RC512 0x450f00 08, 15, 0c 2 hw buttons
1129 * Samsung RF710 0x450f00 ? 2 hw buttons
1130 * System76 Pangolin 0x250f01 ? 2 hw buttons
1131 * (*) + 3 trackpoint buttons
1132 * (**) + 0 trackpoint buttons
H A Dgpio_mouse.c130 dev_dbg(&pdev->dev, "%d ms scan time, buttons: %s%s%s\n", gpio_mouse_probe()
H A Dsentelic.c329 static const int buttons[] = { fsp_get_buttons() local
340 *btn = buttons[(val & 0x30) >> 4]; fsp_get_buttons()
867 * (scrolling wheel, 4th and 5th buttons) fsp_activate_protocol()
891 if (fsp_get_buttons(psmouse, &pad->buttons)) { fsp_activate_protocol()
893 "Unable to retrieve number of buttons.\n"); fsp_activate_protocol()
900 if (pad->buttons == 0x06) { fsp_activate_protocol()
H A Dpsmouse-base.c146 * Scroll wheel on IntelliMice, scroll buttons on NetMice psmouse_process_byte()
153 * Scroll wheel and buttons on IntelliMouse Explorer psmouse_process_byte()
174 * Extra buttons on Genius NewNet 3D psmouse_process_byte()
676 * We have no way of figuring true number of buttons so let's ps2bare_detect()
962 * Okay, all failed, we have a standard mouse here. The number of the buttons psmouse_extensions()
H A Dcyapa_gen5.c2593 u8 buttons = report_data->report_head[GEN5_BUTTONS_OFFSET]; cyapa_gen5_report_buttons() local
2595 buttons = (buttons << CAPABILITY_BTN_SHIFT) & CAPABILITY_BTN_MASK; cyapa_gen5_report_buttons()
2599 !!(buttons & CAPABILITY_LEFT_BTN_MASK)); cyapa_gen5_report_buttons()
2603 !!(buttons & CAPABILITY_MIDDLE_BTN_MASK)); cyapa_gen5_report_buttons()
2607 !!(buttons & CAPABILITY_RIGHT_BTN_MASK)); cyapa_gen5_report_buttons()
H A Dalps.c98 #define ALPS_FW_BK_1 0x10 /* front & back buttons present */
99 #define ALPS_FW_BK_2 0x20 /* front & back buttons present */
163 * Some v2 models report the stick buttons in separate bits
584 * Most ALPS models report the trackstick buttons in the touchpad alps_process_trackstick_packet_v3()
1475 * buttons on the pad and start moving trackpoint alps_handle_interleaved_ps2()
1488 * packet again, which may happen if all buttons are alps_handle_interleaved_ps2()
2718 * ALPS should return 0,0,10 or 0,0,100 if no buttons are pressed. alps_identify()
2719 * The bits 0-2 of the first byte will be 1s if some buttons are alps_identify()
H A Dalps.h287 #define ALPS_QUIRK_TRACKSTICK_BUTTONS 1 /* trakcstick buttons in trackstick packet */
H A Dtrackpoint.c422 "IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n", trackpoint_detect()
H A Dhgpk.c285 * swr/swl are the left/right buttons.
304 * swr/swl are the left/right buttons.
556 /* All modes report left and right buttons */ hgpk_setup_input_device()
H A Dsynaptics.c865 /* Bug in FW 8.1 & 8.2, buttons are reported only when ExtBit is 1 */ synaptics_report_ext_buttons()
882 * This generation of touchpads has the trackstick buttons synaptics_report_ext_buttons()
889 /* The trackstick expects at most 3 buttons */ synaptics_report_ext_buttons()
H A Dcypress_ps2.c487 * This is only true if one of the mouse buttons were tapped. Make cypress_parse_packet()
H A Dsynaptics_i2c.c515 /* Register device's buttons and keys */ synaptics_i2c_set_input_params()
/linux-4.1.27/drivers/media/rc/keymaps/
H A Drc-reddo.c33 * 2) Reddo remote has less buttons. Missing buttons are: colored buttons,
34 * navigation buttons and main power button.
H A Drc-lme2510.c17 /* Type 1 - 26 buttons */
44 /* Type 2 - 20 buttons */
65 /* Type 3 - 20 buttons */
H A Drc-genius-tvgo-a11mce.c55 /* Four buttons without label */
H A Drc-it913x-v1.c49 /* Type 2 - 20 buttons */
H A Drc-ati-x10.c80 /* DVD navigation buttons */
97 /* Play/stop/pause buttons */
H A Drc-behold-columbus.c22 * helps to descide which keycodes to assign to the buttons.
H A Drc-behold.c25 * helps to descide which keycodes to assign to the buttons.
H A Drc-encore-enltv.c16 /* Encore ENLTV-FM - black plastic, white front cover with white glowing buttons
H A Drc-manli.c22 helps to descide which keycodes to assign to the buttons.
H A Drc-imon-mce.c41 /* the OK and Enter buttons decode to the same value on some remotes
H A Drc-medion-x10-digitainer.c7 * up/down buttons (tested with P/N 40009936 / 20018268), reportedly
H A Drc-medion-x10-or2x.c9 * buttons, such as OR22V and OR24E.
H A Drc-msi-tvanywhere-plus.c75 these buttons from those that have the same code. */
/linux-4.1.27/drivers/misc/ibmasm/
H A Dremote.c139 unsigned char buttons = input->mouse_buttons; print_input() local
142 (buttons) ? " -- buttons:" : "", print_input()
143 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", print_input()
144 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", print_input()
145 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" print_input()
160 unsigned char buttons = input->mouse_buttons; send_mouse_event() local
164 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); send_mouse_event()
165 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); send_mouse_event()
166 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); send_mouse_event()
/linux-4.1.27/arch/arm/mach-pxa/
H A Dcsb701.c22 .buttons = csb701_buttons,
H A Dpalmt5.c157 .buttons = palmt5_pxa_buttons,
H A Dezx.c709 .buttons = a780_buttons,
850 .buttons = e680_buttons,
917 .buttons = a1200_buttons,
984 .buttons = a910_buttons,
1176 .buttons = e6_buttons,
H A Dpalmld.c225 .buttons = palmld_pxa_buttons,
H A Dpalmte2.c125 .buttons = palmte2_pxa_buttons,
H A Dpalmtc.c145 .buttons = palmtc_pxa_buttons,
H A Dpalmtx.c225 .buttons = palmtx_pxa_buttons,
H A Draumfeld.c388 * GPIO buttons
449 .buttons = gpio_keys_button,
H A Dspitz.c419 /* Two buttons detecting the lid state */ spitz_mkp_init()
435 .buttons = spitz_gpio_keys,
H A Dmagician.c163 .buttons = magician_button_table,
H A Dmainstone.c393 .buttons = gpio_keys_button,
H A Dvpac270.c265 .buttons = vpac270_pxa_buttons,
H A Dz2.c455 .buttons = z2_pxa_buttons,
H A Dcorgi.c436 .buttons = corgi_gpio_keys,
H A Dhx4700.c190 .buttons = gpio_keys_buttons,
H A Dmioa701.c265 .buttons = mioa701_button_table,
H A Dtosa.c536 .buttons = tosa_gpio_keys,
/linux-4.1.27/drivers/input/
H A Dmousedev.c57 unsigned long buttons; member in struct:mousedev_hw_data
92 unsigned long buttons; member in struct:mousedev_motion
255 set_bit(index, &mousedev->packet.buttons); mousedev_key_event()
256 set_bit(index, &mousedev_mix->packet.buttons); mousedev_key_event()
258 clear_bit(index, &mousedev->packet.buttons); mousedev_key_event()
259 clear_bit(index, &mousedev_mix->packet.buttons); mousedev_key_event()
278 if (client->ready && p->buttons != mousedev->packet.buttons) { mousedev_notify_readers()
303 p->buttons = mousedev->packet.buttons; mousedev_notify_readers()
306 p->buttons != client->last_buttons) mousedev_notify_readers()
333 set_bit(0, &mousedev->packet.buttons); mousedev_touchpad_touch()
334 set_bit(0, &mousedev_mix->packet.buttons); mousedev_touchpad_touch()
338 clear_bit(0, &mousedev->packet.buttons); mousedev_touchpad_touch()
339 clear_bit(0, &mousedev_mix->packet.buttons); mousedev_touchpad_touch()
585 ((p->dx < 0) << 4) | ((p->dy < 0) << 5) | (p->buttons & 0x07); mousedev_packet()
595 ps2_data[3] = (ps2_data[3] & 0x0f) | ((p->buttons & 0x18) << 1); mousedev_packet()
601 ((p->buttons & 0x10) >> 3) | ((p->buttons & 0x08) >> 1); mousedev_packet()
610 ((p->buttons & 0x10) >> 3) | ((p->buttons & 0x08) >> 1); mousedev_packet()
619 client->last_buttons = p->buttons; mousedev_packet()
H A Djoydev.c346 for (data.buttons = i = 0; i < 32 && i < joydev->nkey; i++) joydev_0x_read()
347 data.buttons |= joydev_0x_read()
/linux-4.1.27/drivers/input/keyboard/
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], gpio_keys_polled_poll()
120 pdata->buttons = (struct gpio_keys_button *)(pdata + 1); gpio_keys_polled_get_devtree_pdata()
139 button = &pdata->buttons[pdata->nbuttons++]; device_for_each_child_node()
235 struct gpio_keys_button *button = &pdata->buttons[i]; gpio_keys_polled_probe()
288 /* report initial state of the buttons */ gpio_keys_polled_probe()
290 gpio_keys_polled_check_state(input, &pdata->buttons[i], gpio_keys_polled_probe()
H A Dgpio_keys.c40 unsigned int release_delay; /* in msecs, for IRQ-only buttons */
43 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */
112 * input events anymore. Note that one can only disable buttons
117 * disabling buttons at the same time.
155 * gpio_keys_attr_show_helper() - fill in stringified bitmap of buttons
159 * @only_disabled: does caller want only those buttons that are
160 * currently disabled or all buttons that can be
163 * This function writes buttons that can be disabled to @buf. If
164 * @only_disabled is true, then @buf contains only those buttons
203 * gpio_keys_attr_store_helper() - enable/disable buttons based on given bitmap
209 * GPIO buttons accordingly. Returns 0 on success and negative error
499 dev_err(dev, "Only EV_KEY allowed for IRQ buttons.\n"); gpio_keys_setup_key()
568 /* Report current state of buttons that are connected to GPIOs */ gpio_keys_open()
615 pdata->buttons = (struct gpio_keys_button *)(pdata + 1); gpio_keys_get_devtree_pdata()
624 button = &pdata->buttons[i++]; for_each_child_of_node()
742 const struct gpio_keys_button *button = &pdata->buttons[i]; gpio_keys_probe()
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]; tca6416_keys_scan()
258 chip->buttons[i] = pdata->buttons[i]; tca6416_keypad_probe()
259 type = (pdata->buttons[i].type) ?: EV_KEY; tca6416_keypad_probe()
260 input_set_capability(input, type, pdata->buttons[i].code); tca6416_keypad_probe()
H A Dhil_kbd.c428 /* Swap buttons 2 and 3 */ hil_dev_pointer_setup()
439 "HIL pointer has %i buttons and %i sets of %i axes\n", hil_dev_pointer_setup()
H A Dmpr121_touchkey.c169 * state quickly, or the buttons may not function after system mpr121_phys_init()
/linux-4.1.27/drivers/input/gameport/
H A Dfm801-gp.c44 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) fm801_gp_cooked_read() argument
49 *buttons = (~w >> 14) & 0x03; fm801_gp_cooked_read()
54 *buttons |= ((~w >> 14) & 0x03) << 2; fm801_gp_cooked_read()
H A Dlightning.c76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) l4_cooked_read() argument
100 *buttons = inb(L4_PORT) & 0x0f; l4_cooked_read()
/linux-4.1.27/drivers/input/misc/
H A Dcobalt_btns.c97 input->name = "Cobalt buttons"; cobalt_buttons_probe()
153 MODULE_ALIAS("platform:Cobalt buttons");
159 .name = "Cobalt buttons",
H A Dsoc_button_array.c24 * Definition of buttons on the tablet. The ACPI index of each button
40 * Some of the buttons like volume up/down are auto repeat, while others
42 * buttons into them based on whether the key should be auto repeat.
113 gpio_keys_pdata->buttons = gpio_keys; soc_button_device_create()
H A Dims-pcu.c114 struct ims_pcu_buttons buttons; member in struct:ims_pcu
190 struct ims_pcu_buttons *buttons = &pcu->buttons; ims_pcu_buttons_report() local
191 struct input_dev *input = buttons->input; ims_pcu_buttons_report()
195 unsigned short keycode = buttons->keymap[i]; ims_pcu_buttons_report()
208 struct ims_pcu_buttons *buttons = &pcu->buttons; ims_pcu_setup_buttons() local
220 snprintf(buttons->name, sizeof(buttons->name), ims_pcu_setup_buttons()
223 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); ims_pcu_setup_buttons()
224 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); ims_pcu_setup_buttons()
226 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); ims_pcu_setup_buttons()
228 input->name = buttons->name; ims_pcu_setup_buttons()
229 input->phys = buttons->phys; ims_pcu_setup_buttons()
233 input->keycode = buttons->keymap; ims_pcu_setup_buttons()
234 input->keycodemax = ARRAY_SIZE(buttons->keymap); ims_pcu_setup_buttons()
235 input->keycodesize = sizeof(buttons->keymap[0]); ims_pcu_setup_buttons()
239 __set_bit(buttons->keymap[i], input->keybit); ims_pcu_setup_buttons()
245 "Failed to register buttons input device: %d\n", ims_pcu_setup_buttons()
251 buttons->input = input; ims_pcu_setup_buttons()
257 struct ims_pcu_buttons *buttons = &pcu->buttons; ims_pcu_destroy_buttons() local
259 input_unregister_device(buttons->input); ims_pcu_destroy_buttons()
H A Dapanel.c11 * Many Fujitsu Lifebook laptops have a small panel of buttons that are
13 * buttons and generates input events.
35 /* Magic constants in BIOS that tell about buttons */
220 idev->name = APANEL_NAME " buttons"; apanel_probe()
H A Ddm355evm_keys.c2 * dm355evm_keys.c - support buttons and IR remote on DM355 EVM board
55 * IR buttons ... codes assigned to match the universal remote
138 * (N > 2), same code. For RC5 buttons the toggle bits dm355evm_keys_irq()
140 * but PCB buttons don't support that bit. dm355evm_keys_irq()
H A Dsgi_btns.c114 input->name = "SGI buttons"; sgi_buttons_probe()
H A Dpcf8574_keypad.c2 * Driver for a keypad w/16 buttons connected to a PCF8574 I2C I/O expander
H A Dad714x.c109 * Unlike slider/wheel/touchpad, all buttons point to
212 * Multi-buttons can connect to same positive/negative of one CDC
1136 /* all buttons use one input node */ ad714x_probe()
/linux-4.1.27/drivers/hid/
H A Dhid-saitek.c6 * clearing the constant bit on the input reports for buttons and d-pad.
12 * buttons. All three press events are mapped to one button and the
89 /* clear constant bit on buttons and d-pad */ saitek_report_fixup()
142 * and 23 do not represent buttons saitek_raw_event()
H A Dhid-wiimote-modules.c44 * The initial Wii Remote provided a bunch of buttons that are reported as
444 * contained in the buttons data BB BB. wiimod_accel_in_accel()
445 * Bits 6 and 7 of the first buttons byte BB is the lower 2 bits of the wiimod_accel_in_accel()
446 * X accel value. Bit 5 of the second buttons byte is the 2nd bit of Y wiimod_accel_in_accel()
845 * BC and BZ are the C and Z buttons: 0 means pressed wiimod_nunchuk_in_ext()
1010 * It has several hardware buttons and switches that are all reported via
1068 * All buttons are 0 if pressed wiimod_classic_in_ext()
1074 * BDR, BDD, BDL, BDU form the D-Pad with right, down, left, up buttons wiimod_classic_in_ext()
1076 * B-, BH, B+ are +, HOME and - buttons wiimod_classic_in_ext()
1077 * BB, BY, BA, BX are A, B, X, Y buttons wiimod_classic_in_ext()
1565 * extension, few standard buttons, a rumble motor, 4 LEDs and a battery.
1639 * All buttons are low-active (0 if pressed) wiimod_pro_in_ext()
1643 * BDR, BDD, BDL, BDU form the D-Pad with right, down, left, up buttons wiimod_pro_in_ext()
1645 * B-, BH, B+ are +, HOME and - buttons wiimod_pro_in_ext()
1646 * BB, BY, BA, BX are A, B, X, Y buttons wiimod_pro_in_ext()
H A Dhid-roccat-konepure.c15 * Roccat KonePure is a smaller version of KoneXTD with less buttons and lights.
H A Dhid-roccat-savu.c33 ROCCAT_COMMON2_BIN_ATTRIBUTE_RW(buttons, 0x7, 0x2f);
H A Dhid-microsoft.c184 /* Handling MS keyboards special buttons */ ms_event()
H A Dhid-rmi.c84 * @button_count: actual physical buttons count
86 * @button_state_mask: pull state of the buttons
957 /* function F30 is for physical buttons */ rmi_populate_f30()
1002 /* actual buttons have pull up resistor */ rmi_populate_f30()
H A Dwacom.h19 * v0.2 (aba) - Support for all buttons / combinations
H A Dhid-sony.c613 /* Use collection 1 for joypad buttons */
622 /* Bytes from 2nd to 4th are a bitmap for joypad buttons, for these
623 * buttons multiple keypresses are allowed */
635 /* Use collection 2 for remote control buttons */
638 /* 5th byte is used for remote control buttons */
727 * buttons.
H A Dhid-kye.c428 * - change led usage page to button for extra buttons kye_report_fixup()
432 * buttons kye_report_fixup()
H A Dhid-multitouch.c120 __u8 buttons_count; /* number of physical buttons per touchpad */
398 * Model touchscreens providing buttons as touchpads. mt_touch_input_mapping()
406 /* count the buttons on touchpads */ mt_touch_input_mapping()
H A Dhid-magicmouse.c386 * advertise buttons that don't exist... magicmouse_setup_input()
H A Dhid-roccat-kovaplus.c15 * Roccat Kova[+] is a bigger version of the Pyra with two more side buttons.
/linux-4.1.27/include/linux/input/
H A Dad714x.h4 * AD714x is very flexible, it can be used as buttons, scrollwheel,
/linux-4.1.27/arch/x86/platform/geode/
H A Dnet5501.c3 * At the moment this means setup of GPIO control of LEDs and buttons
48 .buttons = net5501_gpio_buttons,
H A Dgeos.c45 .buttons = geos_gpio_buttons,
H A Dalix.c56 .buttons = alix_gpio_buttons,
/linux-4.1.27/arch/mips/sgi-ip22/
H A Dip22-reset.c143 unsigned int buttons; panel_int() local
145 buttons = sgioc->panel; panel_int()
162 if (!(buttons & SGIOC_PANEL_POWERINTR)) panel_int()
H A Dip22-platform.c189 return 0; /* full house has no volume buttons */ sgi_button_devinit()
/linux-4.1.27/include/uapi/linux/
H A Djoystick.h61 #define JSIOCGBUTTONS _IOR('j', 0x12, __u8) /* get number of buttons */
112 __s32 buttons; member in struct:JS_DATA_TYPE
H A Dpmu.h58 #define PMU_INT_PCEJECT 0x04 /* PC-card eject buttons */
59 #define PMU_INT_SNDBRT 0x08 /* sound/brightness up/down buttons */
/linux-4.1.27/scripts/kconfig/lxdialog/
H A Dyesno.c25 * Display termination buttons
40 * Display a dialog box with two buttons - Yes and No
H A Dchecklist.c99 * Display the termination buttons
H A Ddialog.h250 * the buttons.
H A Dinputbox.c27 * Print the termination buttons
H A Dmenubox.c153 * Display the termination buttons.
/linux-4.1.27/sound/pci/au88x0/
H A Dau88x0_game.c56 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) vortex_game_cooked_read() argument
61 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; vortex_game_cooked_read()
/linux-4.1.27/arch/arm/mach-gemini/
H A Dboard-nas4220b.c78 .buttons = ib4220b_keys,
H A Dboard-rut1xx.c36 .buttons = rut1xx_keys,
H A Dboard-wbd111.c39 .buttons = wbd111_keys,
H A Dboard-wbd222.c39 .buttons = wbd222_keys,
/linux-4.1.27/drivers/media/usb/em28xx/
H A Dem28xx-input.c487 Handle buttons
505 /* Check states of the buttons and act */ em28xx_query_buttons()
507 while (dev->board.buttons[j].role >= 0 && em28xx_query_buttons()
508 dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) { em28xx_query_buttons()
509 struct em28xx_button *button = &dev->board.buttons[j]; em28xx_query_buttons()
609 while (dev->board.buttons[i].role >= 0 && em28xx_init_buttons()
610 dev->board.buttons[i].role < EM28XX_NUM_BUTTON_ROLES) { em28xx_init_buttons()
611 struct em28xx_button *button = &dev->board.buttons[i]; em28xx_init_buttons()
692 if (dev->board.buttons) em28xx_ir_init()
/linux-4.1.27/arch/unicore32/kernel/
H A Dpuv3-nb0916.c80 .buttons = nb0916_gpio_keys,
/linux-4.1.27/arch/sh/boards/mach-rsk/
H A Ddevices-rsk7203.c109 .buttons = rsk7203_gpio_keys_table,
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dmach-smartq5.c98 .buttons = smartq5_buttons,
H A Dmach-smartq7.c114 .buttons = smartq7_buttons,
H A Dmach-crag6410.c226 .buttons = crag6410_gpio_keys,
/linux-4.1.27/include/acpi/
H A Dacpi_drivers.h69 * For fixed hardware buttons, we fabricate acpi_devices with HID
/linux-4.1.27/include/xen/interface/io/
H A Dkbdif.h38 /* Key event (includes pointer buttons) */
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-pcm037_eet.c157 .buttons = pcm037_gpio_keys,
H A D3ds_debugboard.c35 /* buttons */
H A Deukrea_mbimxsd35-baseboard.c219 .buttons = eukrea_mbimxsd_gpio_buttons,
H A Dmach-vpr200.c136 .buttons = vpr200_gpio_keys_table,
H A Dmach-armadillo5x0.c283 .buttons = armadillo5x0_buttons,
H A Dmach-imx27_visstrim_m10.c306 .buttons = visstrim_gpio_keys,
H A Dmach-mx31moboard.c284 .buttons = &moboard_buttons,
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dsimpad.c264 .buttons = simpad_button_table,
285 .buttons = simpad_polled_button_table,
H A Dh3xxx.c236 .buttons = h3xxx_button_table,
H A Dcollie.c261 .buttons = collie_gpio_keys,
H A Dneponset.c350 /* Disable GPIO 0/1 drivers so the buttons work on the Assabet */ neponset_probe()
/linux-4.1.27/scripts/kconfig/
H A Dnconf.gui.c233 /* get the message, and buttons.
238 * 1) show a text box, no buttons.
239 * 2) show a dialog, with horizontal buttons
H A Dmconf.c190 "Use the <TAB> key to move from the input field to the buttons below it."),
193 "Use the <TAB> key to move from the input field to the buttons below it."),
196 "Use the <TAB> key to move from the input field to the buttons below it."),
/linux-4.1.27/drivers/bcma/
H A Ddriver_gpio.c238 * On MIPS we register GPIO devices (LEDs, buttons) using absolute GPIO bcma_gpio_init()
/linux-4.1.27/drivers/platform/x86/
H A Dtopstar-laptop.c103 input->name = "Topstar Laptop extra buttons"; acpi_topstar_init_hkey()
/linux-4.1.27/arch/sh/boards/mach-x3proto/
H A Dsetup.c200 .buttons = baseboard_buttons,
/linux-4.1.27/arch/arm/mach-orion5x/
H A Dls-chl-setup.c185 .buttons = lschl_buttons,
H A Dls_hgl-setup.c153 .buttons = ls_hgl_buttons,
H A Dlsmini-setup.c153 .buttons = lsmini_buttons,
H A Dmv2120-setup.c93 .buttons = mv2120_buttons,
H A Dts409-setup.c228 .buttons = qnap_ts409_buttons,
H A Dwrt350n-v2-setup.c87 .buttons = wrt350n_v2_buttons,
H A Ddns323-setup.c330 .buttons = dns323ab_buttons,
344 .buttons = dns323c_buttons,
H A Dnet2big-setup.c327 .buttons = net2big_buttons,
H A Dts209-setup.c222 .buttons = qnap_ts209_buttons,
/linux-4.1.27/include/linux/mfd/
H A Dmc13xxx.h233 struct mc13xxx_buttons_platform_data *buttons; member in struct:mc13xxx_platform_data
/linux-4.1.27/drivers/media/rc/
H A Dir-mce_kbd-decoder.c23 * - MCIR-2 29-bit IR signals used for mouse movement and buttons
182 /* mouse buttons */ ir_mce_kbd_process_mouse_data()
/linux-4.1.27/drivers/macintosh/
H A Dadbhid.c28 * - MacAlly 2-buttons mouse (needs testing) <pochini@denise.shiny.it>
260 #define ADBMOUSE_TRACKBALLPRO 7 /* Trackball Pro (special buttons) */
857 sprintf(hid->name, "ADB adjustable keyboard buttons"); adbhid_input_register()
866 sprintf(hid->name, "ADB Powerbook buttons"); adbhid_input_register()
1245 0x07); /* all buttons enabled as mouse buttons, no locking */ init_microspeed()
/linux-4.1.27/drivers/input/tablet/
H A Dwacom_serial4.c29 * - support pad buttons; (requires access to a model with pad buttons)
H A Dgtco.c676 /* Convert buttons, only 5 bits possible */ gtco_urb_callback()
696 /* Report 1 is an exception to how we handle buttons */ gtco_urb_callback()
701 * Convert buttons, 5 bit index gtco_urb_callback()
777 /* Convert buttons, only 4 bits possible */ gtco_urb_callback()
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-n30.c147 .buttons = n30_buttons,
237 .buttons = n35_buttons,
H A Dmach-gta02.c489 .buttons = gta02_buttons,
H A Dmach-h1940.c616 .buttons = h1940_buttons,
H A Dmach-mini2440.c380 .buttons = mini2440_buttons,
H A Dmach-rx1950.c690 .buttons = rx1950_gpio_keys_table,
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-htcherald.c263 /* GPIO buttons for keyboard slide and power button */
281 .buttons = herald_gpio_keys_table,
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.h126 int_pkt_scan is NULL, for cams with non interrupt driven buttons */
/linux-4.1.27/arch/mips/alchemy/
H A Dboard-mtx1.c119 .buttons = mtx1_gpio_button,
/linux-4.1.27/arch/mips/jz4740/
H A Dboard-qi_lb60.c352 .buttons = qi_lb60_gpio_keys_buttons,
/linux-4.1.27/arch/avr32/boards/atngw100/
H A Dmrmt.c249 .buttons = (void *) rmt_gpio_keys_buttons,
/linux-4.1.27/arch/blackfin/mach-bf533/boards/
H A Dblackstamp.c350 .buttons = bfin_gpio_keys_table,
H A Dezkit.c378 .buttons = bfin_gpio_keys_table,
H A Dstamp.c500 .buttons = bfin_gpio_keys_table,
/linux-4.1.27/arch/arm/mach-omap2/
H A Dboard-ldp.c156 .buttons = ldp_gpio_keys_buttons,
H A Dboard-omap3beagle.c458 .buttons = gpio_buttons,
H A Dboard-omap3pandora.c163 .buttons = pandora_gpio_keys,
H A Dboard-overo.c360 .buttons = gpio_buttons,
/linux-4.1.27/sound/core/
H A Djack.c193 * BTN_n numeric buttons will be reported.
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dcx23885-input.c297 /* The grey Terratec remote with orange buttons */ cx23885_input_init()
/linux-4.1.27/arch/blackfin/mach-bf518/boards/
H A Dtcm-bf518.c577 .buttons = bfin_gpio_keys_table,
H A Dezbrd.c655 .buttons = bfin_gpio_keys_table,
/linux-4.1.27/arch/blackfin/mach-bf561/boards/
H A Dezkit.c366 .buttons = bfin_gpio_keys_table,
/linux-4.1.27/samples/uhid/
H A Duhid-example.c13 * This example emulates a basic 3 buttons mouse with wheel over UHID. Run this
/linux-4.1.27/arch/arm/mach-davinci/
H A Dboard-da850-evm.c430 .buttons = da850_evm_ui_keys,
500 pr_warn("Could not register UI GPIO expander push-buttons"); da850_evm_ui_expander_setup()
607 .buttons = da850_evm_bb_keys,
H A Dboard-dm644x-evm.c488 * buttons on the IR remote, and for card detect switches.
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Ddb1300.c400 .buttons = db1300_5waysw_arrowkeys,
/linux-4.1.27/arch/blackfin/mach-bf527/boards/
H A Dcm_bf527.c823 .buttons = bfin_gpio_keys_table,
H A Dezbrd.c698 .buttons = bfin_gpio_keys_table,
/linux-4.1.27/arch/blackfin/mach-bf538/boards/
H A Dezkit.c775 .buttons = bfin_gpio_keys_table,
/linux-4.1.27/arch/arm/mach-shmobile/
H A Dboard-kzm9g.c545 .buttons = gpio_buttons,

Completed in 6153 milliseconds

12