/linux-3.4.99/drivers/input/joystick/ |
D | maplecontrol.c | 28 unsigned short buttons; in dc_pad_callback() local 34 buttons = ~le16_to_cpup((__le16 *)(res + 8)); in dc_pad_callback() 37 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); in dc_pad_callback() 39 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback() 41 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback() 43 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback() 45 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 46 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 47 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 48 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() [all …]
|
D | analog.c | 111 short *buttons; member 128 int buttons; member 182 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 190 buttons |= 1 << (i + 14); in analog_decode() 196 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 200 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 218 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); in analog_decode() 220 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); in analog_decode() 288 port->buttons = (~u >> 4) & 0xf; in analog_button_read() 292 port->buttons = 0; in analog_button_read() [all …]
|
D | joydump.c | 54 int axes[4], buttons; in joydump_connect() local 74 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect() 78 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons); in joydump_connect()
|
D | adi.c | 115 char buttons; member 233 for (i = 0; i < adi->buttons && i < 63; i++) { in adi_decode() 248 for (i = 63; i < adi->buttons; i++) in adi_decode() 356 adi->buttons = adi_get_bits(adi, 6); in adi_id_decode() 364 adi->buttons += adi_get_bits(adi, 6); in adi_id_decode() 380 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4; in adi_id_decode() 390 adi->buttons -= 4; in adi_id_decode() 394 adi->buttons -= 4; in adi_id_decode() 439 for (i = 0; i < adi->buttons; i++) in adi_init_input()
|
D | twidjoy.c | 71 int buttons[3]; member 117 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet() 212 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
|
D | a3d.c | 60 int buttons; member 138 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf; in a3d_read() 198 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument 205 *buttons = a3d->buttons; in a3d_adc_cooked_read()
|
/linux-3.4.99/drivers/mfd/ |
D | ucb1x00-assabet.c | 45 static struct gpio_keys_button buttons[6]; in ucb1x00_assabet_add() local 48 memset(buttons, 0, sizeof(buttons)); in ucb1x00_assabet_add() 51 for (i = 0; i < ARRAY_SIZE(buttons); i++) { in ucb1x00_assabet_add() 52 buttons[i].code = BTN_0 + i; in ucb1x00_assabet_add() 53 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add() 54 buttons[i].type = EV_KEY; in ucb1x00_assabet_add() 55 buttons[i].can_disable = true; in ucb1x00_assabet_add() 58 keys.buttons = buttons; in ucb1x00_assabet_add() 59 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
/linux-3.4.99/drivers/input/mouse/ |
D | atarimouse.c | 70 int buttons, dx, dy; in atamouse_interrupt() local 72 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); in atamouse_interrupt() 74 buttons |= atari_mouse_buttons & 2; in atamouse_interrupt() 75 atari_mouse_buttons = buttons; in atamouse_interrupt() 85 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 86 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 87 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
D | logibm.c | 80 unsigned char buttons; in logibm_interrupt() local 89 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 90 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 91 buttons = ~buttons >> 5; in logibm_interrupt() 95 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 96 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 97 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
D | inport.c | 88 unsigned char buttons; in inport_interrupt() local 100 buttons = inb(INPORT_DATA_PORT); in inport_interrupt() 102 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt() 103 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt() 104 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
|
D | maplemouse.c | 28 int buttons, relx, rely, relz; in dc_mouse_callback() local 34 buttons = ~res[8]; in dc_mouse_callback() 39 input_report_key(dev, BTN_LEFT, buttons & 4); in dc_mouse_callback() 40 input_report_key(dev, BTN_MIDDLE, buttons & 9); in dc_mouse_callback() 41 input_report_key(dev, BTN_RIGHT, buttons & 2); in dc_mouse_callback()
|
/linux-3.4.99/drivers/input/keyboard/ |
D | gpio_keys.c | 550 struct gpio_keys_button *buttons; in gpio_keys_get_devtree_pdata() local 570 buttons = kzalloc(pdata->nbuttons * (sizeof *buttons), GFP_KERNEL); in gpio_keys_get_devtree_pdata() 571 if (!buttons) in gpio_keys_get_devtree_pdata() 584 buttons[i].gpio = of_get_gpio_flags(pp, 0, &flags); in gpio_keys_get_devtree_pdata() 585 buttons[i].active_low = flags & OF_GPIO_ACTIVE_LOW; in gpio_keys_get_devtree_pdata() 588 dev_err(dev, "Button without keycode: 0x%x\n", buttons[i].gpio); in gpio_keys_get_devtree_pdata() 591 buttons[i].code = reg; in gpio_keys_get_devtree_pdata() 593 buttons[i].desc = of_get_property(pp, "label", NULL); in gpio_keys_get_devtree_pdata() 596 buttons[i].type = reg; in gpio_keys_get_devtree_pdata() 598 buttons[i].type = EV_KEY; in gpio_keys_get_devtree_pdata() [all …]
|
D | gpio_keys_polled.c | 80 gpio_keys_polled_check_state(input, &pdata->buttons[i], in gpio_keys_polled_poll() 150 struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_probe() 199 gpio_keys_polled_check_state(input, &pdata->buttons[i], in gpio_keys_polled_probe() 206 gpio_free(pdata->buttons[i].gpio); in gpio_keys_polled_probe() 226 gpio_free(pdata->buttons[i].gpio); in gpio_keys_polled_remove()
|
D | tca6416-keypad.c | 54 struct tca6416_button buttons[0]; member 109 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan() 258 chip->buttons[i] = pdata->buttons[i]; in tca6416_keypad_probe() 259 type = (pdata->buttons[i].type) ?: EV_KEY; in tca6416_keypad_probe() 260 input_set_capability(input, type, pdata->buttons[i].code); in tca6416_keypad_probe()
|
/linux-3.4.99/drivers/input/ |
D | mousedev.c | 59 unsigned long buttons; member 91 unsigned long buttons; member 261 set_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 262 set_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 264 clear_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 265 clear_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 284 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers() 309 p->buttons = mousedev->packet.buttons; in mousedev_notify_readers() 312 p->buttons != client->last_buttons) in mousedev_notify_readers() 339 set_bit(0, &mousedev->packet.buttons); in mousedev_touchpad_touch() [all …]
|
/linux-3.4.99/arch/mips/ath79/ |
D | dev-gpio-buttons.c | 21 struct gpio_keys_button *buttons) in ath79_register_gpio_keys_polled() argument 32 memcpy(p, buttons, nbuttons * sizeof(*p)); in ath79_register_gpio_keys_polled() 41 pdata.buttons = p; in ath79_register_gpio_keys_polled()
|
/linux-3.4.99/drivers/staging/quickstart/ |
D | quickstart.c | 68 static LIST_HEAD(buttons); 81 if (list_empty(&buttons)) in quickstart_buttons_show() 84 list_for_each_entry(b, &buttons, list) { in quickstart_buttons_show() 129 list_add_tail(&b->list, &buttons); in quickstart_buttons_add() 148 list_for_each_entry_safe(b, n, &buttons, list) in quickstart_buttons_free() 324 static DEVICE_ATTR(buttons, 0444, quickstart_buttons_show, NULL); 378 list_for_each_entry(b, &buttons, list) { in quickstart_init_input() 406 if (list_empty(&buttons)) { in quickstart_init()
|
/linux-3.4.99/drivers/misc/ibmasm/ |
D | remote.c | 139 unsigned char buttons = input->mouse_buttons; in print_input() local 142 (buttons) ? " -- buttons:" : "", in print_input() 143 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", in print_input() 144 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", in print_input() 145 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" in print_input() 160 unsigned char buttons = input->mouse_buttons; in send_mouse_event() local 164 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); in send_mouse_event() 165 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); in send_mouse_event() 166 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); in send_mouse_event()
|
/linux-3.4.99/Documentation/input/ |
D | xpad.txt | 16 The number of buttons/axes reported varies based on 3 things: 20 module configuration for "Map D-PAD to buttons rather than axes for unknown 25 if you said N it will map the d-pad to buttons, which is needed for dance 34 axes and 10 buttons. 41 All of the 10 buttons work (in digital mode). The six buttons on the 52 When using a known dance pad, jstest will report 6 axes and 14 buttons. 59 Known dance pads automatically map the d-pad to buttons and will work 63 of buttons, see section 0.3 - Unknown Controllers 130 18 inputs (8 axes, 10 buttons), and its values should change if you move 131 the sticks and push the buttons. If you're using a dance pad, it should [all …]
|
/linux-3.4.99/drivers/input/gameport/ |
D | fm801-gp.c | 45 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument 50 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read() 55 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
|
/linux-3.4.99/arch/mips/sgi-ip22/ |
D | ip22-reset.c | 143 unsigned int buttons; in panel_int() local 145 buttons = sgioc->panel; in panel_int() 162 if (!(buttons & SGIOC_PANEL_POWERINTR)) in panel_int()
|
/linux-3.4.99/Documentation/ABI/testing/ |
D | sysfs-driver-hid-roccat-kovaplus | 54 press of a button. A profile is split in settings and buttons. 57 buttons back to the mouse. The data has to be 23 bytes long. 68 press of a button. A profile is split in settings and buttons. 70 When read, these files return the respective profile buttons. 79 press of a button. A profile is split in settings and buttons. 94 press of a button. A profile is split in settings and buttons.
|
D | sysfs-driver-hid-roccat-pyra | 41 press of a button. A profile is split in settings and buttons. 56 press of a button. A profile is split in settings and buttons. 68 press of a button. A profile is split in settings and buttons. 71 buttons back to the mouse. The data has to be 19 bytes long. 82 press of a button. A profile is split in settings and buttons. 84 When read, these files return the respective profile buttons.
|
/linux-3.4.99/sound/pci/au88x0/ |
D | au88x0_game.c | 56 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) in vortex_game_cooked_read() argument 61 *buttons = (~hwread(vortex->mmio, VORTEX_GAME_LEGACY) >> 4) & 0xf; in vortex_game_cooked_read()
|
/linux-3.4.99/arch/arm/mach-at91/ |
D | board-gsia18s.c | 387 static struct gpio_keys_button buttons[] = { variable 423 .buttons = buttons, 424 .nbuttons = ARRAY_SIZE(buttons),
|