Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 94) sorted by relevance

1234

/linux-3.4.99/drivers/input/keyboard/
Dgpio_keys.c34 const struct gpio_keys_button *button; member
177 if (bdata->button->type != type) in gpio_keys_attr_show_helper()
183 __set_bit(bdata->button->code, bits); in gpio_keys_attr_show_helper()
225 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
228 if (test_bit(bdata->button->code, bits) && in gpio_keys_attr_store_helper()
229 !bdata->button->can_disable) { in gpio_keys_attr_store_helper()
240 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
243 if (test_bit(bdata->button->code, bits)) in gpio_keys_attr_store_helper()
329 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
331 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
[all …]
Dgpio_keys_polled.c46 struct gpio_keys_button *button, in gpio_keys_polled_check_state() argument
52 state = !!gpio_get_value_cansleep(button->gpio); in gpio_keys_polled_check_state()
54 state = !!gpio_get_value(button->gpio); in gpio_keys_polled_check_state()
57 unsigned int type = button->type ?: EV_KEY; in gpio_keys_polled_check_state()
59 input_event(input, type, button->code, in gpio_keys_polled_check_state()
60 !!(state ^ button->active_low)); in gpio_keys_polled_check_state()
150 struct gpio_keys_button *button = &pdata->buttons[i]; in gpio_keys_polled_probe() local
152 unsigned int gpio = button->gpio; in gpio_keys_polled_probe()
153 unsigned int type = button->type ?: EV_KEY; in gpio_keys_polled_probe()
155 if (button->wakeup) { in gpio_keys_polled_probe()
[all …]
/linux-3.4.99/drivers/acpi/
Dbutton.c140 struct acpi_button *button = acpi_driver_data(device); in acpi_button_add_fs() local
145 if (button->type != ACPI_BUTTON_TYPE_LID) in acpi_button_add_fs()
197 struct acpi_button *button = acpi_driver_data(device); in acpi_button_remove_fs() local
199 if (button->type != ACPI_BUTTON_TYPE_LID) in acpi_button_remove_fs()
247 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_send_state() local
257 input_report_switch(button->input, SW_LID, !state); in acpi_lid_send_state()
258 input_sync(button->input); in acpi_lid_send_state()
279 struct acpi_button *button = acpi_driver_data(device); in acpi_button_notify() local
287 input = button->input; in acpi_button_notify()
288 if (button->type == ACPI_BUTTON_TYPE_LID) { in acpi_button_notify()
[all …]
/linux-3.4.99/drivers/platform/x86/
Dxo15-ebook.c52 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
61 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
62 input_sync(button->input); in ebook_send_state()
87 struct ebook_switch *button; in ebook_switch_add() local
93 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
94 if (!button) in ebook_switch_add()
97 device->driver_data = button; in ebook_switch_add()
99 button->input = input = input_allocate_device(); in ebook_switch_add()
117 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
120 input->phys = button->phys; in ebook_switch_add()
[all …]
/linux-3.4.99/scripts/kconfig/lxdialog/
Dyesno.c44 int i, x, y, key = 0, button = 0; in dialog_yesno() local
93 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
95 print_buttons(dialog, height, width, button); in dialog_yesno()
101 return button; in dialog_yesno()
Dinputbox.c48 int input_x = 0, scroll = 0, key = 0, button = -1; in dialog_inputbox() local
118 if (button == -1) { /* Input box selected */ in dialog_inputbox()
181 switch (button) { in dialog_inputbox()
183 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
187 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
193 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
201 switch (button) { in dialog_inputbox()
203 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
207 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
211 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
[all …]
Dchecklist.c121 int key = 0, button = 0, choice = 0, scroll = 0, max_choice; in dialog_checklist() local
290 button = 1; in dialog_checklist()
302 return button; in dialog_checklist()
306 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_checklist()
307 ? 1 : (button > 1 ? 0 : button); in dialog_checklist()
309 print_buttons(dialog, height, width, button); in dialog_checklist()
Dmenubox.c187 int key = 0, button = 0, scroll = 0, choice = 0; in dialog_menu() local
374 button = ((key == KEY_LEFT ? --button : ++button) < 0) in dialog_menu()
375 ? 2 : (button > 2 ? 0 : button); in dialog_menu()
377 print_buttons(dialog, height, width, button); in dialog_menu()
414 return button; in dialog_menu()
/linux-3.4.99/drivers/staging/quickstart/
Dquickstart.c65 struct quickstart_button *button; member
162 pressed = quickstart->button; in quickstart_acpi_notify()
165 input_report_key(quickstart_input, quickstart->button->id, 1); in quickstart_acpi_notify()
167 input_report_key(quickstart_input, quickstart->button->id, 0); in quickstart_acpi_notify()
189 pr_err("%s GHID method failed\n", quickstart->button->name); in quickstart_acpi_ghid()
200 quickstart->button->id = *(uint8_t *)buffer.pointer; in quickstart_acpi_ghid()
203 quickstart->button->id = *(uint16_t *)buffer.pointer; in quickstart_acpi_ghid()
206 quickstart->button->id = *(uint32_t *)buffer.pointer; in quickstart_acpi_ghid()
209 quickstart->button->id = *(uint64_t *)buffer.pointer; in quickstart_acpi_ghid()
213 quickstart->button->name, in quickstart_acpi_ghid()
[all …]
/linux-3.4.99/Documentation/input/
Dsentelic.txt7 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
8 page (5th button)
33 Bit4 => 1 = 4th mouse button is pressed, Forward one page.
34 0 = 4th mouse button is not pressed.
35 Bit5 => 1 = 5th mouse button is pressed, Backward one page.
36 0 = 5th mouse button is not pressed.
64 Bit4 => 1 = 4th mouse button is pressed, Forward one page.
65 0 = 4th mouse button is not pressed.
66 Bit5 => 1 = 5th mouse button is pressed, Backward one page.
67 0 = 5th mouse button is not pressed.
[all …]
Damijoy.txt19 (6) - Fire button
22 (9) - Thumb button
30 (5) - Middle button
31 (6) - Left button
34 (9) - Right button
38 (1) - Top button
39 (2) - Top2 button
40 (3) - Trigger button
41 (4) - Thumb button
54 (5) - Touch button
[all …]
Dinput-programming.txt11 just one button and the button is accessible at i/o port BUTTON_PORT. When
34 if (request_irq(BUTTON_IRQ, button_interrupt, 0, "button", NULL)) {
35 printk(KERN_ERR "button.c: Can't allocate irq %d\n", button_irq);
41 printk(KERN_ERR "button.c: Not enough memory\n");
51 printk(KERN_ERR "button.c: Failed to register device\n");
109 which upon every interrupt from the button checks its state and reports it
124 This doesn't seem important in the one button case, but is quite important
140 if (request_irq(BUTTON_IRQ, button_interrupt, 0, "button", NULL)) {
141 printk(KERN_ERR "button.c: Can't allocate irq %d\n", button_irq);
199 struct for each absolute axis your device has. If our button device had also
[all …]
Datarikbd.txt34 mouse button states)
60 button being pressed or released, or motion in either axis exceeding a
72 ; where y is the right button state
73 ; and x is the left button state
77 Note that the value of the button state bits should be valid even if the
138 this mode the ikbd monitors the state of the Joystick 1 fire button at the
142 only stops the output but also temporarily stops scanning the button (samples
183 received while port 0 is presumed to be a mouse, the button is logically
214 %00000mss ; mouse button action
216 ; mss=0xy, mouse button press or release causes mouse
[all …]
Djoystick-api.txt34 __u8 number; /* axis/button number */
46 #define JS_EVENT_BUTTON 0x01 /* button pressed/released */
65 The values of ``number'' correspond to the axis or button that
67 is, you have both an axis 0 and a button 0). Generally,
89 For a button, ``value'' for a press button event is 1 and for a release
90 button event is 0.
117 task of detecting double clicks, figuring out if movement of axis and button
281 int buttons; /* immediate button state */
/linux-3.4.99/Documentation/devicetree/bindings/gpio/
Dgpio_keys.txt10 Each button (key) is represented as a sub-node of "gpio-keys":
18 - linux,input-type: Specify event type this button/key generates.
22 - gpio-key,wakeup: Boolean, button can wake-up the system.
31 button@21 {
/linux-3.4.99/arch/arm/boot/dts/
Dsnowball.dts28 button@1 {
35 button@2 {
42 button@3 {
49 button@4 {
56 button@5 {
/linux-3.4.99/drivers/input/misc/
Dkeyspan_remote.c97 u8 button; member
176 static void keyspan_report_button(struct usb_keyspan *remote, int button, int press) in keyspan_report_button() argument
180 input_event(input, EV_MSC, MSC_SCAN, button); in keyspan_report_button()
181 input_report_key(input, remote->keymap[button], press); in keyspan_report_button()
276 message.button = 0; in keyspan_check_data()
281 message.button = message.button << 1; in keyspan_check_data()
285 message.button = (message.button << 1) + 1; in keyspan_check_data()
320 __func__, message.system, message.button, message.toggle); in keyspan_check_data()
323 keyspan_report_button(remote, message.button, 1); in keyspan_check_data()
324 keyspan_report_button(remote, message.button, 0); in keyspan_check_data()
/linux-3.4.99/drivers/input/joystick/
Damijoy.c56 int i, data = 0, button = 0; in amijoy_interrupt() local
62 case 0: data = ~amiga_custom.joy0dat; button = (~ciaa.pra >> 6) & 1; break; in amijoy_interrupt()
63 case 1: data = ~amiga_custom.joy1dat; button = (~ciaa.pra >> 7) & 1; break; in amijoy_interrupt()
66 input_report_key(amijoy_dev[i], BTN_TRIGGER, button); in amijoy_interrupt()
/linux-3.4.99/arch/arm/mach-davinci/
Dboard-da850-evm.c444 struct gpio_keys_button *button; in da850_evm_ui_keys_init() local
447 button = &da850_evm_ui_keys[i]; in da850_evm_ui_keys_init()
448 button->code = KEY_F8 - i; in da850_evm_ui_keys_init()
449 button->desc = (char *) in da850_evm_ui_keys_init()
451 button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; in da850_evm_ui_keys_init()
611 struct gpio_keys_button *button; in da850_evm_bb_keys_init() local
613 button = &da850_evm_bb_keys[0]; in da850_evm_bb_keys_init()
614 button->desc = (char *) in da850_evm_bb_keys_init()
616 button->gpio = gpio + DA850_EVM_BB_EXP_USER_PB1; in da850_evm_bb_keys_init()
619 button = &da850_evm_bb_keys[i + 1]; in da850_evm_bb_keys_init()
[all …]
/linux-3.4.99/Documentation/ABI/testing/
Dsysfs-firmware-acpi33 as the power button, it can also handle a variable
140 Let's take power button fixed event for example, please kill acpid
142 when pressing the power button.
145 # press the power button for 3 times;
151 # press the power button for 3 times;
161 # press the power button for 3 times;
165 # press the power button for 3 times;
Dsysfs-driver-wacom28 button is pressed on the stylus. This luminance level is
29 normally lower than the level when a button is pressed.
36 when the stylus touches the tablet surface, or any button is
61 of all eight button OLED displays.
63 What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/button<n>_rawimg
Dsysfs-driver-hid-roccat-koneplus26 Description: The mouse can store a macro with max 500 key/button strokes
29 button for a specific profile. Button and profile numbers are
38 press of a button. A profile is split in settings and buttons.
39 profile_buttons holds information about button layout.
52 press of a button. A profile is split in settings and buttons.
53 profile_buttons holds information about button layout.
63 press of a button. A profile is split in settings and buttons.
78 press of a button. A profile is split in settings and buttons.
Dsysfs-driver-hid-roccat-pyra5 press of a button.
41 press of a button. A profile is split in settings and buttons.
56 press of a button. A profile is split in settings and buttons.
68 press of a button. A profile is split in settings and buttons.
69 profile_buttons holds information about button layout.
82 press of a button. A profile is split in settings and buttons.
83 profile_buttons holds information about button layout.
Dsysfs-driver-hid-roccat-kovaplus54 press of a button. A profile is split in settings and buttons.
55 profile_buttons holds information about button layout.
68 press of a button. A profile is split in settings and buttons.
69 profile_buttons holds information about button layout.
79 press of a button. A profile is split in settings and buttons.
94 press of a button. A profile is split in settings and buttons.
/linux-3.4.99/drivers/input/joystick/iforce/
Diforce-ff.c186 static unsigned char find_button(struct iforce *iforce, signed short button) in find_button() argument
191 if (iforce->type->btn[i] == button) in find_button()
298 || old->trigger.button != new->trigger.button in need_core()
310 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument
321 data[2] = LO(axes) | find_button(iforce, button); in make_core()
407 effect->trigger.button, in iforce_upload_periodic()
467 effect->trigger.button, in iforce_upload_constant()
532 effect->trigger.button, effect->trigger.interval, in iforce_upload_condition()

1234