Lines Matching defs:input
19 #include <linux/input.h>
20 #include <linux/input/mt.h>
21 #include <linux/input/touchscreen.h>
46 struct input_dev *input;
85 input_mt_assign_slots(ts->input, slots, touches,
89 input_mt_slot(ts->input, slots[i]);
90 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
91 touchscreen_report_pos(ts->input, &ts->prop,
95 input_mt_sync_frame(ts->input);
96 input_sync(ts->input);
102 input_mt_slot(ts->input, slot);
103 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, active);
109 touchscreen_report_pos(ts->input, &ts->prop, x, y, true);
118 input_mt_sync_frame(ts->input);
119 input_sync(ts->input);
184 mutex_lock(&ts->input->mutex);
185 if (input_device_enabled(ts->input))
186 ektf2127_stop(ts->input);
187 mutex_unlock(&ts->input->mutex);
196 mutex_lock(&ts->input->mutex);
197 if (input_device_enabled(ts->input))
198 ektf2127_start(ts->input);
199 mutex_unlock(&ts->input->mutex);
251 struct input_dev *input;
270 input = devm_input_allocate_device(dev);
271 if (!input)
274 input->name = client->name;
275 input->id.bustype = BUS_I2C;
276 input->open = ektf2127_start;
277 input->close = ektf2127_stop;
294 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0);
295 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
296 touchscreen_parse_properties(input, true, &ts->prop);
298 error = input_mt_init_slots(input, EKTF2127_MAX_TOUCHES,
305 ts->input = input;
306 input_set_drvdata(input, ts);
317 ektf2127_stop(ts->input);
319 error = input_register_device(input);