| /Linux-v5.15/drivers/input/misc/ | 
| D | cpcap-pwrbutton.c | 2  * CPCAP Power Button Input Driver38 	struct cpcap_power_button *button = _button;  in powerbutton_irq()  local
 41 	val = cpcap_sense_virq(button->regmap, irq);  in powerbutton_irq()
 43 		dev_err(button->dev, "irq read failed: %d", val);  in powerbutton_irq()
 47 	pm_wakeup_event(button->dev, 0);  in powerbutton_irq()
 48 	input_report_key(button->idev, KEY_POWER, val);  in powerbutton_irq()
 49 	input_sync(button->idev);  in powerbutton_irq()
 56 	struct cpcap_power_button *button;  in cpcap_power_button_probe()  local
 60 	button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL);  in cpcap_power_button_probe()
 61 	if (!button)  in cpcap_power_button_probe()
 [all …]
 
 | 
| D | palmas-pwrbutton.c | 2  * Texas Instruments' Palmas Power Button Input Driver49  * @pwron_debounce_val:		value for debounce of power button
 57  * palmas_power_button_work() - Detects the button release event
 58  * @work:	work item to detect button release
 75 		/* The button is released, report event. */  in palmas_power_button_work()
 79 		/* The button is still depressed, keep checking. */  in palmas_power_button_work()
 86  * pwron_irq() - button press isr
 109  * @dev:	palmas button device
 158  * @pdev:	platform device for the button
 180 		dev_err(dev, "Can't allocate power button\n");  in palmas_pwron_probe()
 [all …]
 
 | 
| D | Kconfig | 21 	  reporting power button status.31 	  reporting power button status.
 77 	tristate "Dell Wyse 3020 Power Button Driver"
 81 	  Say Y to enable support for reporting power button status on
 102 	  power button status. ONKEY can be used to wakeup from low power
 109 	tristate "Atmel Capacitive Touch Button Driver"
 113 	  Say Y here if an Atmel Capacitive Touch Button device which
 133 	tristate "NI Ettus Research USRP E3xx Button support."
 137 	  USRP E3xx Button.
 230 	  reporting power button status.
 [all …]
 
 | 
| D | e3x0-button.c | 5  * Driver for NI Ettus Research USRP E3x0 Button Driver79 	input->name = "NI Ettus Research USRP E3x0 Button Driver";  in e3x0_button_probe()
 87 				 "e3x0-button", input);  in e3x0_button_probe()
 96 				 "e3x0-button", input);  in e3x0_button_probe()
 115 	{ .compatible = "ettus,e3x0-button", },
 123 		.name	= "e3x0-button",
 134 MODULE_DESCRIPTION("NI Ettus Research USRP E3x0 Button driver");
 135 MODULE_ALIAS("platform:e3x0-button");
 
 | 
| /Linux-v5.15/drivers/acpi/ | 
| D | button.c | 3  *  button.c - ACPI Button Driver9 #define pr_fmt(fmt) "ACPI: button: " fmt
 22 #include <acpi/button.h>
 24 #define ACPI_BUTTON_CLASS		"button"
 30 #define ACPI_BUTTON_DEVICE_NAME_POWER	"Power Button"
 34 #define ACPI_BUTTON_DEVICE_NAME_SLEEP	"Sleep Button"
 56 MODULE_DESCRIPTION("ACPI Button Driver");
 141 	.name = "button",
 188 	struct acpi_button *button = acpi_driver_data(device);  in acpi_lid_notify_state()  local
 200 	    button->last_state != !!state)  in acpi_lid_notify_state()
 [all …]
 
 | 
| /Linux-v5.15/drivers/input/keyboard/ | 
| D | gpio_keys_polled.c | 45 				   const struct gpio_keys_button *button,  in gpio_keys_button_event()  argument49 	unsigned int type = button->type ?: EV_KEY;  in gpio_keys_button_event()
 53 			input_event(input, type, button->code, button->value);  in gpio_keys_button_event()
 54 			__set_bit(button->code, bdev->rel_axis_seen);  in gpio_keys_button_event()
 58 			input_event(input, type, button->code, button->value);  in gpio_keys_button_event()
 59 			__set_bit(button->code, bdev->abs_axis_seen);  in gpio_keys_button_event()
 62 		input_event(input, type, button->code, state);  in gpio_keys_button_event()
 68 					 const struct gpio_keys_button *button,  in gpio_keys_polled_check_state()  argument
 78 		gpio_keys_button_event(input, button, state);  in gpio_keys_polled_check_state()
 146 	struct gpio_keys_button *button;  in gpio_keys_polled_get_devtree_pdata()  local
 [all …]
 
 | 
| D | gpio_keys.c | 34 	const struct gpio_keys_button *button;  member100  * @type: type of button (%EV_KEY, %EV_SW)
 115  * @type: type of button (%EV_KEY, %EV_SW)
 141  * gpio_keys_disable_button() - disables given GPIO button
 142  * @bdata: button data for button to be disabled
 144  * Disables button pointed by @bdata. This is done by masking
 145  * IRQ line. After this function is called, button won't generate
 166  * gpio_keys_enable_button() - enables given GPIO button
 167  * @bdata: button data for button to be disabled
 169  * Enables given button pointed by @bdata.
 [all …]
 
 | 
| D | qt1050.c | 304 	struct qt1050_key *button = &ts->keys[0];  in qt1050_apply_fw_data()  local315 	for (i = 0; i < QT1050_MAX_KEYS; i++, button++) {  in qt1050_apply_fw_data()
 317 		if (button->keycode == KEY_RESERVED)  in qt1050_apply_fw_data()
 320 		err = qt1050_set_key(map, button->num, 1);  in qt1050_apply_fw_data()
 324 		key_regs = qt1050_get_key_regs(button->num);  in qt1050_apply_fw_data()
 327 				   (button->samples << 4) | (button->scale));  in qt1050_apply_fw_data()
 330 		err = regmap_write(map, key_regs->csd, button->charge_delay);  in qt1050_apply_fw_data()
 333 		err = regmap_write(map, key_regs->nthr, button->thr_cnt);  in qt1050_apply_fw_data()
 352 		struct qt1050_key button;  in qt1050_parse_fw()  local
 356 					     &button.keycode)) {  in qt1050_parse_fw()
 [all …]
 
 | 
| /Linux-v5.15/drivers/platform/surface/ | 
| D | surfacepro3_button.c | 3  * power/home/volume button support for16 #include <acpi/button.h>
 44 MODULE_DESCRIPTION("Surface Pro3 Button Driver");
 48  * Power button, Home button, Volume buttons support is supposed to
 76 	struct surface_button *button = acpi_driver_data(device);  in surface_button_notify()  local
 82 	/* Power button press,release handle */  in surface_button_notify()
 89 	/* Home button press,release handle */  in surface_button_notify()
 96 	/* Volume up button press,release handle */  in surface_button_notify()
 103 	/* Volume down button press,release handle */  in surface_button_notify()
 118 	input = button->input;  in surface_button_notify()
 [all …]
 
 | 
| /Linux-v5.15/drivers/platform/x86/ | 
| D | adv_swbutton.c | 3  *  adv_swbutton.c - Software Button Interface Driver.31 	struct adv_swbutton *button = dev_get_drvdata(&device->dev);  in adv_swbutton_notify()  local
 35 		input_report_key(button->input, KEY_PROG1, 0);  in adv_swbutton_notify()
 36 		input_sync(button->input);  in adv_swbutton_notify()
 39 		input_report_key(button->input, KEY_PROG1, 1);  in adv_swbutton_notify()
 40 		input_sync(button->input);  in adv_swbutton_notify()
 49 	struct adv_swbutton *button;  in adv_swbutton_probe()  local
 55 	button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL);  in adv_swbutton_probe()
 56 	if (!button)  in adv_swbutton_probe()
 59 	dev_set_drvdata(&device->dev, button);  in adv_swbutton_probe()
 [all …]
 
 | 
| D | xo15-ebook.c | 4  *  (based on generic ACPI button driver)45 	struct ebook_switch *button = acpi_driver_data(device);  in ebook_send_state()  local
 54 	input_report_switch(button->input, SW_TABLET_MODE, !state);  in ebook_send_state()
 55 	input_sync(button->input);  in ebook_send_state()
 84 	struct ebook_switch *button;  in ebook_switch_add()  local
 90 	button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL);  in ebook_switch_add()
 91 	if (!button)  in ebook_switch_add()
 94 	device->driver_data = button;  in ebook_switch_add()
 96 	button->input = input = input_allocate_device();  in ebook_switch_add()
 114 	snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid);  in ebook_switch_add()
 [all …]
 
 | 
| /Linux-v5.15/Documentation/input/ | 
| D | gamepad.rst | 11 having user-space deal with different button-mappings for each gamepad, this51     Furthermore, many gamepads have a fancy branded button that is used as
 52     special system-button. It often looks different to the other buttons and
 57     Analog-sticks may also provide a digital button if you press them.
 106   Please note that 2- and 3-button pads are fairly rare and old. You might
 109     - 2-Button Pad:
 112       BTN_EAST. For vertical layouts, the upper button is BTN_EAST. For
 113       horizontal layouts, the button more on the right is BTN_EAST.
 115     - 3-Button Pad:
 122     - 4-Button Pad:
 [all …]
 
 | 
| /Linux-v5.15/Documentation/input/devices/ | 
| D | sentelic.rst | 15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward16    page (5th button)
 37 	    Bit2 => Middle Button, 1 is pressed, 0 is not pressed.
 38 	    Bit1 => Right Button, 1 is pressed, 0 is not pressed.
 39 	    Bit0 => Left Button, 1 is pressed, 0 is not pressed.
 44 	    Bit4 => 1 = 4th mouse button is pressed, Forward one page.
 45 		    0 = 4th mouse button is not pressed.
 46 	    Bit5 => 1 = 5th mouse button is pressed, Backward one page.
 47 		    0 = 5th mouse button is not pressed.
 69 	    Bit2 => Middle Button, 1 is pressed, 0 is not pressed.
 [all …]
 
 | 
| D | joystick-parport.rst | 170          |   +----> Button190          | | +----> Button                  | | | +----> Button 1
 191          | +------> Power                   | | +------> Button 2
 208          | | +----> Button 1                | | | +----> Button
 209          | +------> Button 2                | | +------> Power
 215       +-----------> Up                     +-----------> Button 3
 226        | | | +----> Right                   | | | +----> Button 1
 229        +----------> Down                    +----------> Button 2
 240 For the basic 1-button Multisystem joystick you connect its wires to the
 250     (pin  6) -----> Button 1
 [all …]
 
 | 
| /Linux-v5.15/Documentation/devicetree/bindings/input/ | 
| D | gpio-mouse.txt | 15 	- button-left-gpios: GPIO line handle to the left mouse button16 	- button-middle-gpios: GPIO line handle to the middle mouse button
 17 	- button-right-gpios: GPIO line handle to the right mouse button
 29 	button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
 30 	button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
 31 	button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
 
 | 
| D | ti,palmas-pwrbutton.txt | 1 Texas Instruments Palmas family power button module7 This module provides a simple power button event via an Interrupt.
 11    - "ti,palmas-pwrbutton": For Palmas compatible power on button
 12 - interrupts: Interrupt number of power button submodule on device.
 17   button should be kept pressed for Palmas to power off automatically.
 21   which the power button should be kept pressed for Palmas to register
 
 | 
| /Linux-v5.15/drivers/hid/ | 
| D | hid-elecom.c | 27  * Certain ELECOM mice misreport their button count meaning that they only work48 	hid_info(hdev, "Fixing up Elecom mouse button count\n");  in mouse_button_fixup()
 70 		 * 20: button bit count  in elecom_report_fixup()
 72 		 * 22: button report size  in elecom_report_fixup()
 73 		 * 14: button usage maximum  in elecom_report_fixup()
 82 		 * 12: button bit count  in elecom_report_fixup()
 84 		 * 14: button report size  in elecom_report_fixup()
 85 		 * 20: button usage maximum  in elecom_report_fixup()
 95 		 * 12: button bit count  in elecom_report_fixup()
 97 		 * 14: button report size  in elecom_report_fixup()
 [all …]
 
 | 
| /Linux-v5.15/scripts/kconfig/lxdialog/ | 
| D | inputbox.c | 35 	int input_x = 0, key = 0, button = -1;  in dialog_inputbox()  local109 		if (button == -1) {	/* Input box selected */  in dialog_inputbox()
 232 			switch (button) {  in dialog_inputbox()
 234 				button = 1;	/* Indicates "Help" button is selected */  in dialog_inputbox()
 238 				button = -1;	/* Indicates input box is selected */  in dialog_inputbox()
 244 				button = 0;	/* Indicates "OK" button is selected */  in dialog_inputbox()
 252 			switch (button) {  in dialog_inputbox()
 254 				button = 0;	/* Indicates "OK" button is selected */  in dialog_inputbox()
 258 				button = 1;	/* Indicates "Help" button is selected */  in dialog_inputbox()
 262 				button = -1;	/* Indicates input box is selected */  in dialog_inputbox()
 [all …]
 
 | 
| D | yesno.c | 31 	int i, x, y, key = 0, button = 0;  in dialog_yesno()  local80 			button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button);  in dialog_yesno()
 82 			print_buttons(dialog, height, width, button);  in dialog_yesno()
 88 			return button;  in dialog_yesno()
 
 | 
| /Linux-v5.15/arch/mips/boot/dts/ingenic/ | 
| D | gcw0.dts | 138 		button@0 {145 		button@1 {
 152 		button@2 {
 159 		button@3 {
 166 		button@4 {
 167 			label = "Button A";
 173 		button@5 {
 174 			label = "Button B";
 180 		button@6 {
 181 			label = "Button Y";
 [all …]
 
 | 
| /Linux-v5.15/Documentation/firmware-guide/acpi/ | 
| D | acpi-lid.rst | 52 The ACPI button driver exports the lid state to the userspace via the55   /proc/acpi/button/lid/LID0/state
 62 The ACPI button driver emits the following input event to the userspace:
 68 button driver uses the following 3 modes in order not to trigger issues.
 74 A. button.lid_init_state=method:
 75    When this option is specified, the ACPI button driver reports the
 87 B. button.lid_init_state=open:
 88    When this option is specified, the ACPI button driver always reports the
 100 C. button.lid_init_state=ignore:
 101    When this option is specified, the ACPI button driver never reports the
 [all …]
 
 | 
| /Linux-v5.15/drivers/media/usb/em28xx/ | 
| D | em28xx-input.c | 97 	 * it seems that 0xFE indicates that a button is still hold  in em28xx_get_key_terratec()98 	 * down, while 0xff indicates that no button is hold down.  in em28xx_get_key_terratec()
 526 			const struct em28xx_button *button;  in em28xx_query_buttons()  local
 528 			button = &dev->board.buttons[j];  in em28xx_query_buttons()
 530 			/* Check if button uses the current address */  in em28xx_query_buttons()
 531 			if (button->reg_r != dev->button_polling_addresses[i]) {  in em28xx_query_buttons()
 535 			/* Determine if button is and was pressed last time */  in em28xx_query_buttons()
 536 			is_pressed = regval & button->mask;  in em28xx_query_buttons()
 538 				       & button->mask;  in em28xx_query_buttons()
 539 			if (button->inverted) {  in em28xx_query_buttons()
 [all …]
 
 | 
| /Linux-v5.15/Documentation/input/joydev/ | 
| D | joystick.rst | 150 with CH Flightstick Pro, ThrustMaster FCS or 6 and 8 button gamepads. Saitek156 * 2-axis, 4-button joystick
 157 * 3-axis, 4-button joystick
 158 * 4-axis, 4-button joystick
 177 	2btn      2-button n-axis joystick
 178 	y-joy     Two 2-button 2-axis joysticks on an Y-cable
 179 	y-pad     Two 2-button 2-axis gamepads on an Y-cable
 183 	gamepad   4/6-button n-axis gamepad
 184 	gamepad8  8-button 2-axis gamepad
 199 	 4   Button A
 [all …]
 
 | 
| /Linux-v5.15/drivers/input/rmi4/ | 
| D | rmi_f3a.c | 39 				  struct f3a_data *f3a, unsigned int button)  in rmi_f3a_report_button()  argument41 	u16 key_code = f3a->gpio_key_map[button];  in rmi_f3a_report_button()
 42 	bool key_down = !(f3a->data_regs[0] & BIT(button));  in rmi_f3a_report_button()
 45 		button >= TRACKSTICK_RANGE_START &&  in rmi_f3a_report_button()
 46 		button <= TRACKSTICK_RANGE_END) {  in rmi_f3a_report_button()
 115 static bool rmi_f3a_is_valid_button(int button, struct f3a_data *f3a,  in rmi_f3a_is_valid_button()  argument
 119 	return (query1_regs[0] & BIT(button)) && !(ctrl1_regs[0] & BIT(button));  in rmi_f3a_is_valid_button()
 128 	unsigned int button = BTN_LEFT;  in rmi_f3a_map_gpios()  local
 152 			f3a->gpio_key_map[i] = button;  in rmi_f3a_map_gpios()
 153 			input_set_capability(input, EV_KEY, button++);  in rmi_f3a_map_gpios()
 [all …]
 
 | 
| /Linux-v5.15/arch/arm/boot/dts/ | 
| D | armada-xp-lenovo-ix4-300d.dts | 142 		power-button {143 			label = "Power Button";
 148 		reset-button {
 149 			label = "Reset Button";
 154 		select-button {
 155 			label = "Select Button";
 160 		scroll-button {
 161 			label = "Scroll Button";
 270 	power_button_pin: power-button-pin {
 275 	reset_button_pin: reset-button-pin {
 [all …]
 
 |