Searched refs:keypad (Results 1 - 25 of 37) sorted by relevance

12

/linux-master/drivers/input/keyboard/
H A Dimx_keypad.c3 // Driver for the IMX keypad port.
79 static void imx_keypad_scan_matrix(struct imx_keypad *keypad, argument
86 if ((keypad->cols_en_mask & (1 << col)) == 0)
89 * Discharge keypad capacitance:
94 reg_val = readw(keypad->mmio_base + KPDR);
96 writew(reg_val, keypad->mmio_base + KPDR);
98 reg_val = readw(keypad->mmio_base + KPCR);
99 reg_val &= ~((keypad->cols_en_mask & 0xff) << 8);
100 writew(reg_val, keypad->mmio_base + KPCR);
104 reg_val = readw(keypad
144 imx_keypad_fire_events(struct imx_keypad *keypad, unsigned short *matrix_volatile_state) argument
186 struct imx_keypad *keypad = from_timer(keypad, t, check_matrix_timer); local
290 struct imx_keypad *keypad = dev_id; local
313 imx_keypad_config(struct imx_keypad *keypad) argument
349 imx_keypad_inhibit(struct imx_keypad *keypad) argument
366 struct imx_keypad *keypad = input_get_drvdata(dev); local
383 struct imx_keypad *keypad = input_get_drvdata(dev); local
420 struct imx_keypad *keypad; local
[all...]
H A Dep93xx_keypad.c3 * Driver for the Cirrus EP93xx matrix keypad controller.
7 * Based on the pxa27x matrix keypad controller by Rodolfo Giometti.
30 #include <linux/platform_data/keypad-ep93xx.h>
85 struct ep93xx_keypad *keypad = dev_id; local
86 struct input_dev *input_dev = keypad->input_dev;
90 status = __raw_readl(keypad->mmio_base + KEY_REG);
93 key1 = keypad->keycodes[keycode];
96 key2 = keypad->keycodes[keycode];
99 if (keypad->key1 && key1 != keypad
134 ep93xx_keypad_config(struct ep93xx_keypad *keypad) argument
159 struct ep93xx_keypad *keypad = input_get_drvdata(pdev); local
172 struct ep93xx_keypad *keypad = input_get_drvdata(pdev); local
184 struct ep93xx_keypad *keypad = platform_get_drvdata(pdev); local
202 struct ep93xx_keypad *keypad = platform_get_drvdata(pdev); local
232 struct ep93xx_keypad *keypad; local
[all...]
H A Dnomadik-ske-keypad.c22 #include <linux/platform_data/keypad-nomadik-ske.h>
44 /* keypad auto scan registers */
54 * struct ske_keypad - data structure used by keypad driver
58 * @board: keypad platform device
62 * @ske_keypad_lock: spinlock protecting the keypad read/writes
75 static void ske_keypad_set_bits(struct ske_keypad *keypad, u16 addr, argument
80 spin_lock(&keypad->ske_keypad_lock);
82 ret = readl(keypad->reg_base + addr);
85 writel(ret, keypad->reg_base + addr);
87 spin_unlock(&keypad
95 ske_keypad_chip_init(struct ske_keypad *keypad) argument
141 ske_keypad_report(struct ske_keypad *keypad, u8 status, int col) argument
167 ske_keypad_read_data(struct ske_keypad *keypad) argument
201 struct ske_keypad *keypad = dev_id; local
226 struct ske_keypad *keypad = data; local
236 struct ske_keypad *keypad; local
338 struct ske_keypad *keypad = platform_get_drvdata(pdev); local
352 struct ske_keypad *keypad = platform_get_drvdata(pdev); local
[all...]
H A Dnspire-keypad.c52 struct nspire_keypad *keypad = dev_id; local
53 struct input_dev *input = keypad->input;
61 int_sts = readl(keypad->reg_base + KEYPAD_INT) & keypad->int_mask;
65 memcpy_fromio(state, keypad->reg_base + KEYPAD_DATA, sizeof(state));
69 if (keypad->active_low)
72 changed = bits ^ keypad->state[row];
76 keypad->state[row] = bits;
82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift);
91 writel(0x3, keypad
98 struct nspire_keypad *keypad = input_get_drvdata(input); local
135 struct nspire_keypad *keypad = input_get_drvdata(input); local
148 struct nspire_keypad *keypad; local
[all...]
H A Dmt6779-keypad.c16 #define MTK_KPD_NAME "mt6779-keypad"
50 struct mt6779_keypad *keypad = dev_id; local
51 const unsigned short *keycode = keypad->input_dev->keycode;
57 unsigned int row_shift = get_count_order(keypad->n_cols);
60 regmap_bulk_read(keypad->regmap, MTK_KPD_MEM,
63 bitmap_xor(change, new_state, keypad->keymap_state, MTK_KPD_NUM_BITS);
74 keypad->calc_row_col(key, &row, &col);
79 dev_dbg(&keypad->input_dev->dev, "%s",
82 input_event(keypad->input_dev, EV_MSC, MSC_SCAN, scancode);
83 input_report_key(keypad
118 struct mt6779_keypad *keypad; local
[all...]
H A Dsamsung-keypad.c3 * Samsung keypad driver
23 #include <linux/input/samsung-keypad.h>
79 static void samsung_keypad_scan(struct samsung_keypad *keypad, argument
85 for (col = 0; col < keypad->cols; col++) {
86 if (keypad->type == KEYPAD_TYPE_S5PV210) {
94 writel(val, keypad->base + SAMSUNG_KEYIFCOL);
97 val = readl(keypad->base + SAMSUNG_KEYIFROW);
98 row_state[col] = ~val & ((1 << keypad->rows) - 1);
102 writel(0, keypad->base + SAMSUNG_KEYIFCOL);
105 static bool samsung_keypad_report(struct samsung_keypad *keypad, argument
147 struct samsung_keypad *keypad = dev_id; local
172 samsung_keypad_start(struct samsung_keypad *keypad) argument
194 samsung_keypad_stop(struct samsung_keypad *keypad) argument
226 struct samsung_keypad *keypad = input_get_drvdata(input_dev); local
235 struct samsung_keypad *keypad = input_get_drvdata(input_dev); local
317 struct samsung_keypad *keypad; local
449 struct samsung_keypad *keypad = platform_get_drvdata(pdev); local
461 struct samsung_keypad *keypad = platform_get_drvdata(pdev); local
485 struct samsung_keypad *keypad = platform_get_drvdata(pdev); local
503 samsung_keypad_toggle_wakeup(struct samsung_keypad *keypad, bool enable) argument
528 struct samsung_keypad *keypad = platform_get_drvdata(pdev); local
546 struct samsung_keypad *keypad = platform_get_drvdata(pdev); local
[all...]
H A Dmatrix_keypad.c88 static void enable_row_irqs(struct matrix_keypad *keypad) argument
92 for (i = 0; i < keypad->num_row_irqs; i++)
93 enable_irq(keypad->row_irqs[i]);
96 static void disable_row_irqs(struct matrix_keypad *keypad) argument
100 for (i = 0; i < keypad->num_row_irqs; i++)
101 disable_irq_nosync(keypad->row_irqs[i]);
109 struct matrix_keypad *keypad = local
111 struct input_dev *input_dev = keypad->input_dev;
113 const struct matrix_keypad_platform_data *pdata = keypad->pdata;
140 bits_changed = keypad
170 struct matrix_keypad *keypad = id; local
195 struct matrix_keypad *keypad = input_get_drvdata(dev); local
211 struct matrix_keypad *keypad = input_get_drvdata(dev); local
225 matrix_keypad_enable_wakeup(struct matrix_keypad *keypad) argument
234 matrix_keypad_disable_wakeup(struct matrix_keypad *keypad) argument
247 struct matrix_keypad *keypad = platform_get_drvdata(pdev); local
260 struct matrix_keypad *keypad = platform_get_drvdata(pdev); local
273 matrix_keypad_init_gpio(struct platform_device *pdev, struct matrix_keypad *keypad) argument
438 struct matrix_keypad *keypad; local
[all...]
H A Dstmpe-keypad.c116 * struct stmpe_keypad - STMPE keypad state container
141 static int stmpe_keypad_read_data(struct stmpe_keypad *keypad, u8 *data) argument
143 const struct stmpe_keypad_variant *variant = keypad->variant;
144 struct stmpe *stmpe = keypad->stmpe;
165 struct stmpe_keypad *keypad = dev; local
166 struct input_dev *input = keypad->input;
167 const struct stmpe_keypad_variant *variant = keypad->variant;
172 ret = stmpe_keypad_read_data(keypad, fifo);
188 input_report_key(input, keypad->keymap[code], !up);
195 static int stmpe_keypad_altfunc_init(struct stmpe_keypad *keypad) argument
265 stmpe_keypad_chip_init(struct stmpe_keypad *keypad) argument
314 stmpe_keypad_fill_used_pins(struct stmpe_keypad *keypad, u32 used_rows, u32 used_cols) argument
335 struct stmpe_keypad *keypad; local
409 struct stmpe_keypad *keypad = platform_get_drvdata(pdev); local
[all...]
H A Dst-keyscan.c43 struct st_keyscan *keypad = dev_id; local
44 unsigned short *keycode = keypad->input_dev->keycode;
48 state = readl(keypad->base + KEYSCAN_MATRIX_STATE_OFF) & 0xffff;
49 change = keypad->last_state ^ state;
50 keypad->last_state = state;
53 input_report_key(keypad->input_dev,
56 input_sync(keypad->input_dev);
61 static int keyscan_start(struct st_keyscan *keypad) argument
65 error = clk_enable(keypad->clk);
69 writel(keypad
81 keyscan_stop(struct st_keyscan *keypad) argument
90 struct st_keyscan *keypad = input_get_drvdata(dev); local
97 struct st_keyscan *keypad = input_get_drvdata(dev); local
216 struct st_keyscan *keypad = platform_get_drvdata(pdev); local
233 struct st_keyscan *keypad = platform_get_drvdata(pdev); local
[all...]
H A Dpxa27x_keypad.c29 #include <linux/platform_data/keypad-pxa27x.h>
90 #define keypad_readl(off) __raw_readl(keypad->mmio_base + (off))
91 #define keypad_writel(off, v) __raw_writel((v), keypad->mmio_base + (off))
118 static int pxa27x_keypad_matrix_key_parse_dt(struct pxa27x_keypad *keypad, argument
121 struct input_dev *input_dev = keypad->input_dev;
141 keypad->keycodes, input_dev);
148 static int pxa27x_keypad_direct_key_parse_dt(struct pxa27x_keypad *keypad, argument
151 struct input_dev *input_dev = keypad->input_dev;
178 * default value. Default value is set when configure the keypad.
201 keypad
208 pxa27x_keypad_rotary_parse_dt(struct pxa27x_keypad *keypad, struct pxa27x_keypad_platform_data *pdata) argument
281 pxa27x_keypad_build_keycode_from_dt(struct pxa27x_keypad *keypad) argument
332 pxa27x_keypad_build_keycode_from_dt(struct pxa27x_keypad *keypad) argument
341 pxa27x_keypad_build_keycode(struct pxa27x_keypad *keypad) argument
408 pxa27x_keypad_scan_matrix(struct pxa27x_keypad *keypad) argument
487 report_rotary_event(struct pxa27x_keypad *keypad, int r, int delta) argument
511 pxa27x_keypad_scan_rotary(struct pxa27x_keypad *keypad) argument
527 pxa27x_keypad_scan_direct(struct pxa27x_keypad *keypad) argument
567 clear_wakeup_event(struct pxa27x_keypad *keypad) argument
577 struct pxa27x_keypad *keypad = dev_id; local
591 pxa27x_keypad_config(struct pxa27x_keypad *keypad) argument
643 struct pxa27x_keypad *keypad = input_get_drvdata(dev); local
657 struct pxa27x_keypad *keypad = input_get_drvdata(dev); local
666 struct pxa27x_keypad *keypad = platform_get_drvdata(pdev); local
683 struct pxa27x_keypad *keypad = platform_get_drvdata(pdev); local
718 struct pxa27x_keypad *keypad; local
[all...]
H A Dtc3589x-keypad.c21 /* Maximum supported keypad matrix row/columns size */
25 /* keypad related Constants */
73 * struct tc3589x_keypad_platform_data - platform specific keypad data
80 * @enable_wakeup: specifies if keypad event can wake up system from sleep
95 * struct tc_keypad - data structure used by keypad driver
98 * @board: keypad platform device
102 * @keypad_stopped: holds keypad status
114 static int tc3589x_keypad_init_key_hardware(struct tc_keypad *keypad) argument
117 struct tc3589x *tc3589x = keypad->tc3589x;
118 const struct tc3589x_keypad_platform_data *board = keypad
191 struct tc_keypad *keypad = dev; local
226 tc3589x_keypad_enable(struct tc_keypad *keypad) argument
262 tc3589x_keypad_disable(struct tc_keypad *keypad) argument
295 struct tc_keypad *keypad = input_get_drvdata(input); local
315 struct tc_keypad *keypad = input_get_drvdata(input); local
377 struct tc_keypad *keypad; local
461 struct tc_keypad *keypad = platform_get_drvdata(pdev); local
480 struct tc_keypad *keypad = platform_get_drvdata(pdev); local
[all...]
H A Dmax7359_keypad.c87 struct max7359_keypad *keypad = dev_id; local
88 struct input_dev *input_dev = keypad->input_dev;
91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO);
98 dev_dbg(&keypad->client->dev,
102 input_report_key(input_dev, keypad->keycodes[code], !release);
129 struct max7359_keypad *keypad = input_get_drvdata(dev); local
131 max7359_take_catnap(keypad->client);
138 struct max7359_keypad *keypad = input_get_drvdata(dev); local
140 max7359_fall_deepsleep(keypad->client);
162 struct max7359_keypad *keypad; local
[all...]
H A DMakefile16 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_NOMADIK) += nomadik-ske-keypad.o
50 obj-$(CONFIG_KEYBOARD_NSPIRE) += nspire-keypad.o
51 obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o
52 obj-$(CONFIG_KEYBOARD_OMAP4) += omap4-keypad.o
55 obj-$(CONFIG_KEYBOARD_PMIC8XXX) += pmic8xxx-keypad.o
60 obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad
[all...]
/linux-master/arch/arm/mach-s3c/
H A Dkeypad.h12 #include <linux/input/samsung-keypad.h>
H A DMakefile.s3c64xx35 obj-$(CONFIG_S3C64XX_SETUP_KEYPAD) += setup-keypad-s3c64xx.o
/linux-master/drivers/auxdisplay/
H A Dht16k33.c93 struct ht16k33_keypad keypad; member in struct:ht16k33_priv
338 * This gets the keys from keypad and reports it to input subsystem.
341 static bool ht16k33_keypad_scan(struct ht16k33_keypad *keypad) argument
343 const unsigned short *keycodes = keypad->dev->keycode;
351 rc = i2c_smbus_read_i2c_block_data(keypad->client, 0x40,
354 dev_err(&keypad->client->dev,
359 for (col = 0; col < keypad->cols; col++) {
363 bits_changed = keypad->last_key_state[col] ^ new_state[col];
366 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift);
367 input_event(keypad
380 struct ht16k33_keypad *keypad = dev; local
394 struct ht16k33_keypad *keypad = input_get_drvdata(dev); local
405 struct ht16k33_keypad *keypad = input_get_drvdata(dev); local
505 ht16k33_keypad_probe(struct i2c_client *client, struct ht16k33_keypad *keypad) argument
[all...]
/linux-master/include/linux/platform_data/
H A Dkeypad-omap.h9 #warning Please update the board to use matrix-keypad driver
/linux-master/scripts/kconfig/lxdialog/
H A Dyesno.c47 keypad(dialog, TRUE);
H A Dtextbox.c202 keypad(dialog, TRUE);
211 keypad(box, TRUE);
H A Dchecklist.c136 keypad(dialog, TRUE);
160 keypad(list, TRUE);
/linux-master/drivers/input/misc/
H A Diqs7222.c1474 struct input_dev *keypad; member in struct:iqs7222_private
1808 sys_setup |= test_bit(EV_ABS, iqs7222->keypad->evbit)
2170 input_set_capability(iqs7222->keypad, EV_KEY, *event_code);
2188 input_set_capability(iqs7222->keypad, *event_type, *event_code);
2582 input_set_abs_params(iqs7222->keypad, val, 0, sldr_max, 0, 0);
2786 input_set_abs_params(iqs7222->keypad, ABS_X,
2789 input_set_abs_params(iqs7222->keypad, ABS_Y,
2792 touchscreen_parse_properties(iqs7222->keypad, false, prop);
2957 input_event(iqs7222->keypad,
2973 input_report_abs(iqs7222->keypad, iqs722
[all...]
H A Diqs626a.c448 struct input_dev *keypad; member in struct:iqs626_private
1423 iqs626->keypad = devm_input_allocate_device(&client->dev);
1424 if (!iqs626->keypad)
1427 iqs626->keypad->keycodemax = ARRAY_SIZE(iqs626->kp_code);
1428 iqs626->keypad->keycode = iqs626->kp_code;
1429 iqs626->keypad->keycodesize = sizeof(**iqs626->kp_code);
1431 iqs626->keypad->name = "iqs626a_keypad";
1432 iqs626->keypad->id.bustype = BUS_I2C;
1442 input_set_capability(iqs626->keypad,
1566 input_event(iqs626->keypad, iqs62
[all...]
H A Diqs269a.c323 struct input_dev *keypad; member in struct:iqs269_private
1250 iqs269->keypad = devm_input_allocate_device(&client->dev);
1251 if (!iqs269->keypad)
1254 iqs269->keypad->keycodemax = ARRAY_SIZE(iqs269->keycode);
1255 iqs269->keypad->keycode = iqs269->keycode;
1256 iqs269->keypad->keycodesize = sizeof(*iqs269->keycode);
1258 iqs269->keypad->name = "iqs269a_keypad";
1259 iqs269->keypad->id.bustype = BUS_I2C;
1275 input_set_capability(iqs269->keypad,
1286 input_set_capability(iqs269->keypad,
[all...]
/linux-master/arch/arm/mach-omap1/
H A Dboard-palmte.c30 #include <linux/platform_data/keypad-omap.h>
90 .name = "omap-keypad",
/linux-master/scripts/kconfig/
H A Dnconf.gui.c241 keypad(win, TRUE);
357 keypad(form_win, TRUE);
556 keypad(win, TRUE);

Completed in 404 milliseconds

12