Home
last modified time | relevance | path

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

12345678910>>...37

/openbmc/webui-vue/docs/guide/components/buttons/
H A Dindex.md6 [theme-color map keys](/guide/guidelines/colors). To create a button that looks
9 [Learn more about Bootstrap-vue buttons](https://bootstrap-vue.js.org/docs/components/button)
13 Add `btn-icon-only` class to the button and add `title` attribute to get helper
14 text on hover over the button.
18 ![Button examples](./button.png)
22 <b-button variant="primary">Primary</b-button>
23 <b-button variant="primary">
26 </b-button>
27 <b-button variant="secondary">Secondary</b-button>
28 <b-button variant="danger">Danger</b-button>
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dwireless-hotkey.c39 struct wl_button *button = acpi_driver_data(device); in wireless_input_setup() local
42 button->input_dev = input_allocate_device(); in wireless_input_setup()
43 if (!button->input_dev) in wireless_input_setup()
46 snprintf(button->phys, sizeof(button->phys), "%s/input0", acpi_device_hid(device)); in wireless_input_setup()
48 button->input_dev->name = "Wireless hotkeys"; in wireless_input_setup()
49 button->input_dev->phys = button->phys; in wireless_input_setup()
50 button->input_dev->id.bustype = BUS_HOST; in wireless_input_setup()
51 button->input_dev->evbit[0] = BIT(EV_KEY); in wireless_input_setup()
52 set_bit(KEY_RFKILL, button->input_dev->keybit); in wireless_input_setup()
54 err = input_register_device(button->input_dev); in wireless_input_setup()
[all …]
H A Dadv_swbutton.c31 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()
65 button->input = input; in adv_swbutton_probe()
[all …]
H A Dxo15-ebook.c45 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()
117 input->phys = button->phys; in ebook_switch_add()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dgpio_keys_polled.c45 const struct gpio_keys_button *button, in gpio_keys_button_event() argument
49 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 …]
H A Dqt1050.c309 struct qt1050_key *button = &ts->keys[0]; in qt1050_apply_fw_data() local
320 for (i = 0; i < QT1050_MAX_KEYS; i++, button++) { in qt1050_apply_fw_data()
322 if (button->keycode == KEY_RESERVED) in qt1050_apply_fw_data()
325 err = qt1050_set_key(map, button->num, 1); in qt1050_apply_fw_data()
329 key_regs = qt1050_get_key_regs(button->num); in qt1050_apply_fw_data()
332 (button->samples << 4) | (button->scale)); in qt1050_apply_fw_data()
335 err = regmap_write(map, key_regs->csd, button->charge_delay); in qt1050_apply_fw_data()
338 err = regmap_write(map, key_regs->nthr, button->thr_cnt); in qt1050_apply_fw_data()
357 struct qt1050_key button; in qt1050_parse_fw() local
361 &button.keycode)) { in qt1050_parse_fw()
[all …]
H A Dgpio_keys.c34 const struct gpio_keys_button *button; member
213 if (bdata->button->type != type) in gpio_keys_attr_show_helper()
267 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
271 !bdata->button->can_disable) { in gpio_keys_attr_store_helper()
282 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
368 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
370 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
384 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
395 if (bdata->button->wakeup) in gpio_keys_debounce_event()
423 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
[all …]
/openbmc/linux/drivers/input/misc/
H A Dcpcap-pwrbutton.c30 struct cpcap_power_button *button = _button; in powerbutton_irq() local
33 val = cpcap_sense_virq(button->regmap, irq); in powerbutton_irq()
35 dev_err(button->dev, "irq read failed: %d", val); in powerbutton_irq()
39 pm_wakeup_event(button->dev, 0); in powerbutton_irq()
40 input_report_key(button->idev, KEY_POWER, val); in powerbutton_irq()
41 input_sync(button->idev); in powerbutton_irq()
48 struct cpcap_power_button *button; in cpcap_power_button_probe() local
56 button = devm_kmalloc(&pdev->dev, sizeof(*button), GFP_KERNEL); in cpcap_power_button_probe()
57 if (!button) in cpcap_power_button_probe()
60 button->idev = devm_input_allocate_device(&pdev->dev); in cpcap_power_button_probe()
[all …]
/openbmc/linux/drivers/acpi/
H A Dbutton.c206 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
218 button->last_state != !!state) in acpi_lid_notify_state()
223 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
225 if (button->last_state == !!state && in acpi_lid_notify_state()
267 input_report_switch(button->input, in acpi_lid_notify_state()
269 input_sync(button->input); in acpi_lid_notify_state()
277 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state()
278 input_sync(button->input); in acpi_lid_notify_state()
279 button->last_state = !!state; in acpi_lid_notify_state()
280 button->last_time = ktime_get(); in acpi_lid_notify_state()
[all …]
/openbmc/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c76 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
118 input = button->input; in surface_button_notify()
122 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify()
123 if (button->suspended) in surface_button_notify()
133 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local
135 button->suspended = true; in surface_button_suspend()
142 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local
144 button->suspended = false; in surface_button_resume()
189 struct surface_button *button; in surface_button_add() local
202 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add()
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/
H A DREADME.md9 Power button interface `xyz.openbmc_project.Chassis.Buttons.Power` provides
14 - simPress - To emulate physical power button press.
15 - simLongPress - To emulate physical power button long press.
19 - Released - Power button released signal.
20 - Pressed - Power button pressed signal.
21 - PressedLong - Power button long pressed signal.
25 ID button interface `xyz.openbmc_project.Chassis.Buttons.ID` provides following
30 - simPress - To emulate ID button press.
34 - Released - ID button released signal.
35 - Pressed - ID button pressed signal.
[all …]
/openbmc/docs/designs/
H A Dmultihost-phosphor-buttons.md18 additional input types in phosphor button interfaces and event handling.
21 (power and reset).There may be cases where we need to create button interface
22 which monitors non gpio events and triggers button actions for example events
27 This feature is needed to support additional phosphor button interfaces
29 available in the front panel apart from existing power and reset button
34 The front panel of bmc has buttons like power button, reset button in general
44 | | power button | | reset button | |
58 additional button in front panel.
67 | | power button |-+ | | +------------+
75 | | reset button --|--------+ switch | |---------+ host 3 |
[all …]
/openbmc/linux/drivers/soc/loongson/
H A Dloongson2_pm.c100 struct input_dev *button; in loongson2_power_button_init() local
102 button = input_allocate_device(); in loongson2_power_button_init()
106 button->name = "Power Button"; in loongson2_power_button_init()
107 button->phys = "pm/button/input0"; in loongson2_power_button_init()
108 button->id.bustype = BUS_HOST; in loongson2_power_button_init()
109 button->dev.parent = NULL; in loongson2_power_button_init()
110 input_set_capability(button, EV_KEY, KEY_POWER); in loongson2_power_button_init()
112 ret = input_register_device(button); in loongson2_power_button_init()
116 dev_pm_set_wake_irq(&button->dev, irq); in loongson2_power_button_init()
117 device_set_wakeup_capable(&button->dev, true); in loongson2_power_button_init()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dgpio-mouse.txt15 - button-left-gpios: GPIO line handle to the left mouse button
16 - 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>;
/openbmc/openbmc/meta-ufispace/meta-ncplite/recipes-phosphor/state/phosphor-state-manager/
H A Dhost-control10 gpioset --hold-period 50ms -t0 power-button=1
12 gpioset --hold-period 50ms -t0 power-button=0
13 gpioget power-button >/dev/null 2>&1
18 gpioset --hold-period 50ms -t0 reset-button=0
20 gpioset --hold-period 50ms -t0 reset-button=1
21 gpioget reset-button >/dev/null 2>&1
/openbmc/linux/scripts/kconfig/lxdialog/
H A Dyesno.c31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
80 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()
H A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
109 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 …]
/openbmc/u-boot/scripts/kconfig/lxdialog/
H A Dyesno.c31 int i, x, y, key = 0, button = 0; in dialog_yesno() local
80 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()
H A Dinputbox.c35 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
109 if (button == -1) { /* Input box selected */ in dialog_inputbox()
231 switch (button) { in dialog_inputbox()
233 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
237 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
243 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
251 switch (button) { in dialog_inputbox()
253 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
257 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
261 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
[all …]
/openbmc/linux/drivers/input/rmi4/
H A Drmi_f3a.c39 struct f3a_data *f3a, unsigned int button) in rmi_f3a_report_button() argument
41 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 …]
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/
H A Dphosphor-gpio-monitor_%.bbappend10 file://assert-reset-button \
11 file://assert-reset-button.service \
22 file://deassert-reset-button \
23 file://deassert-reset-button.service \
24 file://deassert-uart-switch-button \
25 file://deassert-uart-switch-button.service \
45 assert-reset-button.service \
48 deassert-reset-button.service \
49 deassert-uart-switch-button.service \
74 install -m 0755 ${UNPACKDIR}/assert-reset-button ${D}${libexecdir}/${PN}/
[all …]
/openbmc/u-boot/board/siemens/common/
H A Dboard.c118 int button = 0; in get_button_state() local
135 button = 1; in get_button_state()
137 button = 0; in get_button_state()
141 return button; in get_button_state()
152 int button = 0; in do_userbutton() local
153 button = get_button_state("button_dfu0", BOARD_DFU_BUTTON_GPIO); in do_userbutton()
154 button |= get_button_state("button_dfu1", BOARD_DFU_BUTTON_GPIO); in do_userbutton()
155 return button; in do_userbutton()
/openbmc/phosphor-webui/app/common/styles/elements/
H A Dmodals.scss75 button {
93 <button
94 type="button"
99 </button>
105 <button
106 type="button"
110 </button>
111 <button
116 </button>
/openbmc/webui-vue/tests/unit/__snapshots__/
H A DAppNavigation.spec.js.snap49 <button
53 data-test-id="nav-button-logs"
54 type="button"
91 </button>
136 <button
140 data-test-id="nav-button-hardware-status"
141 type="button"
193 </button>
238 <button
242 data-test-id="nav-button-operations"
[all …]
/openbmc/linux/arch/mips/boot/dts/ingenic/
H A Dgcw0.dts135 button-0 {
142 button-1 {
149 button-2 {
156 button-3 {
163 button-4 {
170 button-5 {
177 button-6 {
184 button-7 {
191 button-8 {
192 label = "Left shoulder button";
[all …]

12345678910>>...37