Home
last modified time | relevance | path

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

12345678910>>...26

/OK3568_Linux_fs/app/qsetting/
H A Dqtkeyboard.cpp55 foreach (QPushButton *button, btns) { in QKeyBoard()
56 connect(button, SIGNAL(clicked()), this, SLOT(btn_clicked())); in QKeyBoard()
57 button->setFont(font); in QKeyBoard()
72 foreach (QPushButton *button, buttons) { in changeInputType()
73 if (button->property("btnLetter").toBool()) { in changeInputType()
75 button->setText(button->text().toUpper()); in changeInputType()
77 button->setText(button->text().toLower()); in changeInputType()
78 } else if(! button->objectName().compare("btnApostrophe")){ in changeInputType()
79 button->setText(on?"\"":"\'"); in changeInputType()
80 } else if(! button->objectName().compare("btnBackslash")){ in changeInputType()
[all …]
/OK3568_Linux_fs/kernel/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 Dgpio_keys.c33 const struct gpio_keys_button *button; member
203 if (bdata->button->type != type) in gpio_keys_attr_show_helper()
257 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
261 !bdata->button->can_disable) { in gpio_keys_attr_store_helper()
272 if (bdata->button->type != type) in gpio_keys_attr_store_helper()
358 const struct gpio_keys_button *button = bdata->button; in gpio_keys_gpio_report_event() local
360 unsigned int type = button->type ?: EV_KEY; in gpio_keys_gpio_report_event()
372 input_event(input, type, button->code, button->value); in gpio_keys_gpio_report_event()
386 if (bdata->button->wakeup) in gpio_keys_gpio_work_func()
396 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
[all …]
H A Dqt1050.c304 struct qt1050_key *button = &ts->keys[0]; in qt1050_apply_fw_data() local
315 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 …]
/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dcpcap-pwrbutton.c38 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()
64 button->idev = devm_input_allocate_device(&pdev->dev); in cpcap_power_button_probe()
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dbutton.c185 struct acpi_button *button = acpi_driver_data(device); in acpi_lid_notify_state() local
197 button->last_state != !!state) in acpi_lid_notify_state()
202 next_report = ktime_add(button->last_time, in acpi_lid_notify_state()
204 if (button->last_state == !!state && in acpi_lid_notify_state()
246 input_report_switch(button->input, in acpi_lid_notify_state()
248 input_sync(button->input); in acpi_lid_notify_state()
256 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state()
257 input_sync(button->input); in acpi_lid_notify_state()
258 button->last_state = !!state; in acpi_lid_notify_state()
259 button->last_time = ktime_get(); in acpi_lid_notify_state()
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dsurfacepro3_button.c78 struct surface_button *button = acpi_driver_data(device); in surface_button_notify() local
120 input = button->input; in surface_button_notify()
124 pm_wakeup_dev_event(&device->dev, 0, button->suspended); in surface_button_notify()
125 if (button->suspended) in surface_button_notify()
135 struct surface_button *button = acpi_driver_data(device); in surface_button_suspend() local
137 button->suspended = true; in surface_button_suspend()
144 struct surface_button *button = acpi_driver_data(device); in surface_button_resume() local
146 button->suspended = false; in surface_button_resume()
191 struct surface_button *button; in surface_button_add() local
204 button = kzalloc(sizeof(struct surface_button), GFP_KERNEL); in surface_button_add()
[all …]
H A Dxo15-ebook.c47 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
56 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
57 input_sync(button->input); in ebook_send_state()
86 struct ebook_switch *button; in ebook_switch_add() local
92 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
93 if (!button) in ebook_switch_add()
96 device->driver_data = button; in ebook_switch_add()
98 button->input = input = input_allocate_device(); in ebook_switch_add()
116 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
119 input->phys = button->phys; in ebook_switch_add()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dsun4i-a10-inet9f-rev03.dts71 button@0 {
79 button@1 {
87 button@2 {
95 button@3 {
103 button@4 {
111 button@5 {
119 button@6 {
127 button@7 {
135 button@8 {
143 button@9 {
[all …]
/OK3568_Linux_fs/kernel/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>;
H A Dti,palmas-pwrbutton.txt1 Texas Instruments Palmas family power button module
7 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
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/u-boot/scripts/kconfig/lxdialog/
H A Dyesno.c32 int i, x, y, key = 0, button = 0; in dialog_yesno() local
81 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); in dialog_yesno()
83 print_buttons(dialog, height, width, button); in dialog_yesno()
89 return button; in dialog_yesno()
H A Dinputbox.c36 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
110 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 …]
/OK3568_Linux_fs/buildroot/support/kconfig/lxdialog/
H A 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()
H A Dinputbox.c48 int input_x = 0, key = 0, button = -1; in dialog_inputbox() local
122 if (button == -1) { /* Input box selected */ in dialog_inputbox()
244 switch (button) { in dialog_inputbox()
246 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
250 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
256 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
264 switch (button) { in dialog_inputbox()
266 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
270 button = 1; /* Indicates "Help" button is selected */ in dialog_inputbox()
274 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
[all …]
/OK3568_Linux_fs/kernel/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 …]
H A Drmi_f30.c102 struct f30_data *f30, unsigned int button) in rmi_f30_report_button() argument
104 unsigned int reg_num = button >> 3; in rmi_f30_report_button()
105 unsigned int bit_num = button & 0x07; in rmi_f30_report_button()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
110 button >= TRACKSTICK_RANGE_START && in rmi_f30_report_button()
111 button <= TRACKSTICK_RANGE_END) { in rmi_f30_report_button()
210 static bool rmi_f30_is_valid_button(int button, struct rmi_f30_ctrl_data *ctrl) in rmi_f30_is_valid_button() argument
212 int byte_position = button >> 3; in rmi_f30_is_valid_button()
213 int bit_position = button & 0x07; in rmi_f30_is_valid_button()
229 unsigned int button = BTN_LEFT; in rmi_f30_map_gpios() local
[all …]
/OK3568_Linux_fs/u-boot/board/siemens/common/
H A Dboard.c119 int button = 0; in get_button_state() local
136 button = 1; in get_button_state()
138 button = 0; in get_button_state()
142 return button; in get_button_state()
153 int button = 0; in do_userbutton() local
154 button = get_button_state("button_dfu0", BOARD_DFU_BUTTON_GPIO); in do_userbutton()
155 button |= get_button_state("button_dfu1", BOARD_DFU_BUTTON_GPIO); in do_userbutton()
156 return button; in do_userbutton()
/OK3568_Linux_fs/external/xserver/xkb/
H A DxkbActions.c159 XkbGetButtonAction(DeviceIntPtr kbd, DeviceIntPtr dev, int button) in XkbGetButtonAction() argument
163 if ((dev->button) && (dev->button->xkb_acts)) { in XkbGetButtonAction()
164 if (dev->button->xkb_acts[button - 1].any.type != XkbSA_NoAction) { in XkbGetButtonAction()
166 &dev->button->xkb_acts[button - 1]); in XkbGetButtonAction()
565 int button = pAction->btn.button; in _XkbFilterPointerBtn() local
567 if (button == XkbSA_UseDfltButton) in _XkbFilterPointerBtn()
568 button = xkbi->desc->ctrls->mk_dflt_btn; in _XkbFilterPointerBtn()
576 filter->upAction.btn.button = button; in _XkbFilterPointerBtn()
579 if (((xkbi->lockedPtrButtons & (1 << button)) == 0) && in _XkbFilterPointerBtn()
581 xkbi->lockedPtrButtons |= (1 << button); in _XkbFilterPointerBtn()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/boot/dts/ingenic/
H A Dgcw0.dts139 button@0 {
146 button@1 {
153 button@2 {
160 button@3 {
167 button@4 {
174 button@5 {
181 button@6 {
188 button@7 {
195 button@8 {
196 label = "Left shoulder button";
[all …]
/OK3568_Linux_fs/kernel/Documentation/input/devices/
H A Dsentelic.rst15 A) MSID 4: Scrolling wheel mode plus Forward page(4th button) and Backward
16 page (5th button)
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.
78 Bit4 => 1 = 4th mouse button is pressed, Forward one page.
79 0 = 4th mouse button is not pressed.
80 Bit5 => 1 = 5th mouse button is pressed, Backward one page.
81 0 = 5th mouse button is not pressed.
[all …]
/OK3568_Linux_fs/kernel/Documentation/input/
H A Dgamepad.rst11 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
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.
127 If rectangular-shaped, the upper-left button is BTN_NORTH, lower-left
167 If only one trigger-button combination is present (upper+lower), they are
177 - 1-button Pad:
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/unisys/visorinput/
H A Dvisorinput.c607 int xmotion, ymotion, button; in visorinput_channel_interrupt() local
646 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
647 if (button < 0) in visorinput_channel_interrupt()
649 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
653 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
654 if (button < 0) in visorinput_channel_interrupt()
656 input_report_key(visorinput_dev, button, 0); in visorinput_channel_interrupt()
660 button = calc_button(r.activity.arg1); in visorinput_channel_interrupt()
661 if (button < 0) in visorinput_channel_interrupt()
663 input_report_key(visorinput_dev, button, 1); in visorinput_channel_interrupt()
[all …]

12345678910>>...26