Home
last modified time | relevance | path

Searched refs:keypad_data (Results 1 – 3 of 3) sorted by relevance

/drivers/input/keyboard/
Domap4-keypad.c88 static int kbd_readl(struct omap4_keypad *keypad_data, u32 offset) in kbd_readl() argument
90 return __raw_readl(keypad_data->base + in kbd_readl()
91 keypad_data->reg_offset + offset); in kbd_readl()
94 static void kbd_writel(struct omap4_keypad *keypad_data, u32 offset, u32 value) in kbd_writel() argument
97 keypad_data->base + keypad_data->reg_offset + offset); in kbd_writel()
100 static int kbd_read_irqreg(struct omap4_keypad *keypad_data, u32 offset) in kbd_read_irqreg() argument
102 return __raw_readl(keypad_data->base + in kbd_read_irqreg()
103 keypad_data->irqreg_offset + offset); in kbd_read_irqreg()
106 static void kbd_write_irqreg(struct omap4_keypad *keypad_data, in kbd_write_irqreg() argument
110 keypad_data->base + keypad_data->irqreg_offset + offset); in kbd_write_irqreg()
[all …]
Dtca8418_keypad.c123 static int tca8418_write_byte(struct tca8418_keypad *keypad_data, in tca8418_write_byte() argument
128 error = i2c_smbus_write_byte_data(keypad_data->client, reg, val); in tca8418_write_byte()
130 dev_err(&keypad_data->client->dev, in tca8418_write_byte()
142 static int tca8418_read_byte(struct tca8418_keypad *keypad_data, in tca8418_read_byte() argument
147 error = i2c_smbus_read_byte_data(keypad_data->client, reg); in tca8418_read_byte()
149 dev_err(&keypad_data->client->dev, in tca8418_read_byte()
160 static void tca8418_read_keypad(struct tca8418_keypad *keypad_data) in tca8418_read_keypad() argument
162 struct input_dev *input = keypad_data->input; in tca8418_read_keypad()
168 error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg); in tca8418_read_keypad()
170 dev_err(&keypad_data->client->dev, in tca8418_read_keypad()
[all …]
Dst-keyscan.c103 static int keypad_matrix_key_parse_dt(struct st_keyscan *keypad_data) in keypad_matrix_key_parse_dt() argument
105 struct device *dev = keypad_data->input_dev->dev.parent; in keypad_matrix_key_parse_dt()
109 error = matrix_keypad_parse_of_params(dev, &keypad_data->n_rows, in keypad_matrix_key_parse_dt()
110 &keypad_data->n_cols); in keypad_matrix_key_parse_dt()
116 of_property_read_u32(np, "st,debounce-us", &keypad_data->debounce_us); in keypad_matrix_key_parse_dt()
119 keypad_data->n_rows, keypad_data->n_cols, in keypad_matrix_key_parse_dt()
120 keypad_data->debounce_us); in keypad_matrix_key_parse_dt()
127 struct st_keyscan *keypad_data; in keyscan_probe() local
137 keypad_data = devm_kzalloc(&pdev->dev, sizeof(*keypad_data), in keyscan_probe()
139 if (!keypad_data) in keyscan_probe()
[all …]