| /drivers/input/keyboard/ |
| A D | matrix_keypad.c | 178 enable_row_irqs(keypad); in matrix_keypad_scan() 185 if (unlikely(keypad->scan_pending || keypad->stopped)) in matrix_keypad_scan() 205 if (unlikely(keypad->scan_pending || keypad->stopped)) in matrix_keypad_interrupt() 208 disable_row_irqs(keypad); in matrix_keypad_interrupt() 221 keypad->stopped = false; in matrix_keypad_start() 238 keypad->stopped = true; in matrix_keypad_stop() 246 disable_row_irqs(keypad); in matrix_keypad_stop() 404 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), GFP_KERNEL); in matrix_keypad_probe() 405 if (!keypad) in matrix_keypad_probe() 413 keypad->stopped = true; in matrix_keypad_probe() [all …]
|
| A D | ep93xx_keypad.c | 95 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() 98 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler() 104 keypad->key1 = key1; in ep93xx_keypad_irq_handler() 105 keypad->key2 = key2; in ep93xx_keypad_irq_handler() 108 if (keypad->key1 && key1 != keypad->key1) in ep93xx_keypad_irq_handler() 111 if (keypad->key2 && key1 != keypad->key2) in ep93xx_keypad_irq_handler() 116 keypad->key1 = key1; in ep93xx_keypad_irq_handler() 117 keypad->key2 = 0; in ep93xx_keypad_irq_handler() 123 keypad->key1 = keypad->key2 = 0; in ep93xx_keypad_irq_handler() 210 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), GFP_KERNEL); in ep93xx_keypad_probe() [all …]
|
| A D | imx_keypad.c | 174 keypad->keycodes[code], in imx_keypad_fire_events() 186 struct imx_keypad *keypad = timer_container_of(keypad, t, in imx_keypad_check_for_events() local 218 keypad->stable_count = 0; in imx_keypad_check_for_events() 220 keypad->stable_count++; in imx_keypad_check_for_events() 302 if (keypad->enabled) { in imx_keypad_irq_handler() 372 keypad->enabled = false; in imx_keypad_close() 395 keypad->enabled = true; in imx_keypad_open() 400 if ((readw(keypad->mmio_base + KPDR) & keypad->rows_en_mask) == 0) { in imx_keypad_open() 435 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), GFP_KERNEL); in imx_keypad_probe() 436 if (!keypad) { in imx_keypad_probe() [all …]
|
| A D | samsung-keypad.c | 134 memcpy(keypad->row_state, row_state, sizeof(keypad->row_state)); in samsung_keypad_report() 156 wait_event_timeout(keypad->wait, keypad->stopped, in samsung_keypad_irq() 195 keypad->stopped = true; in samsung_keypad_stop() 347 if (!keypad) in samsung_keypad_probe() 359 if (!keypad->base) in samsung_keypad_probe() 369 keypad->pdev = pdev; in samsung_keypad_probe() 377 if (!keypad->chip) { in samsung_keypad_probe() 383 if (!keypad->chip) { in samsung_keypad_probe() 410 error = keypad->irq; in samsung_keypad_probe() 448 if (keypad->stopped) in samsung_keypad_runtime_suspend() [all …]
|
| A D | pxa27x_keypad.c | 326 keypad->pdata = pdata; in pxa27x_keypad_build_keycode_from_dt() 580 clear_wakeup_event(keypad); in pxa27x_keypad_irq_handler() 650 pxa27x_keypad_config(keypad); in pxa27x_keypad_open() 718 struct pxa27x_keypad *keypad; in pxa27x_keypad_probe() local 730 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), in pxa27x_keypad_probe() 732 if (!keypad) in pxa27x_keypad_probe() 739 keypad->pdata = pdata; in pxa27x_keypad_probe() 741 keypad->irq = irq; in pxa27x_keypad_probe() 748 if (IS_ERR(keypad->clk)) { in pxa27x_keypad_probe() 777 pdata = keypad->pdata; in pxa27x_keypad_probe() [all …]
|
| A D | nspire-keypad.c | 61 int_sts = readl(keypad->reg_base + KEYPAD_INT) & keypad->int_mask; in nspire_keypad_irq() 69 if (keypad->active_low) in nspire_keypad_irq() 76 keypad->state[row] = bits; in nspire_keypad_irq() 127 keypad->int_mask = 1 << 1; in nspire_keypad_open() 128 writel(keypad->int_mask, keypad->reg_base + KEYPAD_INTMSK); in nspire_keypad_open() 148 struct nspire_keypad *keypad; in nspire_keypad_probe() local 160 if (!keypad) { in nspire_keypad_probe() 175 &keypad->row_delay); in nspire_keypad_probe() 184 if (IS_ERR(keypad->clk)) { in nspire_keypad_probe() 186 return PTR_ERR(keypad->clk); in nspire_keypad_probe() [all …]
|
| A D | mt6779-keypad.c | 84 input_sync(keypad->input_dev); in mt6779_keypad_irq_handler() 113 struct mt6779_keypad *keypad; in mt6779_keypad_pdrv_probe() local 121 keypad = devm_kzalloc(&pdev->dev, sizeof(*keypad), GFP_KERNEL); in mt6779_keypad_pdrv_probe() 122 if (!keypad) in mt6779_keypad_pdrv_probe() 131 if (IS_ERR(keypad->regmap)) { in mt6779_keypad_pdrv_probe() 140 if (!keypad->input_dev) { in mt6779_keypad_pdrv_probe() 149 &keypad->n_cols); in mt6779_keypad_pdrv_probe() 186 keypad->n_rows, keypad->n_cols, debounce); in mt6779_keypad_pdrv_probe() 189 keypad->n_rows, keypad->n_cols, in mt6779_keypad_pdrv_probe() 212 if (IS_ERR(keypad->clk)) in mt6779_keypad_pdrv_probe() [all …]
|
| A D | stmpe-keypad.c | 221 if (keypad->cols & (1 << i)) { in stmpe_keypad_altfunc_init() 232 if (keypad->rows & (1 << i)) in stmpe_keypad_altfunc_init() 296 keypad->rows >> 8); in stmpe_keypad_chip_init() 324 keypad->rows |= 1 << row; in stmpe_keypad_fill_used_pins() 325 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins() 335 struct stmpe_keypad *keypad; in stmpe_keypad_probe() local 348 if (!keypad) in stmpe_keypad_probe() 351 keypad->stmpe = stmpe; in stmpe_keypad_probe() 371 keypad->keymap, input); in stmpe_keypad_probe() 376 if (!keypad->no_autorepeat) in stmpe_keypad_probe() [all …]
|
| A D | st-keyscan.c | 50 keypad->last_state = state; in keyscan_isr() 56 input_sync(keypad->input_dev); in keyscan_isr() 65 error = clk_enable(keypad->clk); in keyscan_start() 69 writel(keypad->debounce_us * (clk_get_rate(keypad->clk) / 1000000), in keyscan_start() 85 clk_disable(keypad->clk); in keyscan_stop() 92 return keyscan_start(keypad); in keyscan_open() 99 keyscan_stop(keypad); in keyscan_close() 222 enable_irq_wake(keypad->irq); in keyscan_suspend() 224 keyscan_stop(keypad); in keyscan_suspend() 239 disable_irq_wake(keypad->irq); in keyscan_resume() [all …]
|
| A D | tc3589x-keypad.c | 191 struct tc_keypad *keypad = dev; in tc3589x_keypad_irq() local 212 input_report_key(keypad->input, keypad->keymap[code], !up); in tc3589x_keypad_irq() 213 input_sync(keypad->input); in tc3589x_keypad_irq() 287 keypad->keypad_stopped = true; in tc3589x_keypad_disable() 376 struct tc_keypad *keypad; in tc3589x_keypad_probe() local 393 if (!keypad) in tc3589x_keypad_probe() 402 keypad->board = plat; in tc3589x_keypad_probe() 403 keypad->input = input; in tc3589x_keypad_probe() 404 keypad->tc3589x = tc3589x; in tc3589x_keypad_probe() 464 if (keypad->keypad_stopped) in tc3589x_keypad_suspend() [all …]
|
| A D | max7359_keypad.c | 87 struct max7359_keypad *keypad = dev_id; in max7359_interrupt() local 98 dev_dbg(&keypad->client->dev, in max7359_interrupt() 131 max7359_take_catnap(keypad->client); in max7359_open() 162 struct max7359_keypad *keypad; in max7359_probe() local 183 if (!keypad) { in max7359_probe() 194 keypad->client = client; in max7359_probe() 195 keypad->input_dev = input_dev; in max7359_probe() 206 input_dev->keycode = keypad->keycodes; in max7359_probe() 209 input_set_drvdata(input_dev, keypad); in max7359_probe() 214 keypad->keycodes, in max7359_probe() [all …]
|
| A D | Makefile | 16 obj-$(CONFIG_KEYBOARD_BCM) += bcm-keypad.o 18 obj-$(CONFIG_KEYBOARD_CLPS711X) += clps711x-keypad.o 26 obj-$(CONFIG_KEYBOARD_TCA6416) += tca6416-keypad.o 46 obj-$(CONFIG_KEYBOARD_MT6779) += mt6779-keypad.o 49 obj-$(CONFIG_KEYBOARD_NSPIRE) += nspire-keypad.o 50 obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o 51 obj-$(CONFIG_KEYBOARD_OMAP4) += omap4-keypad.o 54 obj-$(CONFIG_KEYBOARD_PMIC8XXX) += pmic8xxx-keypad.o 59 obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad.o 63 obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o [all …]
|
| A D | Kconfig | 41 tristate "ADP558x keypad support" 275 are used for keypad). 292 TCA8418 keypad decoder. 362 tristate "LM8323 keypad chip" 367 LM8323 keypad controller. 373 tristate "LM8333 keypad chip" 378 LM8333 keypad controller. 449 tristate "IMX keypad support" 552 be called pmic8xxx-keypad. 619 tristate "STMPE keypad support" [all …]
|
| A D | adp5585-keys.c | 39 unsigned long keypad; member 61 if (test_bit(row, &kpad->keypad) && in adp5585_keys_validate_events() 62 test_bit(col + kpad->info->max_rows, &kpad->keypad)) in adp5585_keys_validate_events() 98 for_each_set_bit(pin, &kpad->keypad, adp5585->n_pins) in adp5585_keys_pins_free() 149 __set_bit(keypad_pins[pin], &kpad->keypad); in adp5585_keys_parse_fw() 160 rows = find_last_bit(&kpad->keypad, kpad->info->max_rows) + 1; in adp5585_keys_parse_fw() 165 cols = find_last_bit(&kpad->keypad, kpad->info->max_cols + kpad->info->max_rows); in adp5585_keys_parse_fw() 204 keys_bits = bitmap_read(&kpad->keypad, start, nbits); in adp5585_keys_setup()
|
| /drivers/auxdisplay/ |
| A D | ht16k33.c | 359 input_sync(keypad->dev); in ht16k33_keypad_scan() 360 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols); in ht16k33_keypad_scan() 370 wait_event_timeout(keypad->wait, keypad->stopped, in ht16k33_keypad_irq_thread() 372 if (keypad->stopped) in ht16k33_keypad_irq_thread() 394 keypad->stopped = true; in ht16k33_keypad_stop() 396 wake_up(&keypad->wait); in ht16k33_keypad_stop() 505 if (!keypad->dev) in ht16k33_keypad_probe() 508 input_set_drvdata(keypad->dev, keypad); in ht16k33_keypad_probe() 535 keypad->rows = rows; in ht16k33_keypad_probe() 536 keypad->cols = cols; in ht16k33_keypad_probe() [all …]
|
| A D | Kconfig | 70 keypad through /dev/keypad (10, 185). This code can either be 82 driver instance only supports one parallel port, so if your keypad 98 1 = 2x16 parallel LCD, old keypad 99 2 = 2x16 serial LCD (KS-0074), new keypad 100 3 = 2x16 parallel LCD (Hantronix), no keypad 101 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad 102 5 = 2x40 parallel LCD (old one), with old keypad 114 This enables and configures a keypad connected to the parallel port. 118 1 : old 6 keys keypad 120 3 : Nexcom NSA1045's 4 keys keypad [all …]
|
| A D | panel.c | 191 } keypad; variable 1338 if (keypad.enabled && keypad_initialized) { in panel_scan_timer() 1568 keypad.enabled = (selected_keypad_type > 0); in panel_attach() 1607 if (!lcd.enabled && !keypad.enabled) { in panel_attach() 1648 if (keypad.enabled) { in panel_attach() 1680 if (keypad.enabled) { in panel_detach()
|
| /drivers/input/misc/ |
| A D | iqs7222.c | 1487 struct input_dev *keypad; member 2952 input_event(iqs7222->keypad, in iqs7222_report() 2992 input_report_key(iqs7222->keypad, in iqs7222_report() 2997 input_sync(iqs7222->keypad); in iqs7222_report() 3000 input_report_key(iqs7222->keypad, in iqs7222_report() 3027 input_report_key(iqs7222->keypad, in iqs7222_report() 3032 input_sync(iqs7222->keypad); in iqs7222_report() 3035 input_report_key(iqs7222->keypad, in iqs7222_report() 3039 input_sync(iqs7222->keypad); in iqs7222_report() 3065 if (!iqs7222->keypad) in iqs7222_probe() [all …]
|
| A D | iqs269a.c | 323 struct input_dev *keypad; member 1235 if (!iqs269->keypad) in iqs269_input_init() 1239 iqs269->keypad->keycode = iqs269->keycode; in iqs269_input_init() 1242 iqs269->keypad->name = "iqs269a_keypad"; in iqs269_input_init() 1243 iqs269->keypad->id.bustype = BUS_I2C; in iqs269_input_init() 1259 input_set_capability(iqs269->keypad, in iqs269_input_init() 1270 input_set_capability(iqs269->keypad, in iqs269_input_init() 1433 input_report_switch(iqs269->keypad, in iqs269_report() 1444 input_report_key(iqs269->keypad, keycode, in iqs269_report() 1450 input_sync(iqs269->keypad); in iqs269_report() [all …]
|
| A D | iqs626a.c | 448 struct input_dev *keypad; member 1414 if (!iqs626->keypad) in iqs626_input_init() 1417 iqs626->keypad->keycodemax = ARRAY_SIZE(iqs626->kp_code); in iqs626_input_init() 1418 iqs626->keypad->keycode = iqs626->kp_code; in iqs626_input_init() 1419 iqs626->keypad->keycodesize = sizeof(**iqs626->kp_code); in iqs626_input_init() 1421 iqs626->keypad->name = "iqs626a_keypad"; in iqs626_input_init() 1422 iqs626->keypad->id.bustype = BUS_I2C; in iqs626_input_init() 1432 input_set_capability(iqs626->keypad, in iqs626_input_init() 1556 input_event(iqs626->keypad, iqs626->kp_type[i][j], in iqs626_report() 1561 input_sync(iqs626->keypad); in iqs626_report() [all …]
|
| A D | Kconfig | 591 Say Y here if you want to support a keypad connected via I2C
|
| /drivers/accessibility/speakup/ |
| A D | DefaultKeyAssignments | 6 We have remapped the insert or zero key on the keypad to act as a 9 hit the keypad period.
|
| /drivers/mfd/ |
| A D | Kconfig | 24 tristate "Analog Devices ADP5585 keypad decoder and I/O expander driver" 31 expander, PWM and keypad controller. This includes the I2C driver and 1563 Keypad: stmpe-keypad 1901 boards, providing power management, RTC, GPIO, keypad, a
|