Searched refs:pressed (Results 1 - 11 of 11) sorted by relevance

/drivers/input/misc/
H A Dgpio_input.c55 int pressed; local
92 pressed = gpio_get_value(key_entry->gpio) ^ npolarity;
94 if (pressed == !(debounce & DEBOUNCE_PRESSED)) {
105 if (pressed && (debounce & DEBOUNCE_NOTPRESSED)) {
108 "(%d) debounce pressed 1\n",
114 if (!pressed && (debounce & DEBOUNCE_PRESSED)) {
117 "(%d) debounce pressed 0\n",
132 key_entry->code, i, key_entry->gpio, pressed);
134 key_entry->code, pressed);
170 int pressed; local
[all...]
H A Dgpio_matrix.c110 int pressed = test_bit(key_index, kp->keys_pressed); local
115 if (pressed != test_bit(keycode, kp->input_devs->dev[dev]->key)) {
121 mi->input_gpios[in], pressed);
127 mi->input_gpios[in], pressed);
128 input_report_key(kp->input_devs->dev[dev], keycode, pressed);
209 /* No keys are pressed, reenable interrupt */
H A Dxen-kbdfront.c84 event->key.pressed);
H A DKconfig288 combinations are pressed.
/drivers/input/keyboard/
H A Dmcs_touchkey.c66 unsigned int pressed; local
75 pressed = (val & (1 << chip->pressbit)) >> chip->pressbit;
77 pressed ^= chip->press_invert;
80 if (pressed) {
90 input_report_key(input, data->key_code, pressed);
94 pressed ? "pressed" : "released");
H A Dlocomokbd.c121 * The LoCoMo keyboard only generates interrupts when a key is pressed.
122 * So when a key is pressed, we enable a timer. This timer scans the
146 unsigned int scancode, pressed, key; local
149 pressed = rowd & KB_ROWMASK(row);
152 input_report_key(locomokbd->input, key, pressed);
153 if (likely(!pressed))
160 * if it was pressed for more than a second. */
180 /* if any keys are pressed, enable the timer */
H A Dmpr121_touchkey.c91 unsigned int key_num, key_val, pressed; local
110 pressed = reg & (1 << key_num);
116 input_report_key(input, key_val, pressed);
120 pressed ? "pressed" : "released");
H A Dsamsung-keypad.c120 unsigned int pressed; local
135 pressed = row_state[col] & (1 << row);
139 pressed ? "pressed" : "released", row, col);
145 keypad->keycodes[val], pressed);
/drivers/staging/quickstart/
H A Dquickstart.c51 * 0x02 - A hot button was pressed while device was off/sleeping.
52 * 0x80 - A hot button was pressed while device was up.
69 static struct quickstart_button *pressed; variable in typeref:struct:quickstart_button
102 (pressed ? pressed->name : "none"));
116 pressed = NULL;
162 pressed = quickstart->button;
/drivers/platform/x86/
H A Dfujitsu-tablet.c246 int pressed; local
264 pressed = keymask & changed & BIT(i);
266 if (pressed)
269 input_report_key(fujitsu.idev, keycode, pressed);
/drivers/input/touchscreen/
H A Deeti_ts.c71 unsigned int x, y, res, pressed, to = 100; local
90 pressed = buf[0] & REPORT_BIT_PRESSED;
110 input_report_key(priv->input, BTN_TOUCH, !!pressed);

Completed in 130 milliseconds