Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/input/keyboard/
Domap4-keypad.c90 static int kbd_readl(struct omap4_keypad *keypad_data, u32 offset) in kbd_readl() argument
92 return __raw_readl(keypad_data->base + in kbd_readl()
93 keypad_data->reg_offset + offset); in kbd_readl()
96 static void kbd_writel(struct omap4_keypad *keypad_data, u32 offset, u32 value) in kbd_writel() argument
99 keypad_data->base + keypad_data->reg_offset + offset); in kbd_writel()
102 static int kbd_read_irqreg(struct omap4_keypad *keypad_data, u32 offset) in kbd_read_irqreg() argument
104 return __raw_readl(keypad_data->base + in kbd_read_irqreg()
105 keypad_data->irqreg_offset + offset); in kbd_read_irqreg()
108 static void kbd_write_irqreg(struct omap4_keypad *keypad_data, in kbd_write_irqreg() argument
112 keypad_data->base + keypad_data->irqreg_offset + offset); in kbd_write_irqreg()
[all …]
Dtca8418_keypad.c122 static int tca8418_write_byte(struct tca8418_keypad *keypad_data, in tca8418_write_byte() argument
127 error = i2c_smbus_write_byte_data(keypad_data->client, reg, val); in tca8418_write_byte()
129 dev_err(&keypad_data->client->dev, in tca8418_write_byte()
141 static int tca8418_read_byte(struct tca8418_keypad *keypad_data, in tca8418_read_byte() argument
146 error = i2c_smbus_read_byte_data(keypad_data->client, reg); in tca8418_read_byte()
148 dev_err(&keypad_data->client->dev, in tca8418_read_byte()
159 static void tca8418_read_keypad(struct tca8418_keypad *keypad_data) in tca8418_read_keypad() argument
161 struct input_dev *input = keypad_data->input; in tca8418_read_keypad()
167 error = tca8418_read_byte(keypad_data, REG_KEY_EVENT_A, &reg); in tca8418_read_keypad()
169 dev_err(&keypad_data->client->dev, in tca8418_read_keypad()
[all …]
Dst-keyscan.c102 static int keypad_matrix_key_parse_dt(struct st_keyscan *keypad_data) in keypad_matrix_key_parse_dt() argument
104 struct device *dev = keypad_data->input_dev->dev.parent; in keypad_matrix_key_parse_dt()
108 error = matrix_keypad_parse_properties(dev, &keypad_data->n_rows, in keypad_matrix_key_parse_dt()
109 &keypad_data->n_cols); in keypad_matrix_key_parse_dt()
115 of_property_read_u32(np, "st,debounce-us", &keypad_data->debounce_us); in keypad_matrix_key_parse_dt()
118 keypad_data->n_rows, keypad_data->n_cols, in keypad_matrix_key_parse_dt()
119 keypad_data->debounce_us); in keypad_matrix_key_parse_dt()
126 struct st_keyscan *keypad_data; in keyscan_probe() local
135 keypad_data = devm_kzalloc(&pdev->dev, sizeof(*keypad_data), in keyscan_probe()
137 if (!keypad_data) in keyscan_probe()
[all …]