Lines Matching defs:input
8 #include <linux/input.h>
9 #include <linux/input/mt.h>
10 #include <linux/input/touchscreen.h>
27 struct input_dev *input;
72 "Error reading input data: %d\n", error);
84 input_mt_slot(ts->input, i);
85 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
86 input_event(ts->input, EV_ABS, ABS_MT_POSITION_X,
88 input_event(ts->input, EV_ABS, ABS_MT_POSITION_Y,
92 input_mt_sync_frame(ts->input);
93 input_sync(ts->input);
175 struct input_dev *input;
197 ts->input = input = devm_input_allocate_device(dev);
198 if (!input)
201 input_set_drvdata(input, ts);
203 input->name = client->name;
204 input->id.bustype = BUS_I2C;
205 input->open = zet6223_start;
206 input->close = zet6223_stop;
208 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0);
209 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0);
211 touchscreen_parse_properties(input, true, &ts->prop);
213 error = input_mt_init_slots(input, ts->fingernum,
226 zet6223_stop(input);
228 error = input_register_device(input);