Lines Matching defs:input
19 #include <linux/input.h>
20 #include <linux/input/mt.h>
21 #include <linux/input/touchscreen.h>
45 struct input_dev *input;
84 input_mt_assign_slots(ts->input, slots, touches,
88 input_mt_slot(ts->input, slots[i]);
89 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
90 touchscreen_report_pos(ts->input, &ts->prop,
94 input_mt_sync_frame(ts->input);
95 input_sync(ts->input);
156 mutex_lock(&ts->input->mutex);
157 if (ts->input->users)
158 ektf2127_stop(ts->input);
159 mutex_unlock(&ts->input->mutex);
168 mutex_lock(&ts->input->mutex);
169 if (ts->input->users)
170 ektf2127_start(ts->input);
171 mutex_unlock(&ts->input->mutex);
224 struct input_dev *input;
247 input = devm_input_allocate_device(dev);
248 if (!input)
251 input->name = client->name;
252 input->id.bustype = BUS_I2C;
253 input->open = ektf2127_start;
254 input->close = ektf2127_stop;
271 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_x, 0, 0);
272 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
273 touchscreen_parse_properties(input, true, &ts->prop);
275 error = input_mt_init_slots(input, EKTF2127_MAX_TOUCHES,
282 ts->input = input;
283 input_set_drvdata(input, ts);
294 ektf2127_stop(ts->input);
296 error = input_register_device(input);