button 444 arch/arm/mach-davinci/board-da850-evm.c struct gpio_keys_button *button; button 447 arch/arm/mach-davinci/board-da850-evm.c button = &da850_evm_ui_keys[i]; button 448 arch/arm/mach-davinci/board-da850-evm.c button->code = KEY_F8 - i; button 449 arch/arm/mach-davinci/board-da850-evm.c button->desc = da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; button 450 arch/arm/mach-davinci/board-da850-evm.c button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; button 621 arch/arm/mach-davinci/board-da850-evm.c struct gpio_keys_button *button; button 623 arch/arm/mach-davinci/board-da850-evm.c button = &da850_evm_bb_keys[0]; button 624 arch/arm/mach-davinci/board-da850-evm.c button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_PB1]; button 625 arch/arm/mach-davinci/board-da850-evm.c button->gpio = gpio + DA850_EVM_BB_EXP_USER_PB1; button 628 arch/arm/mach-davinci/board-da850-evm.c button = &da850_evm_bb_keys[i + 1]; button 629 arch/arm/mach-davinci/board-da850-evm.c button->code = SW_LID + i; button 630 arch/arm/mach-davinci/board-da850-evm.c button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_SW1 + i]; button 631 arch/arm/mach-davinci/board-da850-evm.c button->gpio = gpio + DA850_EVM_BB_EXP_USER_SW1 + i; button 170 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 183 drivers/acpi/button.c button->last_state != !!state) button 188 drivers/acpi/button.c next_report = ktime_add(button->last_time, button 190 drivers/acpi/button.c if (button->last_state == !!state && button 232 drivers/acpi/button.c input_report_switch(button->input, button 234 drivers/acpi/button.c input_sync(button->input); button 242 drivers/acpi/button.c input_report_switch(button->input, SW_LID, !state); button 243 drivers/acpi/button.c input_sync(button->input); button 244 drivers/acpi/button.c button->last_state = !!state; button 245 drivers/acpi/button.c button->last_time = ktime_get(); button 276 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 281 drivers/acpi/button.c if (button->type != ACPI_BUTTON_TYPE_LID) button 335 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 337 drivers/acpi/button.c if (button->type != ACPI_BUTTON_TYPE_LID) button 409 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 418 drivers/acpi/button.c input = button->input; button 419 drivers/acpi/button.c if (button->type == ACPI_BUTTON_TYPE_LID) { button 420 drivers/acpi/button.c mutex_lock(&button->input->mutex); button 421 drivers/acpi/button.c users = button->input->users; button 422 drivers/acpi/button.c mutex_unlock(&button->input->mutex); button 429 drivers/acpi/button.c if (button->suspended) button 442 drivers/acpi/button.c event, ++button->pushed); button 456 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 458 drivers/acpi/button.c button->suspended = true; button 465 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 467 drivers/acpi/button.c button->suspended = false; button 468 drivers/acpi/button.c if (button->type == ACPI_BUTTON_TYPE_LID && button->input->users) { button 469 drivers/acpi/button.c button->last_state = !!acpi_lid_evaluate_state(device); button 470 drivers/acpi/button.c button->last_time = ktime_get(); button 480 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 482 drivers/acpi/button.c button->last_state = !!acpi_lid_evaluate_state(device); button 483 drivers/acpi/button.c button->last_time = ktime_get(); button 491 drivers/acpi/button.c struct acpi_button *button; button 500 drivers/acpi/button.c button = kzalloc(sizeof(struct acpi_button), GFP_KERNEL); button 501 drivers/acpi/button.c if (!button) button 504 drivers/acpi/button.c device->driver_data = button; button 506 drivers/acpi/button.c button->input = input = input_allocate_device(); button 517 drivers/acpi/button.c button->type = ACPI_BUTTON_TYPE_POWER; button 523 drivers/acpi/button.c button->type = ACPI_BUTTON_TYPE_SLEEP; button 528 drivers/acpi/button.c button->type = ACPI_BUTTON_TYPE_LID; button 543 drivers/acpi/button.c snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); button 546 drivers/acpi/button.c input->phys = button->phys; button 548 drivers/acpi/button.c input->id.product = button->type; button 551 drivers/acpi/button.c switch (button->type) { button 569 drivers/acpi/button.c if (button->type == ACPI_BUTTON_TYPE_LID) { button 586 drivers/acpi/button.c kfree(button); button 592 drivers/acpi/button.c struct acpi_button *button = acpi_driver_data(device); button 595 drivers/acpi/button.c input_unregister_device(button->input); button 596 drivers/acpi/button.c kfree(button); button 126 drivers/hid/hid-alps.c u8 button; button 351 drivers/hid/hid-alps.c input_report_key(hdata->input, BTN_LEFT, p_report->button); button 1554 drivers/hid/hid-logitech-hidpp.c u8 button; button 1632 drivers/hid/hid-logitech-hidpp.c raw_xy->button = (data[8] >> 2) & 0x01; button 2275 drivers/hid/hid-logitech-hidpp.c input_event(hidpp->input, EV_KEY, BTN_LEFT, raw->button); button 2314 drivers/hid/hid-logitech-hidpp.c .button = data[0] & 0x01, button 235 drivers/hid/hid-roccat-arvo.c static BIN_ATTR(button, 0220, NULL, arvo_sysfs_write_button, button 388 drivers/hid/hid-roccat-arvo.c roccat_report.button = special_report->event & button 64 drivers/hid/hid-roccat-arvo.h uint8_t button; button 151 drivers/hid/hid-roccat-kone.h uint8_t button; button 311 drivers/hid/hid-roccat-kovaplus.c roccat_report.button = 0; button 583 drivers/hid/hid-roccat-kovaplus.c roccat_report.button = button_report->data1; button 585 drivers/hid/hid-roccat-kovaplus.c roccat_report.button = 0; button 113 drivers/hid/hid-roccat-kovaplus.h uint8_t button; button 305 drivers/hid/usbhid/hid-pidff.c pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = effect->trigger.button; button 328 drivers/hid/usbhid/hid-pidff.c effect->trigger.button != old->trigger.button || button 1158 drivers/hid/wacom_sys.c static DEVICE_ATTR(button##BUTTON_ID##_rawimg, DEV_ATTR_WO_PERM, \ button 40 drivers/input/joystick/amijoy.c int i, data = 0, button = 0; button 46 drivers/input/joystick/amijoy.c case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; button 47 drivers/input/joystick/amijoy.c case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; button 50 drivers/input/joystick/amijoy.c input_report_key(amijoy_dev[i], BTN_TRIGGER, button); button 167 drivers/input/joystick/iforce/iforce-ff.c static unsigned char find_button(struct iforce *iforce, signed short button) button 172 drivers/input/joystick/iforce/iforce-ff.c if (iforce->type->btn[i] == button) button 279 drivers/input/joystick/iforce/iforce-ff.c || old->trigger.button != new->trigger.button button 291 drivers/input/joystick/iforce/iforce-ff.c u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, button 302 drivers/input/joystick/iforce/iforce-ff.c data[2] = LO(axes) | find_button(iforce, button); button 388 drivers/input/joystick/iforce/iforce-ff.c effect->trigger.button, button 448 drivers/input/joystick/iforce/iforce-ff.c effect->trigger.button, button 513 drivers/input/joystick/iforce/iforce-ff.c effect->trigger.button, effect->trigger.interval, button 33 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button; button 203 drivers/input/keyboard/gpio_keys.c if (bdata->button->type != type) button 257 drivers/input/keyboard/gpio_keys.c if (bdata->button->type != type) button 261 drivers/input/keyboard/gpio_keys.c !bdata->button->can_disable) { button 272 drivers/input/keyboard/gpio_keys.c if (bdata->button->type != type) button 358 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button = bdata->button; button 360 drivers/input/keyboard/gpio_keys.c unsigned int type = button->type ?: EV_KEY; button 372 drivers/input/keyboard/gpio_keys.c input_event(input, type, button->code, button->value); button 386 drivers/input/keyboard/gpio_keys.c if (bdata->button->wakeup) button 396 drivers/input/keyboard/gpio_keys.c if (bdata->button->wakeup) { button 397 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button = bdata->button; button 401 drivers/input/keyboard/gpio_keys.c (button->type == 0 || button->type == EV_KEY)) { button 407 drivers/input/keyboard/gpio_keys.c input_report_key(bdata->input, button->code, 1); button 444 drivers/input/keyboard/gpio_keys.c if (bdata->button->wakeup) button 480 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button, button 484 drivers/input/keyboard/gpio_keys.c const char *desc = button->desc ? button->desc : "gpio_keys"; button 493 drivers/input/keyboard/gpio_keys.c bdata->button = button; button 516 drivers/input/keyboard/gpio_keys.c } else if (gpio_is_valid(button->gpio)) { button 523 drivers/input/keyboard/gpio_keys.c if (button->active_low) button 526 drivers/input/keyboard/gpio_keys.c error = devm_gpio_request_one(dev, button->gpio, flags, desc); button 529 drivers/input/keyboard/gpio_keys.c button->gpio, error); button 533 drivers/input/keyboard/gpio_keys.c bdata->gpiod = gpio_to_desc(button->gpio); button 541 drivers/input/keyboard/gpio_keys.c if (button->debounce_interval) { button 543 drivers/input/keyboard/gpio_keys.c button->debounce_interval * 1000); button 547 drivers/input/keyboard/gpio_keys.c button->debounce_interval; button 550 drivers/input/keyboard/gpio_keys.c if (button->irq) { button 551 drivers/input/keyboard/gpio_keys.c bdata->irq = button->irq; button 558 drivers/input/keyboard/gpio_keys.c button->gpio, error); button 569 drivers/input/keyboard/gpio_keys.c switch (button->wakeup_event_action) { button 588 drivers/input/keyboard/gpio_keys.c if (!button->irq) { button 593 drivers/input/keyboard/gpio_keys.c bdata->irq = button->irq; button 595 drivers/input/keyboard/gpio_keys.c if (button->type && button->type != EV_KEY) { button 600 drivers/input/keyboard/gpio_keys.c bdata->release_delay = button->debounce_interval; button 613 drivers/input/keyboard/gpio_keys.c *bdata->code = button->code; button 614 drivers/input/keyboard/gpio_keys.c input_set_capability(input, button->type ?: EV_KEY, *bdata->code); button 631 drivers/input/keyboard/gpio_keys.c if (!button->can_disable) button 696 drivers/input/keyboard/gpio_keys.c struct gpio_keys_button *button; button 705 drivers/input/keyboard/gpio_keys.c sizeof(*pdata) + nbuttons * sizeof(*button), button 710 drivers/input/keyboard/gpio_keys.c button = (struct gpio_keys_button *)(pdata + 1); button 712 drivers/input/keyboard/gpio_keys.c pdata->buttons = button; button 721 drivers/input/keyboard/gpio_keys.c button->irq = button 725 drivers/input/keyboard/gpio_keys.c &button->code)) { button 731 drivers/input/keyboard/gpio_keys.c fwnode_property_read_string(child, "label", &button->desc); button 734 drivers/input/keyboard/gpio_keys.c &button->type)) button 735 drivers/input/keyboard/gpio_keys.c button->type = EV_KEY; button 737 drivers/input/keyboard/gpio_keys.c button->wakeup = button 743 drivers/input/keyboard/gpio_keys.c &button->wakeup_event_action); button 745 drivers/input/keyboard/gpio_keys.c button->can_disable = button 749 drivers/input/keyboard/gpio_keys.c &button->debounce_interval)) button 750 drivers/input/keyboard/gpio_keys.c button->debounce_interval = 5; button 752 drivers/input/keyboard/gpio_keys.c button++; button 826 drivers/input/keyboard/gpio_keys.c const struct gpio_keys_button *button = &pdata->buttons[i]; button 839 drivers/input/keyboard/gpio_keys.c button, i, child); button 845 drivers/input/keyboard/gpio_keys.c if (button->wakeup) button 924 drivers/input/keyboard/gpio_keys.c if (bdata->button->wakeup) { button 937 drivers/input/keyboard/gpio_keys.c if (bdata->button->wakeup) button 46 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button, button 51 drivers/input/keyboard/gpio_keys_polled.c unsigned int type = button->type ?: EV_KEY; button 55 drivers/input/keyboard/gpio_keys_polled.c input_event(input, type, button->code, button->value); button 56 drivers/input/keyboard/gpio_keys_polled.c __set_bit(button->code, bdev->rel_axis_seen); button 60 drivers/input/keyboard/gpio_keys_polled.c input_event(input, type, button->code, button->value); button 61 drivers/input/keyboard/gpio_keys_polled.c __set_bit(button->code, bdev->abs_axis_seen); button 64 drivers/input/keyboard/gpio_keys_polled.c input_event(input, type, button->code, state); button 70 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button, button 80 drivers/input/keyboard/gpio_keys_polled.c gpio_keys_button_event(dev, button, state); button 147 drivers/input/keyboard/gpio_keys_polled.c struct gpio_keys_button *button; button 155 drivers/input/keyboard/gpio_keys_polled.c pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button), button 160 drivers/input/keyboard/gpio_keys_polled.c button = (struct gpio_keys_button *)(pdata + 1); button 162 drivers/input/keyboard/gpio_keys_polled.c pdata->buttons = button; button 172 drivers/input/keyboard/gpio_keys_polled.c &button->code)) { button 178 drivers/input/keyboard/gpio_keys_polled.c fwnode_property_read_string(child, "label", &button->desc); button 181 drivers/input/keyboard/gpio_keys_polled.c &button->type)) button 182 drivers/input/keyboard/gpio_keys_polled.c button->type = EV_KEY; button 185 drivers/input/keyboard/gpio_keys_polled.c (u32 *)&button->value)) button 186 drivers/input/keyboard/gpio_keys_polled.c button->value = 1; button 188 drivers/input/keyboard/gpio_keys_polled.c button->wakeup = button 194 drivers/input/keyboard/gpio_keys_polled.c &button->debounce_interval)) button 195 drivers/input/keyboard/gpio_keys_polled.c button->debounce_interval = 5; button 197 drivers/input/keyboard/gpio_keys_polled.c button++; button 209 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button = &pdata->buttons[i]; button 211 drivers/input/keyboard/gpio_keys_polled.c if (button->type != EV_ABS || button->code != code) button 214 drivers/input/keyboard/gpio_keys_polled.c if (button->value < min) button 215 drivers/input/keyboard/gpio_keys_polled.c min = button->value; button 216 drivers/input/keyboard/gpio_keys_polled.c if (button->value > max) button 217 drivers/input/keyboard/gpio_keys_polled.c max = button->value; button 285 drivers/input/keyboard/gpio_keys_polled.c const struct gpio_keys_button *button = &pdata->buttons[i]; button 287 drivers/input/keyboard/gpio_keys_polled.c unsigned int type = button->type ?: EV_KEY; button 289 drivers/input/keyboard/gpio_keys_polled.c if (button->wakeup) { button 306 drivers/input/keyboard/gpio_keys_polled.c button->desc); button 316 drivers/input/keyboard/gpio_keys_polled.c } else if (gpio_is_valid(button->gpio)) { button 323 drivers/input/keyboard/gpio_keys_polled.c if (button->active_low) button 326 drivers/input/keyboard/gpio_keys_polled.c error = devm_gpio_request_one(dev, button->gpio, button 327 drivers/input/keyboard/gpio_keys_polled.c flags, button->desc ? : DRV_NAME); button 331 drivers/input/keyboard/gpio_keys_polled.c button->gpio, error); button 335 drivers/input/keyboard/gpio_keys_polled.c bdata->gpiod = gpio_to_desc(button->gpio); button 339 drivers/input/keyboard/gpio_keys_polled.c button->gpio); button 345 drivers/input/keyboard/gpio_keys_polled.c bdata->threshold = DIV_ROUND_UP(button->debounce_interval, button 348 drivers/input/keyboard/gpio_keys_polled.c input_set_capability(input, type, button->code); button 351 drivers/input/keyboard/gpio_keys_polled.c button->code); button 304 drivers/input/keyboard/qt1050.c struct qt1050_key *button = &ts->keys[0]; button 315 drivers/input/keyboard/qt1050.c for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { button 317 drivers/input/keyboard/qt1050.c if (button->keycode == KEY_RESERVED) button 320 drivers/input/keyboard/qt1050.c err = qt1050_set_key(map, button->num, 1); button 324 drivers/input/keyboard/qt1050.c key_regs = qt1050_get_key_regs(button->num); button 327 drivers/input/keyboard/qt1050.c (button->samples << 4) | (button->scale)); button 330 drivers/input/keyboard/qt1050.c err = regmap_write(map, key_regs->csd, button->charge_delay); button 333 drivers/input/keyboard/qt1050.c err = regmap_write(map, key_regs->nthr, button->thr_cnt); button 352 drivers/input/keyboard/qt1050.c struct qt1050_key button; button 356 drivers/input/keyboard/qt1050.c &button.keycode)) { button 360 drivers/input/keyboard/qt1050.c if (button.keycode >= KEY_MAX) { button 362 drivers/input/keyboard/qt1050.c button.keycode); button 367 drivers/input/keyboard/qt1050.c &button.num)) { button 371 drivers/input/keyboard/qt1050.c if (button.num < 0 || button.num > QT1050_MAX_KEYS - 1) button 374 drivers/input/keyboard/qt1050.c ts->reg_keys |= BIT(button.num); button 379 drivers/input/keyboard/qt1050.c &button.charge_delay)) { button 380 drivers/input/keyboard/qt1050.c button.charge_delay = 0; button 382 drivers/input/keyboard/qt1050.c if (button.charge_delay % 2500 == 0) button 383 drivers/input/keyboard/qt1050.c button.charge_delay = button 384 drivers/input/keyboard/qt1050.c button.charge_delay / 2500; button 386 drivers/input/keyboard/qt1050.c button.charge_delay = 0; button 390 drivers/input/keyboard/qt1050.c &button.samples)) { button 391 drivers/input/keyboard/qt1050.c button.samples = 0; button 393 drivers/input/keyboard/qt1050.c if (is_power_of_2(button.samples)) button 394 drivers/input/keyboard/qt1050.c button.samples = ilog2(button.samples); button 396 drivers/input/keyboard/qt1050.c button.samples = 0; button 400 drivers/input/keyboard/qt1050.c &button.scale)) { button 401 drivers/input/keyboard/qt1050.c button.scale = 0; button 403 drivers/input/keyboard/qt1050.c if (is_power_of_2(button.scale)) button 404 drivers/input/keyboard/qt1050.c button.scale = ilog2(button.scale); button 406 drivers/input/keyboard/qt1050.c button.scale = 0; button 411 drivers/input/keyboard/qt1050.c &button.thr_cnt)) { button 412 drivers/input/keyboard/qt1050.c button.thr_cnt = 20; button 414 drivers/input/keyboard/qt1050.c if (button.thr_cnt > 255) button 415 drivers/input/keyboard/qt1050.c button.thr_cnt = 20; button 418 drivers/input/keyboard/qt1050.c ts->keys[button.num] = button; button 106 drivers/input/keyboard/tca6416-keypad.c struct tca6416_button *button = &chip->buttons[pin_index]; button 107 drivers/input/keyboard/tca6416-keypad.c unsigned int type = button->type ?: EV_KEY; button 109 drivers/input/keyboard/tca6416-keypad.c ^ button->active_low; button 111 drivers/input/keyboard/tca6416-keypad.c input_event(input, type, button->code, !!state); button 118 drivers/input/misc/ad714x.c struct ad714x_button_drv *button; button 215 drivers/input/misc/ad714x.c struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; button 216 drivers/input/misc/ad714x.c struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; button 1013 drivers/input/misc/ad714x.c ad714x->sw->button = bt_drv = drv_mem; button 1125 drivers/input/misc/ad714x.c struct ad714x_button_plat *bt_plat = ad714x->hw->button; button 38 drivers/input/misc/cpcap-pwrbutton.c struct cpcap_power_button *button = _button; button 41 drivers/input/misc/cpcap-pwrbutton.c val = cpcap_sense_virq(button->regmap, irq); button 43 drivers/input/misc/cpcap-pwrbutton.c dev_err(button->dev, "irq read failed: %d", val); button 47 drivers/input/misc/cpcap-pwrbutton.c pm_wakeup_event(button->dev, 0); button 48 drivers/input/misc/cpcap-pwrbutton.c input_report_key(button->idev, KEY_POWER, val); button 49 drivers/input/misc/cpcap-pwrbutton.c input_sync(button->idev); button 56 drivers/input/misc/cpcap-pwrbutton.c struct cpcap_power_button *button; button 60 drivers/input/misc/cpcap-pwrbutton.c button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); button 61 drivers/input/misc/cpcap-pwrbutton.c if (!button) button 64 drivers/input/misc/cpcap-pwrbutton.c button->idev = devm_input_allocate_device(&pdev->dev); button 65 drivers/input/misc/cpcap-pwrbutton.c if (!button->idev) button 68 drivers/input/misc/cpcap-pwrbutton.c button->regmap = dev_get_regmap(pdev->dev.parent, NULL); button 69 drivers/input/misc/cpcap-pwrbutton.c if (!button->regmap) button 72 drivers/input/misc/cpcap-pwrbutton.c button->dev = &pdev->dev; button 74 drivers/input/misc/cpcap-pwrbutton.c button->idev->name = "cpcap-pwrbutton"; button 75 drivers/input/misc/cpcap-pwrbutton.c button->idev->phys = "cpcap-pwrbutton/input0"; button 76 drivers/input/misc/cpcap-pwrbutton.c button->idev->dev.parent = button->dev; button 77 drivers/input/misc/cpcap-pwrbutton.c input_set_capability(button->idev, EV_KEY, KEY_POWER); button 80 drivers/input/misc/cpcap-pwrbutton.c powerbutton_irq, IRQF_ONESHOT, "cpcap_pwrbutton", button); button 86 drivers/input/misc/cpcap-pwrbutton.c err = input_register_device(button->idev); button 88 drivers/input/misc/keyspan_remote.c u8 button; button 167 drivers/input/misc/keyspan_remote.c static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) button 171 drivers/input/misc/keyspan_remote.c input_event(input, EV_MSC, MSC_SCAN, button); button 172 drivers/input/misc/keyspan_remote.c input_report_key(input, remote->keymap[button], press); button 269 drivers/input/misc/keyspan_remote.c message.button = 0; button 274 drivers/input/misc/keyspan_remote.c message.button = message.button << 1; button 278 drivers/input/misc/keyspan_remote.c message.button = (message.button << 1) + 1; button 318 drivers/input/misc/keyspan_remote.c __func__, message.system, message.button, message.toggle); button 321 drivers/input/misc/keyspan_remote.c keyspan_report_button(remote, message.button, 1); button 322 drivers/input/misc/keyspan_remote.c keyspan_report_button(remote, message.button, 0); button 169 drivers/input/mouse/bcm5974.c u8 button; /* left button */ button 555 drivers/input/mouse/bcm5974.c dev->bt_data->unknown1, dev->bt_data->button, button 558 drivers/input/mouse/bcm5974.c input_report_key(dev->input, BTN_LEFT, dev->bt_data->button); button 106 drivers/input/rmi4/rmi_driver.h int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, button 111 drivers/input/rmi4/rmi_driver.h unsigned int button, int value) button 40 drivers/input/rmi4/rmi_f03.c int rmi_f03_overwrite_button(struct rmi_function *fn, unsigned int button, button 46 drivers/input/rmi4/rmi_f03.c if (button < BTN_LEFT || button > BTN_MIDDLE) button 49 drivers/input/rmi4/rmi_f03.c bit = BIT(button - BTN_LEFT); button 102 drivers/input/rmi4/rmi_f30.c struct f30_data *f30, unsigned int button) button 104 drivers/input/rmi4/rmi_f30.c unsigned int reg_num = button >> 3; button 105 drivers/input/rmi4/rmi_f30.c unsigned int bit_num = button & 0x07; button 106 drivers/input/rmi4/rmi_f30.c u16 key_code = f30->gpioled_key_map[button]; button 110 drivers/input/rmi4/rmi_f30.c button >= TRACKSTICK_RANGE_START && button 111 drivers/input/rmi4/rmi_f30.c button <= TRACKSTICK_RANGE_END) { button 210 drivers/input/rmi4/rmi_f30.c static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) button 212 drivers/input/rmi4/rmi_f30.c int byte_position = button >> 3; button 213 drivers/input/rmi4/rmi_f30.c int bit_position = button & 0x07; button 229 drivers/input/rmi4/rmi_f30.c unsigned int button = BTN_LEFT; button 252 drivers/input/rmi4/rmi_f30.c f30->gpioled_key_map[i] = button; button 253 drivers/input/rmi4/rmi_f30.c input_set_capability(input, EV_KEY, button++); button 267 drivers/input/rmi4/rmi_f30.c if (pdata->f30_data.buttonpad || (button - BTN_LEFT == 1)) button 311 drivers/input/tablet/wacom_serial4.c u8 in_proximity_p, stylus_p, button; button 317 drivers/input/tablet/wacom_serial4.c button = (wacom->data[3] & 0x78) >> 3; button 333 drivers/input/tablet/wacom_serial4.c tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; button 350 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_TOUCH, button & 1); button 351 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_STYLUS, button & 2); button 352 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_STYLUS2, button & 4); button 354 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_LEFT, button & 1); button 355 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_RIGHT, button & 2); button 356 drivers/input/tablet/wacom_serial4.c input_report_key(wacom->dev, BTN_MIDDLE, button & 4); button 36 drivers/input/touchscreen/ar1021_i2c.c unsigned int x, y, button; button 48 drivers/input/touchscreen/ar1021_i2c.c button = data[0] & BIT(0); button 54 drivers/input/touchscreen/ar1021_i2c.c input_report_key(input, BTN_TOUCH, button); button 208 drivers/media/platform/vivid/vivid-core.h struct v4l2_ctrl *button; button 1517 drivers/media/platform/vivid/vivid-ctrls.c dev->button = v4l2_ctrl_new_custom(hdl_user_gen, &vivid_ctrl_button, NULL); button 526 drivers/media/usb/em28xx/em28xx-input.c const struct em28xx_button *button; button 528 drivers/media/usb/em28xx/em28xx-input.c button = &dev->board.buttons[j]; button 531 drivers/media/usb/em28xx/em28xx-input.c if (button->reg_r != dev->button_polling_addresses[i]) { button 536 drivers/media/usb/em28xx/em28xx-input.c is_pressed = regval & button->mask; button 538 drivers/media/usb/em28xx/em28xx-input.c & button->mask; button 539 drivers/media/usb/em28xx/em28xx-input.c if (button->inverted) { button 544 drivers/media/usb/em28xx/em28xx-input.c if (is_pressed && button->reg_clearing) button 545 drivers/media/usb/em28xx/em28xx-input.c em28xx_write_reg(dev, button->reg_clearing, button 546 drivers/media/usb/em28xx/em28xx-input.c (~regval & button->mask) button 547 drivers/media/usb/em28xx/em28xx-input.c | (regval & ~button->mask)); button 553 drivers/media/usb/em28xx/em28xx-input.c switch (button->role) { button 629 drivers/media/usb/em28xx/em28xx-input.c const struct em28xx_button *button = &dev->board.buttons[i]; button 634 drivers/media/usb/em28xx/em28xx-input.c if (button->reg_r == dev->button_polling_addresses[j]) { button 646 drivers/media/usb/em28xx/em28xx-input.c if (button->role == EM28XX_BUTTON_SNAPSHOT) { button 650 drivers/media/usb/em28xx/em28xx-input.c } else if (button->role == EM28XX_BUTTON_ILLUMINATION) { button 662 drivers/media/usb/em28xx/em28xx-input.c dev->button_polling_addresses[index] = button->reg_r; button 666 drivers/media/usb/em28xx/em28xx-input.c if (!button->reg_clearing) button 338 drivers/media/usb/gspca/cpia1.c u8 button; /* snapshot button pressed (R/O) */ button 531 drivers/media/usb/gspca/cpia1.c if (a != sd->params.qx3.button) { button 536 drivers/media/usb/gspca/cpia1.c sd->params.qx3.button = a; button 538 drivers/media/usb/gspca/cpia1.c if (sd->params.qx3.button) { button 692 drivers/media/usb/gspca/cpia1.c params->qx3.button = 0; button 1640 drivers/media/usb/gspca/cpia1.c if (sd->params.qx3.button) { button 21 drivers/mfd/rohm-bd718x7.c static struct gpio_keys_button button = { button 28 drivers/mfd/rohm-bd718x7.c .buttons = &button, button 170 drivers/mfd/rohm-bd718x7.c button.irq = ret; button 78 drivers/platform/x86/surfacepro3_button.c struct surface_button *button = acpi_driver_data(device); button 120 drivers/platform/x86/surfacepro3_button.c input = button->input; button 124 drivers/platform/x86/surfacepro3_button.c pm_wakeup_dev_event(&device->dev, 0, button->suspended); button 125 drivers/platform/x86/surfacepro3_button.c if (button->suspended) button 135 drivers/platform/x86/surfacepro3_button.c struct surface_button *button = acpi_driver_data(device); button 137 drivers/platform/x86/surfacepro3_button.c button->suspended = true; button 144 drivers/platform/x86/surfacepro3_button.c struct surface_button *button = acpi_driver_data(device); button 146 drivers/platform/x86/surfacepro3_button.c button->suspended = false; button 191 drivers/platform/x86/surfacepro3_button.c struct surface_button *button; button 204 drivers/platform/x86/surfacepro3_button.c button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); button 205 drivers/platform/x86/surfacepro3_button.c if (!button) button 208 drivers/platform/x86/surfacepro3_button.c device->driver_data = button; button 209 drivers/platform/x86/surfacepro3_button.c button->input = input = input_allocate_device(); button 217 drivers/platform/x86/surfacepro3_button.c snprintf(button->phys, sizeof(button->phys), "%s/buttons", hid); button 220 drivers/platform/x86/surfacepro3_button.c input->phys = button->phys; button 240 drivers/platform/x86/surfacepro3_button.c kfree(button); button 246 drivers/platform/x86/surfacepro3_button.c struct surface_button *button = acpi_driver_data(device); button 248 drivers/platform/x86/surfacepro3_button.c input_unregister_device(button->input); button 249 drivers/platform/x86/surfacepro3_button.c kfree(button); button 47 drivers/platform/x86/xo15-ebook.c struct ebook_switch *button = acpi_driver_data(device); button 56 drivers/platform/x86/xo15-ebook.c input_report_switch(button->input, SW_TABLET_MODE, !state); button 57 drivers/platform/x86/xo15-ebook.c input_sync(button->input); button 86 drivers/platform/x86/xo15-ebook.c struct ebook_switch *button; button 92 drivers/platform/x86/xo15-ebook.c button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); button 93 drivers/platform/x86/xo15-ebook.c if (!button) button 96 drivers/platform/x86/xo15-ebook.c device->driver_data = button; button 98 drivers/platform/x86/xo15-ebook.c button->input = input = input_allocate_device(); button 116 drivers/platform/x86/xo15-ebook.c snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); button 119 drivers/platform/x86/xo15-ebook.c input->phys = button->phys; button 144 drivers/platform/x86/xo15-ebook.c kfree(button); button 150 drivers/platform/x86/xo15-ebook.c struct ebook_switch *button = acpi_driver_data(device); button 152 drivers/platform/x86/xo15-ebook.c input_unregister_device(button->input); button 153 drivers/platform/x86/xo15-ebook.c kfree(button); button 607 drivers/staging/unisys/visorinput/visorinput.c int xmotion, ymotion, button; button 646 drivers/staging/unisys/visorinput/visorinput.c button = calc_button(r.activity.arg1); button 647 drivers/staging/unisys/visorinput/visorinput.c if (button < 0) button 649 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); button 653 drivers/staging/unisys/visorinput/visorinput.c button = calc_button(r.activity.arg1); button 654 drivers/staging/unisys/visorinput/visorinput.c if (button < 0) button 656 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); button 660 drivers/staging/unisys/visorinput/visorinput.c button = calc_button(r.activity.arg1); button 661 drivers/staging/unisys/visorinput/visorinput.c if (button < 0) button 663 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); button 665 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); button 669 drivers/staging/unisys/visorinput/visorinput.c button = calc_button(r.activity.arg1); button 670 drivers/staging/unisys/visorinput/visorinput.c if (button < 0) button 673 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); button 675 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); button 180 drivers/usb/misc/cytherm.c static DEVICE_ATTR_RO(button); button 57 include/linux/input/ad714x.h struct ad714x_button_plat *button; button 317 include/uapi/linux/input.h __u16 button; button 115 scripts/kconfig/gconf.c GtkToolButton *button; button 122 scripts/kconfig/gconf.c button = GTK_TOOL_BUTTON(glade_xml_get_widget(xml, btn_name)); button 125 scripts/kconfig/gconf.c gtk_tool_button_set_icon_widget(button, image); button 706 scripts/kconfig/gconf.c void on_back_clicked(GtkButton * button, gpointer user_data) button 721 scripts/kconfig/gconf.c void on_load_clicked(GtkButton * button, gpointer user_data) button 727 scripts/kconfig/gconf.c void on_single_clicked(GtkButton * button, gpointer user_data) button 736 scripts/kconfig/gconf.c void on_split_clicked(GtkButton * button, gpointer user_data) button 752 scripts/kconfig/gconf.c void on_full_clicked(GtkButton * button, gpointer user_data) button 763 scripts/kconfig/gconf.c void on_collapse_clicked(GtkButton * button, gpointer user_data) button 769 scripts/kconfig/gconf.c void on_expand_clicked(GtkButton * button, gpointer user_data) button 108 scripts/kconfig/lxdialog/checklist.c int key = 0, button = 0, choice = 0, scroll = 0, max_choice; button 277 scripts/kconfig/lxdialog/checklist.c button = 1; button 289 scripts/kconfig/lxdialog/checklist.c return button; button 293 scripts/kconfig/lxdialog/checklist.c button = ((key == KEY_LEFT ? --button : ++button) < 0) button 294 scripts/kconfig/lxdialog/checklist.c ? 1 : (button > 1 ? 0 : button); button 296 scripts/kconfig/lxdialog/checklist.c print_buttons(dialog, height, width, button); button 35 scripts/kconfig/lxdialog/inputbox.c int input_x = 0, key = 0, button = -1; button 109 scripts/kconfig/lxdialog/inputbox.c if (button == -1) { /* Input box selected */ button 232 scripts/kconfig/lxdialog/inputbox.c switch (button) { button 234 scripts/kconfig/lxdialog/inputbox.c button = 1; /* Indicates "Help" button is selected */ button 238 scripts/kconfig/lxdialog/inputbox.c button = -1; /* Indicates input box is selected */ button 244 scripts/kconfig/lxdialog/inputbox.c button = 0; /* Indicates "OK" button is selected */ button 252 scripts/kconfig/lxdialog/inputbox.c switch (button) { button 254 scripts/kconfig/lxdialog/inputbox.c button = 0; /* Indicates "OK" button is selected */ button 258 scripts/kconfig/lxdialog/inputbox.c button = 1; /* Indicates "Help" button is selected */ button 262 scripts/kconfig/lxdialog/inputbox.c button = -1; /* Indicates input box is selected */ button 272 scripts/kconfig/lxdialog/inputbox.c return (button == -1 ? 0 : button); button 176 scripts/kconfig/lxdialog/menubox.c int key = 0, button = 0, scroll = 0, choice = 0; button 364 scripts/kconfig/lxdialog/menubox.c button = ((key == KEY_LEFT ? --button : ++button) < 0) button 365 scripts/kconfig/lxdialog/menubox.c ? 4 : (button > 4 ? 0 : button); button 367 scripts/kconfig/lxdialog/menubox.c print_buttons(dialog, height, width, button); button 404 scripts/kconfig/lxdialog/menubox.c return button; button 31 scripts/kconfig/lxdialog/yesno.c int i, x, y, key = 0, button = 0; button 80 scripts/kconfig/lxdialog/yesno.c button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); button 82 scripts/kconfig/lxdialog/yesno.c print_buttons(dialog, height, width, button); button 88 scripts/kconfig/lxdialog/yesno.c return button;