/drivers/acpi/ |
H A D | button.c | 2 * button.c - ACPI Button Driver 35 #include <acpi/button.h> 39 #define ACPI_BUTTON_CLASS "button" 61 ACPI_MODULE_NAME("button"); 91 .name = "button", 148 struct acpi_button *button = acpi_driver_data(device); local 153 if (button->type != ACPI_BUTTON_TYPE_LID) 161 /* create /proc/acpi/button */ 166 /* create /proc/acpi/button/lid */ 173 /* create /proc/acpi/button/li 205 struct acpi_button *button = acpi_driver_data(device); local 255 struct acpi_button *button = acpi_driver_data(device); local 287 struct acpi_button *button = acpi_driver_data(device); local 329 struct acpi_button *button = acpi_driver_data(device); local 338 struct acpi_button *button = acpi_driver_data(device); local 349 struct acpi_button *button; local 445 struct acpi_button *button = acpi_driver_data(device); local [all...] |
H A D | Makefile | 64 obj-$(CONFIG_ACPI_BUTTON) += button.o
|
/drivers/input/keyboard/ |
H A D | gpio_keys.c | 35 const struct gpio_keys_button *button; member in struct:gpio_button_data 89 * @type: type of button (%EV_KEY, %EV_SW) 102 * gpio_keys_disable_button() - disables given GPIO button 103 * @bdata: button data for button to be disabled 105 * Disables button pointed by @bdata. This is done by masking 106 * IRQ line. After this function is called, button won't generate 129 * gpio_keys_enable_button() - enables given GPIO button 130 * @bdata: button data for button t 328 const struct gpio_keys_button *button = bdata->button; local 395 const struct gpio_keys_button *button = bdata->button; local 437 gpio_keys_setup_key(struct platform_device *pdev, struct input_dev *input, struct gpio_button_data *bdata, const struct gpio_keys_button *button) argument 594 struct gpio_keys_button *button; local 737 const struct gpio_keys_button *button = &pdata->buttons[i]; local [all...] |
H A D | gpio_keys_polled.c | 48 struct gpio_keys_button *button, 54 state = !!gpio_get_value_cansleep(button->gpio); 56 state = !!gpio_get_value(button->gpio); 59 unsigned int type = button->type ?: EV_KEY; 61 input_event(input, type, button->code, 62 !!(state ^ button->active_low)); 110 struct gpio_keys_button *button; local 123 pdata = devm_kzalloc(dev, sizeof(*pdata) + nbuttons * sizeof(*button), 141 dev_warn(dev, "Found button without gpios\n"); 155 button 47 gpio_keys_polled_check_state(struct input_dev *input, struct gpio_keys_button *button, struct gpio_keys_button_data *bdata) argument 260 struct gpio_keys_button *button = &pdata->buttons[i]; local [all...] |
H A D | tca6416-keypad.c | 109 struct tca6416_button *button = &chip->buttons[pin_index]; local 110 unsigned int type = button->type ?: EV_KEY; 112 ^ button->active_low; 114 input_event(input, type, button->code, !!state);
|
/drivers/platform/x86/ |
H A D | xo15-ebook.c | 3 * (based on generic ACPI button driver) 51 struct ebook_switch *button = acpi_driver_data(device); local 60 input_report_switch(button->input, SW_TABLET_MODE, !state); 61 input_sync(button->input); 90 struct ebook_switch *button; local 96 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); 97 if (!button) 100 device->driver_data = button; 102 button->input = input = input_allocate_device(); 120 snprintf(button 154 struct ebook_switch *button = acpi_driver_data(device); local [all...] |
/drivers/hid/ |
H A D | hid-roccat-arvo.h | 67 uint8_t button; member in struct:arvo_roccat_report
|
H A D | hid-roccat-kovaplus.h | 116 uint8_t button; member in struct:kovaplus_roccat_report
|
H A D | hid-roccat-kone.h | 24 kone_keystroke_button_1 = 0xf0, /* left mouse button */ 25 kone_keystroke_button_2 = 0xf1, /* right mouse button */ 27 kone_keystroke_button_9 = 0xf3, /* side button up */ 28 kone_keystroke_button_8 = 0xf4 /* side button down */ 47 /* valid button types until firmware 1.32 */ 48 kone_button_info_type_button_1 = 0x1, /* click (left mouse button) */ 49 kone_button_info_type_button_2 = 0x2, /* menu (right mouse button)*/ 67 /* additional valid button types since firmware 1.38 */ 154 uint8_t button; member in struct:kone_mouse_event 200 /* Used for neutralizing abnormal button behaviou [all...] |
H A D | hid-roccat-kovaplus.c | 316 roccat_report.button = 0; 588 roccat_report.button = button_report->data1; 590 roccat_report.button = 0;
|
H A D | hid-roccat-arvo.c | 240 static BIN_ATTR(button, 0220, NULL, arvo_sysfs_write_button, 393 roccat_report.button = special_report->event &
|
/drivers/input/joystick/ |
H A D | amijoy.c | 56 int i, data = 0, button = 0; local 62 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; 63 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; 66 input_report_key(amijoy_dev[i], BTN_TRIGGER, button);
|
/drivers/input/tablet/ |
H A D | wacom_serial4.c | 42 * bit 3 1 if a button on the pointing device has been pressed 314 u8 in_proximity_p, stylus_p, button; local 320 button = (wacom->data[3] & 0x78) >> 3; 336 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; 353 input_report_key(wacom->dev, BTN_TOUCH, button & 1); 354 input_report_key(wacom->dev, BTN_STYLUS, button & 2); 355 input_report_key(wacom->dev, BTN_STYLUS2, button & 4); 357 input_report_key(wacom->dev, BTN_LEFT, button & 1); 358 input_report_key(wacom->dev, BTN_RIGHT, button & 2); 359 input_report_key(wacom->dev, BTN_MIDDLE, button [all...] |
/drivers/input/misc/ |
H A D | keyspan_remote.c | 49 * Currently there are 15 and 17 button models so RESERVED codes 96 u8 button; member in struct:keyspan_message 175 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) argument 179 input_event(input, EV_MSC, MSC_SCAN, button); 180 input_report_key(input, remote->keymap[button], press); 250 * message. We need to parse out the system code, button code, 277 message.button = 0; 282 message.button = message.button << 1; 286 message.button [all...] |
H A D | Kconfig | 20 reporting power button status. 30 reporting power button status. 163 reporting power button status. 185 reporting power button status. 272 tristate "Cobalt button interface" 276 Say Y here if you want to support MIPS Cobalt button interface. 282 tristate "x86 Wistron laptop button interface" 290 Say Y here for support of Wistron laptop button interfaces, used on 298 tristate "x86 Atlas button interface" 409 tristate "Retu Power button Drive [all...] |
H A D | ad714x.c | 119 struct ad714x_button_drv *button; member in struct:ad714x_driver_data 211 * One button can connect to multi positive and negative of CDCs 216 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; 217 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; 223 dev_dbg(ad714x->dev, "button %d touched\n", idx); 233 dev_dbg(ad714x->dev, "button %d released\n", idx); 1015 ad714x->sw->button = bt_drv = drv_mem; 1138 struct ad714x_button_plat *bt_plat = ad714x->hw->button; 1210 input_unregister_device(sw->button[0].input);
|
/drivers/input/touchscreen/ |
H A D | ar1021_i2c.c | 32 unsigned int x, y, button; local 44 button = data[0] & BIT(0); 50 input_report_key(input, BTN_TOUCH, button);
|
/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 93 /* it seems that 0xFE indicates that a button is still hold 94 down, while 0xff indicates that no button is hold down. */ 509 struct em28xx_button *button = &dev->board.buttons[j]; local 510 /* Check if button uses the current address */ 511 if (button->reg_r != dev->button_polling_addresses[i]) { 515 /* Determine if button is and was pressed last time */ 516 is_pressed = regval & button->mask; 518 & button->mask; 519 if (button->inverted) { 523 /* Clear button stat 611 struct em28xx_button *button = &dev->board.buttons[i]; local [all...] |
/drivers/input/joystick/iforce/ |
H A D | iforce-ff.c | 186 static unsigned char find_button(struct iforce *iforce, signed short button) argument 191 if (iforce->type->btn[i] == button) 298 || old->trigger.button != new->trigger.button 310 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, 321 data[2] = LO(axes) | find_button(iforce, button); 407 effect->trigger.button, 467 effect->trigger.button, 532 effect->trigger.button, effect->trigger.interval, 309 make_core(struct iforce* iforce, u16 id, u16 mod_id1, u16 mod_id2, u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, u16 interval, u16 direction) argument
|
/drivers/staging/cptm1217/ |
H A D | clearpad_tm1217.c | 92 bool button; member in struct:touch_state 255 if (ts->cp_input_info[i].touch.button == 0) { 256 /* send the button touch event */ 260 ts->cp_input_info[i].touch.button = 1; 264 if (ts->cp_input_info[i].touch.button == 1) { 265 /* send the button release event */ 270 ts->cp_input_info[i].touch.button = 0;
|
/drivers/char/ |
H A D | Kconfig | 205 time the orange button is pressed a number of times, the number of 206 times the button was pressed will be written to that device. 209 perform actions based on how many times the button is pressed in a 212 Do not hold the button down for too long, as the driver does not 214 button; it will still execute a hard reset if the button is held 221 below to be able to initiate a system shutdown from the button. 228 shutdown and reboot by pressing the orange button a number of times. 233 time with "insmod button reboot_count=<something>".
|
/drivers/media/usb/gspca/ |
H A D | cpia1.c | 350 u8 button; /* snapshot button pressed (R/O) */ member in struct:cam_params::__anon2426 540 /* test button press */ 542 if (a != sd->params.qx3.button) { 547 sd->params.qx3.button = a; 549 if (sd->params.qx3.button) { 550 /* button pressed - unlock the latch */ 699 params->qx3.button = 0; 1641 /* If the last button state is pressed, release it now! */ 1642 if (sd->params.qx3.button) { [all...] |
/drivers/media/platform/vivid/ |
H A D | vivid-core.h | 195 struct v4l2_ctrl *button; member in struct:vivid_dev
|
/drivers/input/mouse/ |
H A D | bcm5974.c | 171 /* button data structure */ 174 u8 button; /* left button */ member in struct:bt_data 182 TYPE2, /* button integrated in trackpad */ 191 /* trackpad button data offsets */ 231 int bt_ep; /* the endpoint of the button interface */ 232 int bt_datalen; /* data length of the button interface */ 253 struct urb *bt_urb; /* button usb request block */ 254 struct bt_data *bt_data; /* button transferred data */ 487 /* report button dat [all...] |
/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 317 pidff->set_effect[PID_TRIGGER_BUTTON].value[0] = effect->trigger.button; 340 effect->trigger.button != old->trigger.button ||
|