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);
174 struct input_dev *input;
196 ts->input = input = devm_input_allocate_device(dev);
197 if (!input)
200 input_set_drvdata(input, ts);
202 input->name = client->name;
203 input->id.bustype = BUS_I2C;
204 input->open = zet6223_start;
205 input->close = zet6223_stop;
207 input_set_abs_params(input, ABS_MT_POSITION_X, 0, ts->max_x, 0, 0);
208 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, ts->max_y, 0, 0);
210 touchscreen_parse_properties(input, true, &ts->prop);
212 error = input_mt_init_slots(input, ts->fingernum,
225 zet6223_stop(input);
227 error = input_register_device(input);