Lines Matching defs:input
12 #include <linux/input.h>
13 #include <linux/input/mt.h>
96 struct input_dev *input;
174 struct input_dev *input = ts->input;
187 slot = input_mt_get_slot_by_key(input, data[SIS_CONTACT_ID_OFFSET]);
191 input_mt_slot(input, slot);
192 input_mt_report_slot_state(input, MT_TOOL_FINGER,
211 input_report_abs(input, ABS_MT_TOUCH_MAJOR,
213 input_report_abs(input, ABS_MT_TOUCH_MINOR,
215 input_report_abs(input, ABS_MT_PRESSURE, pressure);
216 input_report_abs(input, ABS_MT_POSITION_X, x);
217 input_report_abs(input, ABS_MT_POSITION_Y, y);
272 input_mt_sync_frame(ts->input);
273 input_sync(ts->input);
302 struct input_dev *input;
325 ts->input = input = devm_input_allocate_device(&client->dev);
326 if (!input) {
327 dev_err(&client->dev, "Failed to allocate input device\n");
331 input->name = "SiS Touchscreen";
332 input->id.bustype = BUS_I2C;
334 input_set_abs_params(input, ABS_MT_POSITION_X, 0, SIS_MAX_X, 0, 0);
335 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, SIS_MAX_Y, 0, 0);
336 input_set_abs_params(input, ABS_MT_PRESSURE, 0, SIS_MAX_PRESSURE, 0, 0);
337 input_set_abs_params(input, ABS_MT_TOUCH_MAJOR,
339 input_set_abs_params(input, ABS_MT_TOUCH_MINOR,
342 error = input_mt_init_slots(input, SIS_MAX_FINGERS, INPUT_MT_DIRECT);
358 error = input_register_device(ts->input);
361 "Failed to register input device: %d\n", error);