/linux-master/drivers/platform/x86/ |
H A D | wireless-hotkey.c | 3 * Airplane mode button for AMD, HP & Xiaomi laptops 37 struct wl_button *button = acpi_driver_data(device); local 40 button->input_dev = input_allocate_device(); 41 if (!button->input_dev) 44 snprintf(button->phys, sizeof(button->phys), "%s/input0", acpi_device_hid(device)); 46 button->input_dev->name = "Wireless hotkeys"; 47 button->input_dev->phys = button->phys; 48 button 65 struct wl_button *button = acpi_driver_data(device); local 73 struct wl_button *button = acpi_driver_data(acpi_dev); local 88 struct wl_button *button; local [all...] |
H A D | adv_swbutton.c | 31 struct adv_swbutton *button = dev_get_drvdata(&device->dev); local 35 input_report_key(button->input, KEY_PROG1, 0); 36 input_sync(button->input); 39 input_report_key(button->input, KEY_PROG1, 1); 40 input_sync(button->input); 49 struct adv_swbutton *button; local 55 button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL); 56 if (!button) 59 dev_set_drvdata(&device->dev, button); [all...] |
H A D | xo15-ebook.c | 4 * (based on generic ACPI button driver) 45 struct ebook_switch *button = acpi_driver_data(device); local 54 input_report_switch(button->input, SW_TABLET_MODE, !state); 55 input_sync(button->input); 85 struct ebook_switch *button; local 90 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); 91 if (!button) 94 device->driver_data = button; 96 button->input = input = input_allocate_device(); 115 snprintf(button 149 struct ebook_switch *button = acpi_driver_data(device); local [all...] |
/linux-master/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 30 struct cpcap_power_button *button = _button; local 33 val = cpcap_sense_virq(button->regmap, irq); 35 dev_err(button->dev, "irq read failed: %d", val); 39 pm_wakeup_event(button->dev, 0); 40 input_report_key(button->idev, KEY_POWER, val); 41 input_sync(button->idev); 48 struct cpcap_power_button *button; local 56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); 57 if (!button) [all...] |
H A D | ibm-panel.c | 49 u8 button; local 66 button = panel->command[2] & 0xf; 67 if (button < PANEL_KEYCODES_COUNT) { 68 input_report_key(panel->input, panel->keycodes[button], 72 dev_dbg(&panel->input->dev, "unknown button %u\n", 73 button);
|
H A D | keyspan_remote.c | 41 * Currently there are 15 and 17 button models so RESERVED codes 88 u8 button; member in struct:keyspan_message 167 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) argument 171 input_event(input, EV_MSC, MSC_SCAN, button); 172 input_report_key(input, remote->keymap[button], press); 242 * message. We need to parse out the system code, button code, 269 message.button = 0; 274 message.button = message.button << 1; 278 message.button [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 45 const struct gpio_keys_button *button, 49 unsigned int type = button->type ?: EV_KEY; 53 input_event(input, type, button->code, button->value); 54 __set_bit(button->code, bdev->rel_axis_seen); 58 input_event(input, type, button->code, button->value); 59 __set_bit(button->code, bdev->abs_axis_seen); 62 input_event(input, type, button->code, state); 68 const struct gpio_keys_button *button, 44 gpio_keys_button_event(struct input_dev *input, const struct gpio_keys_button *button, int state) argument 67 gpio_keys_polled_check_state(struct input_dev *input, const struct gpio_keys_button *button, struct gpio_keys_button_data *bdata) argument 146 struct gpio_keys_button *button; local 208 const struct gpio_keys_button *button = &pdata->buttons[i]; local 280 const struct gpio_keys_button *button = &pdata->buttons[i]; local [all...] |
H A D | qt1050.c | 304 struct qt1050_key *button = &ts->keys[0]; local 315 for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { 317 if (button->keycode == KEY_RESERVED) 320 err = qt1050_set_key(map, button->num, 1); 324 key_regs = qt1050_get_key_regs(button->num); 327 (button->samples << 4) | (button->scale)); 330 err = regmap_write(map, key_regs->csd, button->charge_delay); 333 err = regmap_write(map, key_regs->nthr, button->thr_cnt); 352 struct qt1050_key button; local [all...] |
H A D | gpio_keys.c | 34 const struct gpio_keys_button *button; member in struct:gpio_button_data 102 * @type: type of button (%EV_KEY, %EV_SW) 117 * @type: type of button (%EV_KEY, %EV_SW) 143 * gpio_keys_disable_button() - disables given GPIO button 144 * @bdata: button data for button to be disabled 146 * Disables button pointed by @bdata. This is done by masking 147 * IRQ line. After this function is called, button won't generate 168 * gpio_keys_enable_button() - enables given GPIO button 169 * @bdata: button dat 370 const struct gpio_keys_button *button = bdata->button; local 426 const struct gpio_keys_button *button = bdata->button; local 504 gpio_keys_setup_key(struct platform_device *pdev, struct input_dev *input, struct gpio_keys_drvdata *ddata, const struct gpio_keys_button *button, int idx, struct fwnode_handle *child) argument 770 struct gpio_keys_button *button; local 913 const struct gpio_keys_button *button = &pdata->buttons[i]; local [all...] |
/linux-master/scripts/kconfig/lxdialog/ |
H A D | yesno.c | 31 int i, x, y, key = 0, button = 0; local 80 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); 82 print_buttons(dialog, height, width, button); 88 return button;
|
H A D | inputbox.c | 35 int input_x = 0, key = 0, button = -1; local 109 if (button == -1) { /* Input box selected */ 232 switch (button) { 234 button = 1; /* Indicates "Help" button is selected */ 238 button = -1; /* Indicates input box is selected */ 244 button = 0; /* Indicates "OK" button is selected */ 252 switch (button) { 254 button [all...] |
H A D | checklist.c | 108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; local 276 button = 1; 288 return button; 292 button = ((key == KEY_LEFT ? --button : ++button) < 0) 293 ? 1 : (button > 1 ? 0 : button); 295 print_buttons(dialog, height, width, button);
|
H A D | menubox.c | 168 int key = 0, button = 0, scroll = 0, choice = 0; local 356 button = ((key == KEY_LEFT ? --button : ++button) < 0) 357 ? 4 : (button > 4 ? 0 : button); 359 print_buttons(dialog, height, width, button); 396 return button;
|
/linux-master/drivers/acpi/ |
H A D | button.c | 3 * button.c - ACPI Button Driver 9 #define pr_fmt(fmt) "ACPI: button: " fmt 22 #include <acpi/button.h> 24 #define ACPI_BUTTON_CLASS "button" 149 .name = "button", 195 struct acpi_button *button = acpi_driver_data(device); local 207 button->last_state != !!state) 212 next_report = ktime_add(button->last_time, 214 if (button->last_state == !!state && 256 input_report_switch(button 289 struct acpi_button *button = acpi_driver_data(device); local 348 struct acpi_button *button = acpi_driver_data(device); local 393 struct acpi_button *button = acpi_driver_data(device); local 413 struct acpi_button *button; local 431 struct acpi_button *button; local 475 struct acpi_button *button = acpi_driver_data(device); local 485 struct acpi_button *button = acpi_driver_data(device); local 508 struct acpi_button *button = acpi_driver_data(device); local 520 struct acpi_button *button; local 653 struct acpi_button *button = acpi_driver_data(device); local [all...] |
/linux-master/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 3 * power/home/volume button support for 16 #include <acpi/button.h> 48 * Power button, Home button, Volume buttons support is supposed to 76 struct surface_button *button = acpi_driver_data(device); local 82 /* Power button press,release handle */ 89 /* Home button press,release handle */ 96 /* Volume up button press,release handle */ 103 /* Volume down button press,release handle */ 118 input = button 133 struct surface_button *button = acpi_driver_data(device); local 142 struct surface_button *button = acpi_driver_data(device); local 189 struct surface_button *button; local 244 struct surface_button *button = acpi_driver_data(device); local [all...] |
/linux-master/drivers/soc/loongson/ |
H A D | loongson2_pm.c | 100 struct input_dev *button; local 102 button = input_allocate_device(); 106 button->name = "Power Button"; 107 button->phys = "pm/button/input0"; 108 button->id.bustype = BUS_HOST; 109 button->dev.parent = NULL; 110 input_set_capability(button, EV_KEY, KEY_POWER); 112 ret = input_register_device(button); 116 dev_pm_set_wake_irq(&button [all...] |
/linux-master/drivers/input/rmi4/ |
H A D | rmi_f3a.c | 39 struct f3a_data *f3a, unsigned int button) 41 u16 key_code = f3a->gpio_key_map[button]; 42 bool key_down = !(f3a->data_regs[0] & BIT(button)); 45 button >= TRACKSTICK_RANGE_START && 46 button <= TRACKSTICK_RANGE_END) { 115 static bool rmi_f3a_is_valid_button(int button, struct f3a_data *f3a, argument 119 return (query1_regs[0] & BIT(button)) && !(ctrl1_regs[0] & BIT(button)); 128 unsigned int button = BTN_LEFT; local 152 f3a->gpio_key_map[i] = button; 38 rmi_f3a_report_button(struct rmi_function *fn, struct f3a_data *f3a, unsigned int button) argument [all...] |
H A D | rmi_f30.c | 102 struct f30_data *f30, unsigned int button) 104 unsigned int reg_num = button >> 3; 105 unsigned int bit_num = button & 0x07; 106 u16 key_code = f30->gpioled_key_map[button]; 110 button >= TRACKSTICK_RANGE_START && 111 button <= TRACKSTICK_RANGE_END) { 210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) argument 212 int byte_position = button >> 3; 213 int bit_position = button & 0x07; 217 * ctrl3 -> data == 1 -> actual button 101 rmi_f30_report_button(struct rmi_function *fn, struct f30_data *f30, unsigned int button) argument 229 unsigned int button = BTN_LEFT; local [all...] |
H A D | rmi_driver.h | 106 int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, 111 unsigned int button, int value) 110 rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, int value) argument
|
/linux-master/include/linux/input/ |
H A D | ad714x.h | 57 struct ad714x_button_plat *button; member in struct:ad714x_platform_data
|
/linux-master/drivers/hid/ |
H A D | hid-roccat-arvo.h | 64 uint8_t button; member in struct:arvo_roccat_report
|
/linux-master/drivers/input/joystick/ |
H A D | amijoy.c | 37 int i, data = 0, button = 0; local 43 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; 44 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; 47 input_report_key(amijoy_dev[i], BTN_TRIGGER, button);
|
/linux-master/drivers/input/touchscreen/ |
H A D | ar1021_i2c.c | 36 unsigned int x, y, button; local 48 button = data[0] & BIT(0); 54 input_report_key(input, BTN_TOUCH, button);
|
/linux-master/drivers/mfd/ |
H A D | rohm-bd718x7.c | 21 static struct gpio_keys_button button = { variable in typeref:struct:gpio_keys_button 28 .buttons = &button, 178 button.irq = ret;
|
/linux-master/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 87 * it seems that 0xFE indicates that a button is still hold 88 * down, while 0xff indicates that no button is hold down. 516 const struct em28xx_button *button; local 518 button = &dev->board.buttons[j]; 520 /* Check if button uses the current address */ 521 if (button->reg_r != dev->button_polling_addresses[i]) { 525 /* Determine if button is and was pressed last time */ 526 is_pressed = regval & button->mask; 528 & button->mask; 529 if (button 619 const struct em28xx_button *button = &dev->board.buttons[i]; local [all...] |