/drivers/input/joystick/ |
D | maplecontrol.c | 29 unsigned short buttons; in dc_pad_callback() local 35 buttons = ~le16_to_cpup((__le16 *)(res + 8)); in dc_pad_callback() 38 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0)); in dc_pad_callback() 40 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0)); in dc_pad_callback() 42 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0)); in dc_pad_callback() 44 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0)); in dc_pad_callback() 46 input_report_key(dev, BTN_C, buttons & 0x0001); in dc_pad_callback() 47 input_report_key(dev, BTN_B, buttons & 0x0002); in dc_pad_callback() 48 input_report_key(dev, BTN_A, buttons & 0x0004); in dc_pad_callback() 49 input_report_key(dev, BTN_START, buttons & 0x0008); in dc_pad_callback() [all …]
|
D | analog.c | 96 short *buttons; member 112 int buttons; member 121 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 129 buttons |= 1 << (i + 14); in analog_decode() 135 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 139 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 157 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> ((i << 2) + 9)) & 1)); in analog_decode() 159 ((buttons >> ((i << 2) + 8)) & 1) - ((buttons >> ((i << 2) + 6)) & 1)); in analog_decode() 228 port->buttons = (~u >> 4) & 0xf; in analog_button_read() 232 port->buttons = 0; in analog_button_read() [all …]
|
D | adi.c | 98 char buttons; member 216 for (i = 0; i < adi->buttons && i < 63; i++) { in adi_decode() 231 for (i = 63; i < adi->buttons; i++) in adi_decode() 339 adi->buttons = adi_get_bits(adi, 6); in adi_id_decode() 347 adi->buttons += adi_get_bits(adi, 6); in adi_id_decode() 363 t = 8 + adi->buttons + adi->axes10 * 10 + adi->axes8 * 8 + adi->hats * 4; in adi_id_decode() 373 adi->buttons -= 4; in adi_id_decode() 377 adi->buttons -= 4; in adi_id_decode() 422 for (i = 0; i < adi->buttons; i++) in adi_init_input()
|
D | joydump.c | 37 int axes[4], buttons; in joydump_connect() local 57 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect() 61 printk(KERN_INFO "joydump: | Buttons %02x. |\n", buttons); in joydump_connect()
|
D | twidjoy.c | 58 int buttons[3]; member 104 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet() 199 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
|
D | a3d.c | 43 int buttons; member 121 a3d->buttons = ((data[3] << 3) | data[4]) & 0xf; in a3d_read() 181 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument 188 *buttons = a3d->buttons; in a3d_adc_cooked_read()
|
D | grip_mp.c | 45 int buttons; member 412 port->buttons = (~packet) & 0xff; in get_and_decode_packet() 518 input_report_key(port->dev, grip_btn_gp[i], (port->buttons >> i) & 1); in report_slot()
|
/drivers/mfd/ |
D | ucb1x00-assabet.c | 42 static struct gpio_keys_button buttons[6]; in ucb1x00_assabet_add() local 45 memset(buttons, 0, sizeof(buttons)); in ucb1x00_assabet_add() 48 for (i = 0; i < ARRAY_SIZE(buttons); i++) { in ucb1x00_assabet_add() 49 buttons[i].code = BTN_0 + i; in ucb1x00_assabet_add() 50 buttons[i].gpio = ucb->gpio.base + i; in ucb1x00_assabet_add() 51 buttons[i].type = EV_KEY; in ucb1x00_assabet_add() 52 buttons[i].can_disable = true; in ucb1x00_assabet_add() 55 keys.buttons = buttons; in ucb1x00_assabet_add() 56 keys.nbuttons = ARRAY_SIZE(buttons); in ucb1x00_assabet_add()
|
/drivers/input/mouse/ |
D | atarimouse.c | 65 int buttons, dx, dy; in atamouse_interrupt() local 67 buttons = (buf[0] & 1) | ((buf[0] & 2) << 1); in atamouse_interrupt() 69 buttons |= atari_mouse_buttons & 2; in atamouse_interrupt() 70 atari_mouse_buttons = buttons; in atamouse_interrupt() 80 input_report_key(atamouse_dev, BTN_LEFT, buttons & 0x4); in atamouse_interrupt() 81 input_report_key(atamouse_dev, BTN_MIDDLE, buttons & 0x2); in atamouse_interrupt() 82 input_report_key(atamouse_dev, BTN_RIGHT, buttons & 0x1); in atamouse_interrupt()
|
D | logibm.c | 64 unsigned char buttons; in logibm_interrupt() local 73 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 74 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 75 buttons = ~buttons >> 5; in logibm_interrupt() 79 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 80 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 81 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
D | maplemouse.c | 29 int buttons, relx, rely, relz; in dc_mouse_callback() local 35 buttons = ~res[8]; in dc_mouse_callback() 40 input_report_key(dev, BTN_LEFT, buttons & 4); in dc_mouse_callback() 41 input_report_key(dev, BTN_MIDDLE, buttons & 9); in dc_mouse_callback() 42 input_report_key(dev, BTN_RIGHT, buttons & 2); in dc_mouse_callback()
|
D | inport.c | 72 unsigned char buttons; in inport_interrupt() local 84 buttons = inb(INPORT_DATA_PORT); in inport_interrupt() 86 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt() 87 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt() 88 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
|
D | logips2pp.c | 362 u8 model, buttons; in ps2pp_detect() local 375 buttons = param[1]; in ps2pp_detect() 377 if (!model || !buttons) in ps2pp_detect() 435 if (buttons >= 3) in ps2pp_detect()
|
/drivers/input/ |
D | mousedev.c | 55 unsigned long buttons; member 90 unsigned long buttons; member 253 set_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 254 set_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 256 clear_bit(index, &mousedev->packet.buttons); in mousedev_key_event() 257 clear_bit(index, &mousedev_mix->packet.buttons); in mousedev_key_event() 276 if (client->ready && p->buttons != mousedev->packet.buttons) { in mousedev_notify_readers() 300 p->buttons = mousedev->packet.buttons; in mousedev_notify_readers() 303 p->buttons != client->last_buttons) in mousedev_notify_readers() 330 set_bit(0, &mousedev->packet.buttons); in mousedev_touchpad_touch() [all …]
|
/drivers/misc/ibmasm/ |
D | remote.c | 125 unsigned char buttons = input->mouse_buttons; in print_input() local 128 (buttons) ? " -- buttons:" : "", in print_input() 129 (buttons & REMOTE_BUTTON_LEFT) ? "left " : "", in print_input() 130 (buttons & REMOTE_BUTTON_MIDDLE) ? "middle " : "", in print_input() 131 (buttons & REMOTE_BUTTON_RIGHT) ? "right" : "" in print_input() 146 unsigned char buttons = input->mouse_buttons; in send_mouse_event() local 150 input_report_key(dev, BTN_LEFT, buttons & REMOTE_BUTTON_LEFT); in send_mouse_event() 151 input_report_key(dev, BTN_MIDDLE, buttons & REMOTE_BUTTON_MIDDLE); in send_mouse_event() 152 input_report_key(dev, BTN_RIGHT, buttons & REMOTE_BUTTON_RIGHT); in send_mouse_event()
|
/drivers/input/keyboard/ |
D | tca6416-keypad.c | 51 struct tca6416_button buttons[]; member 106 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan() 219 chip = kzalloc(struct_size(chip, buttons, pdata->nbuttons), GFP_KERNEL); in tca6416_keypad_probe() 253 chip->buttons[i] = pdata->buttons[i]; in tca6416_keypad_probe() 254 type = (pdata->buttons[i].type) ?: EV_KEY; in tca6416_keypad_probe() 255 input_set_capability(input, type, pdata->buttons[i].code); in tca6416_keypad_probe()
|
D | gpio_keys_polled.c | 101 gpio_keys_button_event(input, &pdata->buttons[i], in gpio_keys_polled_poll() 104 gpio_keys_polled_check_state(input, &pdata->buttons[i], in gpio_keys_polled_poll() 161 pdata->buttons = button; in gpio_keys_polled_get_devtree_pdata() 208 const struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_set_abs_params() 280 const struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_probe() 371 gpio_keys_polled_check_state(input, &pdata->buttons[i], in gpio_keys_polled_probe()
|
D | cros_ec_keyb.c | 279 &ckdev->ec->event_data.data.buttons); in cros_ec_keyb_work() 452 u32 buttons; in cros_ec_keyb_register_bs() local 459 sizeof(event_data.buttons)); in cros_ec_keyb_register_bs() 462 buttons = get_unaligned_le32(&event_data.buttons); in cros_ec_keyb_register_bs() 471 if (!buttons && !switches) in cros_ec_keyb_register_bs() 502 if ((map->ev_type == EV_KEY && (buttons & BIT(map->bit))) || in cros_ec_keyb_register_bs()
|
/drivers/input/misc/ |
D | ims-pcu.c | 109 struct ims_pcu_buttons buttons; member 185 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_buttons_report() local 186 struct input_dev *input = buttons->input; in ims_pcu_buttons_report() 190 unsigned short keycode = buttons->keymap[i]; in ims_pcu_buttons_report() 203 struct ims_pcu_buttons *buttons = &pcu->buttons; in ims_pcu_setup_buttons() local 215 snprintf(buttons->name, sizeof(buttons->name), in ims_pcu_setup_buttons() 218 usb_make_path(pcu->udev, buttons->phys, sizeof(buttons->phys)); in ims_pcu_setup_buttons() 219 strlcat(buttons->phys, "/input0", sizeof(buttons->phys)); in ims_pcu_setup_buttons() 221 memcpy(buttons->keymap, keymap, sizeof(*keymap) * keymap_len); in ims_pcu_setup_buttons() 223 input->name = buttons->name; in ims_pcu_setup_buttons() [all …]
|
/drivers/input/gameport/ |
D | fm801-gp.c | 29 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument 34 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read() 39 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
|
D | lightning.c | 60 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument 84 *buttons = inb(L4_PORT) & 0x0f; in l4_cooked_read()
|
/drivers/hid/ |
D | hid-playstation.c | 205 uint8_t buttons[4]; member 1117 value = ds_report->buttons[0] & DS_BUTTONS0_HAT_SWITCH; in dualsense_parse_report() 1123 input_report_key(ds->gamepad, BTN_WEST, ds_report->buttons[0] & DS_BUTTONS0_SQUARE); in dualsense_parse_report() 1124 input_report_key(ds->gamepad, BTN_SOUTH, ds_report->buttons[0] & DS_BUTTONS0_CROSS); in dualsense_parse_report() 1125 input_report_key(ds->gamepad, BTN_EAST, ds_report->buttons[0] & DS_BUTTONS0_CIRCLE); in dualsense_parse_report() 1126 input_report_key(ds->gamepad, BTN_NORTH, ds_report->buttons[0] & DS_BUTTONS0_TRIANGLE); in dualsense_parse_report() 1127 input_report_key(ds->gamepad, BTN_TL, ds_report->buttons[1] & DS_BUTTONS1_L1); in dualsense_parse_report() 1128 input_report_key(ds->gamepad, BTN_TR, ds_report->buttons[1] & DS_BUTTONS1_R1); in dualsense_parse_report() 1129 input_report_key(ds->gamepad, BTN_TL2, ds_report->buttons[1] & DS_BUTTONS1_L2); in dualsense_parse_report() 1130 input_report_key(ds->gamepad, BTN_TR2, ds_report->buttons[1] & DS_BUTTONS1_R2); in dualsense_parse_report() [all …]
|
/drivers/media/usb/em28xx/ |
D | em28xx-input.c | 524 while (dev->board.buttons[j].role >= 0 && in em28xx_query_buttons() 525 dev->board.buttons[j].role < EM28XX_NUM_BUTTON_ROLES) { in em28xx_query_buttons() 528 button = &dev->board.buttons[j]; in em28xx_query_buttons() 627 while (dev->board.buttons[i].role >= 0 && in em28xx_init_buttons() 628 dev->board.buttons[i].role < EM28XX_NUM_BUTTON_ROLES) { in em28xx_init_buttons() 629 const struct em28xx_button *button = &dev->board.buttons[i]; in em28xx_init_buttons() 714 if (dev->board.buttons) in em28xx_ir_init()
|
/drivers/platform/surface/ |
D | Kconfig | 32 tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet" 35 This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet. 178 tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3/4 tablet" 181 This driver handles the power/home/volume buttons on the Microsoft Surface Pro 3/4 tablet.
|
/drivers/input/rmi4/ |
D | Kconfig | 91 includes support for buttons on TouchPads and ClickPads. 109 support for buttons on TouchPads and ClickPads.
|