Lines Matching defs:input
16 #include <linux/input.h>
17 #include <linux/input/touchscreen.h>
28 struct input_dev *input;
59 input_report_abs(eeti->input, ABS_PRESSURE, buf[5]);
61 touchscreen_report_pos(eeti->input, &eeti->props, x, y, false);
62 input_report_key(eeti->input, BTN_TOUCH, buf[0] & REPORT_BIT_PRESSED);
63 input_sync(eeti->input);
165 struct input_dev *input;
183 input = devm_input_allocate_device(dev);
184 if (!input) {
185 dev_err(dev, "Failed to allocate input device.\n");
189 input_set_capability(input, EV_KEY, BTN_TOUCH);
191 input_set_abs_params(input, ABS_X, 0, EETI_MAXVAL, 0, 0);
192 input_set_abs_params(input, ABS_Y, 0, EETI_MAXVAL, 0, 0);
193 input_set_abs_params(input, ABS_PRESSURE, 0, 0xff, 0, 0);
195 touchscreen_parse_properties(input, false, &eeti->props);
197 input->name = client->name;
198 input->id.bustype = BUS_I2C;
199 input->open = eeti_ts_open;
200 input->close = eeti_ts_close;
203 eeti->input = input;
210 input_set_drvdata(input, eeti);
224 * input device is opened.
228 error = input_register_device(input);
239 struct input_dev *input_dev = eeti->input;
258 struct input_dev *input_dev = eeti->input;