/openbmc/webui-vue/docs/guide/components/buttons/ |
H A D | index.md | 6 [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 D | wireless-hotkey.c | 3 * Airplane mode button for AMD, HP & Xiaomi laptops 39 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() [all …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/ |
H A D | README.md | 7 ### Power Button Interface 9 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. 23 ### ID Button Interface 25 ID button interface `xyz.openbmc_project.Chassis.Buttons.ID` provides following 30 - simPress - To emulate ID button press. [all …]
|
/openbmc/docs/designs/ |
H A D | multihost-phosphor-buttons.md | 18 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/phosphor-webui/app/server-health/controllers/ |
H A D | syslog-controller.html | 9 …<button type="button" class="dropdown__button" ng-click="showLogDropdown = !showLogDropdown"><stro… 12 … <button type="button" ng-click="selectRecordType(recordType);">{{recordType}}</button> 17 …button class="inline clear-input float-right btn-secondary" ng-click="confirm = !confirm" ng-show=… 24 … <button class="btn-primary" ng-click="clearSystemLogEntries(selectedRecordType)">Yes</button> 25 <button class="btn-primary" ng-click="confirm = false">No</button> 37 <button class="btn" type="button" aria-label="clear filter" ng-click="clear()"> 39 </button> 53 <button class="sort-ascending" ng-click="sortBy('Id', false)"></button> 54 <button class="sort-descending" ng-click="sortBy('Id', true)"></button> 60 <button class="sort-ascending" ng-click="sortBy('Created', false)"></button> [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | gpio_keys_polled.c | 45 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 D | gpio_keys.c | 34 const struct gpio_keys_button *button; member 100 * @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 …]
|
H A D | qt1050.c | 309 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 …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | cpcap-pwrbutton.c | 3 * CPCAP Power Button Input Driver 30 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() [all …]
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | ldap-user-roles.html | 3 <button 4 type="button" 12 </button> 13 <button 14 type="button" 21 </button> 46 <button 51 ></button> 52 <button 57 ></button> [all …]
|
H A D | log-filter.html | 5 <button class="btn" ng-click="toggleSeverityAll()" 7 </button> 8 <button class="btn" ng-click="toggleSeverity('high')" 10 </button> 11 <button class="btn" ng-click="toggleSeverity('medium')" 13 </button> 14 <button class="btn" ng-click="toggleSeverity('low')" 16 </button> 40 … <button class="dropdown__button" ng-click="statusFilter = statusFilter == true ? false : true;" 45 </button> [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | button.c | 3 * button.c - ACPI Button Driver 9 #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"); 160 .name = "button", 206 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local 218 button->last_state != !!state) in acpi_lid_notify_state() [all …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surfacepro3_button.c | 3 * power/home/volume button support for 16 #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 …]
|
/openbmc/openbmc-test-automation/gui/data/ |
H A D | resource_variables.py | 19 xpath_submit_button = '//button[@type="submit"]' 22 xpath_button_user_action = "//button[@id='user-actions']" 23 xpath_button_logout = '//button[text()="Log out"]' 24 xpath_yes_button = "//button[text()='Yes']" 27 xpath_cancel_button = "//button[contains(text(),'Cancel')]" 28 xpath_save_setting_button = "//button[contains(text(),'Save settings')]" 29 xpath_save_button = "//button[contains(text(),'Save')]" 30 xpath_remove_button = "//button[contains(text(),'Remove')]" 31 xpath_add_button = "//button[@type='submit']" 38 "/div[3]/div[3]/confirm/div/div[2]/button[1]" [all …]
|
/openbmc/phosphor-webui/app/configuration/controllers/ |
H A D | network-controller.html | 19 <button type="button" class="dropdown__button" 20 ng-click="networkDevice = !networkDevice">{{selectedInterface}}</button> 23 … <button type="button" ng-click="selectInterface(interface_id);">{{interface_id}}</button> 75 …<button type="button" class="btn btn-tertiary network-config_remove-button" ng-click="removeIpv4A… 80 … <button type="button" class="btn btn-primary" ng-click="addIpv4Field()">Add IPV4 address</button> 97 …<button type="button" class="btn btn-tertiary network-config_remove-button" ng-click="removeDNSF… 102 …<button type="button" class="btn btn-primary dns_add" ng-click="addDNSField()">Add DNS server</bu… 110 <button type="button" class="btn btn-secondary" ng-click="refresh()">Cancel</button> 111 …<button type="button" class="btn btn-primary" ng-click="confirmSettings=true;">Save settings</but… 132 <button class="btn btn-secondary" ng-click="confirmSettings=false;">Cancel</button> [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Chassis/Buttons/ |
H A D | Button.interface.yaml | 2 Button interface is a generic phosphor button interface which supports two 3 primary actions (pressed/releasd). When the button is pressed "Pressed" 4 signal is emitted and when button is released then "Released" 9 Emulate button press. 15 Emulate button release. 21 Emulate long button press. 31 Enable/disable the button object. false means button is disabled true 32 means button is enabled 40 Button released signal 43 Button pressed signal [all …]
|
H A D | Power.interface.yaml | 2 Power button control service 6 Emulate power button press. 12 Emulate power button long press. 22 Enable/disable power button. false means power button is disabled true 23 means power button is enabled 31 Power button released signal 36 Power button pressing duration in microseconds 39 Power button pressed signal 42 Power button long pressed signal
|
H A D | NMI.interface.yaml | 2 NMI button is a Diagnostic Interrupt(Front Panel NMI).Diagnostic interrupt 4 core dumps from the operating system. The diagnostic interrupt button is 6 button on the front panel and then trigger NMI signal. 10 Emulate NMI button press. 20 Enable/disable NMI button. false means NMI button is disabled true 21 means NMI button is enabled 29 NMI button released signal 32 NMI button pressed signal
|
/openbmc/openbmc-tools/dbus-vis/ |
H A D | index.html | 27 <button id="btn_open_file">Open file</button> 33 <button id="btn_start_capture">Start Capture</button> 34 <button id="btn_stop_capture">Stop Capture</button> 77 …<br/><span>Welcome! Please <button id="btn_open_file2">Open file</button> to get timeline view/s.<… 94 <button id="btn_download_dbus_pcap">Download to dbus-vis folder</button> 116 <button id="btn_zoom_in">Zoom In</button> 117 <button id="btn_zoom_out">Zoom Out</button> 118 <button id="btn_pan_left"><<</button> 119 <button id="btn_pan_right">>></button> 120 <button id="btn_zoom_reset">Reset</button> [all …]
|
/openbmc/phosphor-buttons/inc/ |
H A D | button_handler.hpp | 16 namespace button namespace 43 * it detects button presses. 46 * As not all systems may implement each button, this class will 47 * check for that button on D-Bus before listening for its signals. 68 * @brief The handler for a power button press 77 * @brief The handler for an ID button press 86 * @brief The handler for a reset button press 95 * @brief The handler for a OCP debug card host selector button press 146 * button press event type. 160 * @brief Matches on the power button released signal [all …]
|
/openbmc/phosphor-buttons/ |
H A D | README.md | 6 It defines an individual dbus interface object for each physical button/switch 7 inputs such as power button, reset button etc. Each button interface monitors 8 its associated IO for event changes and emits signals that the button-handler 11 ## Button Behavior 13 ### Power Button 15 All events occur when the button is released. 26 #### Custom Power Button Profiles argument 28 The 'power-button-profile' meson option can be used to select custom power 29 button profiles that have different behaviors. 42 ### Reset Button [all …]
|
/openbmc/linux/drivers/soc/loongson/ |
H A D | loongson2_pm.c | 100 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/input/ |
H A D | gamepad.rst | 11 having user-space deal with different button-mappings for each gamepad, this 51 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 …]
|