Lines Matching defs:input
22 #include <linux/input.h>
23 #include <linux/input/touchscreen.h>
24 #include <linux/input/mt.h>
45 struct input_dev *input;
74 slot = input_mt_get_slot_by_key(ts->input, id);
85 input_mt_slot(ts->input, slot);
86 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
87 touchscreen_report_pos(ts->input, &ts->props, x, y, true);
88 input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, w);
91 input_mt_sync_frame(ts->input);
92 input_sync(ts->input);
205 struct input_dev *input;
213 input = devm_input_allocate_device(dev);
214 if (!input)
219 ts->input = input;
221 input_set_capability(input, EV_ABS, ABS_MT_POSITION_X);
222 input_set_capability(input, EV_ABS, ABS_MT_POSITION_Y);
224 input_set_abs_params(input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
233 * extended to handle touchkey input.
238 touchscreen_parse_properties(input, true, &ts->props);
239 input_abs_set_fuzz(input, ABS_MT_POSITION_X, 0);
240 input_abs_set_fuzz(input, ABS_MT_POSITION_Y, 0);
242 error = input_mt_init_slots(input, CY8CTMA140_MAX_FINGERS,
247 input->name = CY8CTMA140_NAME;
248 input->id.bustype = BUS_I2C;
249 input_set_drvdata(input, ts);
291 error = input_register_device(input);