Home
last modified time | relevance | path

Searched refs:keypad (Results 1 – 21 of 21) sorted by relevance

/drivers/input/keyboard/
Dep93xx_keypad.c86 struct ep93xx_keypad *keypad = dev_id; in ep93xx_keypad_irq_handler() local
87 struct input_dev *input_dev = keypad->input_dev; in ep93xx_keypad_irq_handler()
91 status = __raw_readl(keypad->mmio_base + KEY_REG); in ep93xx_keypad_irq_handler()
94 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler()
97 key2 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler()
100 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler()
101 input_report_key(input_dev, keypad->key1, 0); in ep93xx_keypad_irq_handler()
103 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2) in ep93xx_keypad_irq_handler()
104 input_report_key(input_dev, keypad->key2, 0); in ep93xx_keypad_irq_handler()
109 keypad->key1 = key1; in ep93xx_keypad_irq_handler()
[all …]
Dsamsung-keypad.c89 static void samsung_keypad_scan(struct samsung_keypad *keypad, in samsung_keypad_scan() argument
95 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
96 if (keypad->type == KEYPAD_TYPE_S5PV210) { in samsung_keypad_scan()
104 writel(val, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()
107 val = readl(keypad->base + SAMSUNG_KEYIFROW); in samsung_keypad_scan()
108 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
112 writel(0, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()
115 static bool samsung_keypad_report(struct samsung_keypad *keypad, in samsung_keypad_report() argument
118 struct input_dev *input_dev = keypad->input_dev; in samsung_keypad_report()
125 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
[all …]
Dimx_keypad.c84 static void imx_keypad_scan_matrix(struct imx_keypad *keypad, in imx_keypad_scan_matrix() argument
91 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix()
99 reg_val = readw(keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
101 writew(reg_val, keypad->mmio_base + KPDR); in imx_keypad_scan_matrix()
103 reg_val = readw(keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
104 reg_val &= ~((keypad->cols_en_mask & 0xff) << 8); in imx_keypad_scan_matrix()
105 writew(reg_val, keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
109 reg_val = readw(keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
110 reg_val |= (keypad->cols_en_mask & 0xff) << 8; in imx_keypad_scan_matrix()
111 writew(reg_val, keypad->mmio_base + KPCR); in imx_keypad_scan_matrix()
[all …]
Dnomadik-ske-keypad.c71 static void ske_keypad_set_bits(struct ske_keypad *keypad, u16 addr, in ske_keypad_set_bits() argument
76 spin_lock(&keypad->ske_keypad_lock); in ske_keypad_set_bits()
78 ret = readl(keypad->reg_base + addr); in ske_keypad_set_bits()
81 writel(ret, keypad->reg_base + addr); in ske_keypad_set_bits()
83 spin_unlock(&keypad->ske_keypad_lock); in ske_keypad_set_bits()
91 static int __init ske_keypad_chip_init(struct ske_keypad *keypad) in ske_keypad_chip_init() argument
97 while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--) in ske_keypad_chip_init()
108 spin_lock(&keypad->ske_keypad_lock); in ske_keypad_chip_init()
109 value = readl(keypad->reg_base + SKE_DBCR); in ske_keypad_chip_init()
111 value |= ((keypad->board->debounce_ms * 32000)/32768) << 8; in ske_keypad_chip_init()
[all …]
Dmatrix_keypad.c86 static void enable_row_irqs(struct matrix_keypad *keypad) in enable_row_irqs() argument
88 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in enable_row_irqs()
99 static void disable_row_irqs(struct matrix_keypad *keypad) in disable_row_irqs() argument
101 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in disable_row_irqs()
117 struct matrix_keypad *keypad = in matrix_keypad_scan() local
119 struct input_dev *input_dev = keypad->input_dev; in matrix_keypad_scan()
120 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in matrix_keypad_scan()
144 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan()
152 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in matrix_keypad_scan()
155 keypad->keycodes[code], in matrix_keypad_scan()
[all …]
Dpxa27x_keypad.c96 #define keypad_readl(off) __raw_readl(keypad->mmio_base + (off))
97 #define keypad_writel(off, v) __raw_writel((v), keypad->mmio_base + (off))
121 static void pxa27x_keypad_build_keycode(struct pxa27x_keypad *keypad) in pxa27x_keypad_build_keycode() argument
123 struct pxa27x_keypad_platform_data *pdata = keypad->pdata; in pxa27x_keypad_build_keycode()
124 struct input_dev *input_dev = keypad->input_dev; in pxa27x_keypad_build_keycode()
136 keypad->keycodes[scancode] = keycode; in pxa27x_keypad_build_keycode()
142 keypad->keycodes[MAX_MATRIX_KEY_NUM + i] = keycode; in pxa27x_keypad_build_keycode()
149 keypad->keycodes[MAX_MATRIX_KEY_NUM + 0] = keycode; in pxa27x_keypad_build_keycode()
153 keypad->keycodes[MAX_MATRIX_KEY_NUM + 1] = keycode; in pxa27x_keypad_build_keycode()
156 keypad->rotary_rel_code[0] = -1; in pxa27x_keypad_build_keycode()
[all …]
Dtc3589x-keypad.c95 static int tc3589x_keypad_init_key_hardware(struct tc_keypad *keypad) in tc3589x_keypad_init_key_hardware() argument
98 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware()
99 u8 settle_time = keypad->board->settle_time; in tc3589x_keypad_init_key_hardware()
100 u8 dbounce_period = keypad->board->debounce_period; in tc3589x_keypad_init_key_hardware()
101 u8 rows = keypad->board->krow & 0xf; /* mask out the nibble */ in tc3589x_keypad_init_key_hardware()
102 u8 column = keypad->board->kcol & 0xf; /* mask out the nibble */ in tc3589x_keypad_init_key_hardware()
105 if (keypad->board->kcol > TC3589x_MAX_KPCOL || in tc3589x_keypad_init_key_hardware()
106 keypad->board->krow > TC3589x_MAX_KPROW || in tc3589x_keypad_init_key_hardware()
107 keypad->board->debounce_period > TC3589x_MAX_DEBOUNCE_SETTLE || in tc3589x_keypad_init_key_hardware()
108 keypad->board->settle_time > TC3589x_MAX_DEBOUNCE_SETTLE) in tc3589x_keypad_init_key_hardware()
[all …]
Dw90p910_keypad.c57 static void w90p910_keypad_scan_matrix(struct w90p910_keypad *keypad, in w90p910_keypad_scan_matrix() argument
60 struct input_dev *input_dev = keypad->input_dev; in w90p910_keypad_scan_matrix()
64 unsigned int key = keypad->keymap[code]; in w90p910_keypad_scan_matrix()
77 struct w90p910_keypad *keypad = dev_id; in w90p910_keypad_irq_handler() local
80 kstatus = __raw_readl(keypad->mmio_base + KPI_STATUS); in w90p910_keypad_irq_handler()
85 w90p910_keypad_scan_matrix(keypad, kstatus); in w90p910_keypad_irq_handler()
92 struct w90p910_keypad *keypad = input_get_drvdata(dev); in w90p910_keypad_open() local
93 const struct w90p910_keypad_platform_data *pdata = keypad->pdata; in w90p910_keypad_open()
97 clk_enable(keypad->clk); in w90p910_keypad_open()
99 val = __raw_readl(keypad->mmio_base + KPI_CONF); in w90p910_keypad_open()
[all …]
Dstmpe-keypad.c115 static int stmpe_keypad_read_data(struct stmpe_keypad *keypad, u8 *data) in stmpe_keypad_read_data() argument
117 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_read_data()
118 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_read_data()
139 struct stmpe_keypad *keypad = dev; in stmpe_keypad_irq() local
140 struct input_dev *input = keypad->input; in stmpe_keypad_irq()
141 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_irq()
146 ret = stmpe_keypad_read_data(keypad, fifo); in stmpe_keypad_irq()
162 input_report_key(input, keypad->keymap[code], !up); in stmpe_keypad_irq()
169 static int __devinit stmpe_keypad_altfunc_init(struct stmpe_keypad *keypad) in stmpe_keypad_altfunc_init() argument
171 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_altfunc_init()
[all …]
Dmax7359_keypad.c87 static void max7359_build_keycode(struct max7359_keypad *keypad, in max7359_build_keycode() argument
90 struct input_dev *input_dev = keypad->input_dev; in max7359_build_keycode()
101 keypad->keycodes[scancode] = keycode; in max7359_build_keycode()
110 struct max7359_keypad *keypad = dev_id; in max7359_interrupt() local
111 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt()
114 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt()
121 dev_dbg(&keypad->client->dev, in max7359_interrupt()
125 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt()
152 struct max7359_keypad *keypad = input_get_drvdata(dev); in max7359_open() local
154 max7359_take_catnap(keypad->client); in max7359_open()
[all …]
DMakefile19 obj-$(CONFIG_KEYBOARD_TCA6416) += tca6416-keypad.o
35 obj-$(CONFIG_KEYBOARD_NOMADIK) += nomadik-ske-keypad.o
36 obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o
37 obj-$(CONFIG_KEYBOARD_OMAP4) += omap4-keypad.o
39 obj-$(CONFIG_KEYBOARD_PMIC8XXX) += pmic8xxx-keypad.o
44 obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad.o
47 obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o
50 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
52 obj-$(CONFIG_KEYBOARD_TNETV107X) += tnetv107x-keypad.o
DKconfig19 This option enables support for the keypad scan matrix
146 tristate "Blackfin BF54x keypad support"
149 Say Y here if you want to use the BF54x keypad.
170 Say Y here to enable the matrix keypad on the Cirrus EP93XX.
210 This driver implements basic keypad functionality
216 are used for keypad).
228 This driver implements basic keypad functionality
229 for keys connected through TCA8418 keypad decoder.
232 TCA8418 keypad decoder.
241 tristate "GPIO driven matrix keypad support"
[all …]
/drivers/staging/panel/
DKconfig8 keypad through /dev/keypad (10, 185). Both require misc device to be
20 driver instance only supports one parallel port, so if your keypad
37 1 = 2x16 parallel LCD, old keypad
38 2 = 2x16 serial LCD (KS-0074), new keypad
39 3 = 2x16 parallel LCD (Hantronix), no keypad
40 4 = 2x16 parallel LCD (Nexcom NSA1045) with Nexcom's keypad
41 5 = 2x40 parallel LCD (old one), with old keypad
53 This enables and configures a keypad connected to the parallel port.
57 1 : old 6 keys keypad
58 2 : new 6 keys keypad, as used on the server at www.ant-computing.com
[all …]
/drivers/staging/speakup/
Dspkguide.txt118 Note: In this guide I will refer to the numeric keypad as the keypad.
120 manual uses the term keypad instead of numeric keypad. Also I'm lazy
121 and would rather only type one word. So keypad it is. Got it? Good.
123 Most of the Speakup review keys are located on the keypad at the far
125 to work. If you toggle the numlock on, the keypad will produce numbers,
139 bootup messages, just press the keypad enter key. This key is located
140 in the bottom right corner of the keypad. Speakup will shut up and stay
144 key on the keypad, which reads the current line. This also has the
145 effect of starting Speakup talking again, so you can press keypad enter
162 the speech with keypad enter, or use any of the Speakup review keys.
[all …]
DDefaultKeyAssignments6 We have remapped the insert or zero key on the keypad to act as a
9 hit the keypad period.
/drivers/mfd/
Dtwl-core.c686 if (twl_has_keypad() && pdata->keypad) { in add_children()
688 pdata->keypad, sizeof(*pdata->keypad), in add_children()
DKconfig228 boards, providing power management, RTC, GPIO, keypad, a
303 Keypad: stmpe-keypad
/drivers/isdn/i4l/
DKconfig115 countries. The keypad protocol is still not implemented. CD should
/drivers/isdn/hisax/
DKconfig58 bool "Disable keypad protocol option"
62 using the keypad protocol, select this option.
/drivers/leds/
DKconfig458 from there. One use case is n810's keypad LEDs that could
460 keypad.
/drivers/input/misc/
DKconfig445 Say Y here if you want to support a keypad connected via I2C