/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/ |
H A D | test_gamepad.py | 36 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 D | test_wacom_generic.py | 83 Describes the state of each of the buttons / "side switches" that 168 self.buttons = Buttons.clear() 191 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None 199 :param buttons: stylus button state. Use ``None`` for unchanged. 206 if buttons is not None: 207 self.buttons = buttons 208 buttons = self.buttons 225 buttons [all...] |
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A 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 in dc_pad_callback() [all...] |
H A D | analog.c | 100 short *buttons; member 117 int buttons; member 186 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 194 buttons |= 1 << (i + 14); in analog_decode() 200 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 204 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 222 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> (( in analog_decode() [all...] |
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A 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 in dc_pad_callback() [all...] |
H A D | analog.c | 94 short *buttons; member 110 int buttons; member 119 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 127 buttons |= 1 << (i + 14); in analog_decode() 133 input_report_key(dev, analog->buttons[j++], (buttons >> i) & 1); in analog_decode() 137 input_report_key(dev, analog->buttons[j++], (buttons >> (i + 10)) & 1); in analog_decode() 155 ((buttons >> ((i << 2) + 7)) & 1) - ((buttons >> (( in analog_decode() [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A 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() [all...] |
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A 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()
|
H A D | logibm.c | 61 unsigned char buttons; in logibm_interrupt() local 70 buttons = inb(LOGIBM_DATA_PORT); in logibm_interrupt() 71 dy |= (buttons & 0xf) << 4; in logibm_interrupt() 72 buttons = ~buttons >> 5; in logibm_interrupt() 76 input_report_key(logibm_dev, BTN_RIGHT, buttons & 1); in logibm_interrupt() 77 input_report_key(logibm_dev, BTN_MIDDLE, buttons & 2); in logibm_interrupt() 78 input_report_key(logibm_dev, BTN_LEFT, buttons & 4); in logibm_interrupt()
|
H A 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()
|
H A D | inport.c | 69 unsigned char buttons; in inport_interrupt() local 81 buttons = inb(INPORT_DATA_PORT); in inport_interrupt() 83 input_report_key(inport_dev, BTN_MIDDLE, buttons & 1); in inport_interrupt() 84 input_report_key(inport_dev, BTN_LEFT, buttons & 2); in inport_interrupt() 85 input_report_key(inport_dev, BTN_RIGHT, buttons & 4); in inport_interrupt()
|
/kernel/linux/linux-5.10/drivers/input/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A 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() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/x86-android-tablets/ |
H A D | core.c | 127 static struct gpio_keys_button *buttons; variable 242 kfree(buttons); in x86_android_tablet_cleanup() 362 buttons = kcalloc(dev_info->gpio_button_count, sizeof(*buttons), GFP_KERNEL); in x86_android_tablet_init() 363 if (!buttons) { in x86_android_tablet_init() 376 buttons[i] = dev_info->gpio_button[i].button; in x86_android_tablet_init() 377 buttons[i].gpio = desc_to_gpio(gpiod); in x86_android_tablet_init() 380 pdata.buttons = buttons; in x86_android_tablet_init()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | tca6416-keypad.c | 52 struct tca6416_button buttons[]; member 107 struct tca6416_button *button = &chip->buttons[pin_index]; in tca6416_keys_scan() 206 struct_size(chip, buttons, pdata->nbuttons), in tca6416_keypad_probe() 239 chip->buttons[i] = pdata->buttons[i]; in tca6416_keypad_probe() 240 type = (pdata->buttons[i].type) ?: EV_KEY; in tca6416_keypad_probe() 241 input_set_capability(input, type, pdata->buttons[i].code); in tca6416_keypad_probe()
|
/kernel/linux/linux-5.10/drivers/misc/ibmasm/ |
H A 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 in send_mouse_event() [all...] |
/kernel/linux/linux-6.6/drivers/misc/ibmasm/ |
H A 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 in send_mouse_event() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-playstation.c | 207 uint8_t buttons[4]; member 421 uint8_t buttons[3]; member 508 * Common gamepad buttons across DualShock 3 / 4 and DualSense. 1352 value = ds_report->buttons[0] & DS_BUTTONS0_HAT_SWITCH; in dualsense_parse_report() 1358 input_report_key(ds->gamepad, BTN_WEST, ds_report->buttons[0] & DS_BUTTONS0_SQUARE); in dualsense_parse_report() 1359 input_report_key(ds->gamepad, BTN_SOUTH, ds_report->buttons[0] & DS_BUTTONS0_CROSS); in dualsense_parse_report() 1360 input_report_key(ds->gamepad, BTN_EAST, ds_report->buttons[0] & DS_BUTTONS0_CIRCLE); in dualsense_parse_report() 1361 input_report_key(ds->gamepad, BTN_NORTH, ds_report->buttons[0] & DS_BUTTONS0_TRIANGLE); in dualsense_parse_report() 1362 input_report_key(ds->gamepad, BTN_TL, ds_report->buttons[1] & DS_BUTTONS1_L1); in dualsense_parse_report() 1363 input_report_key(ds->gamepad, BTN_TR, ds_report->buttons[ in dualsense_parse_report() [all...] |
/kernel/linux/linux-5.10/arch/mips/sgi-ip22/ |
H A D | ip22-reset.c | 142 unsigned int buttons; in panel_int() local 144 buttons = sgioc->panel; in panel_int() 160 if (!(buttons & SGIOC_PANEL_POWERINTR)) in panel_int()
|