Lines Matching refs: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);
303 struct input_dev *input;
334 ts->input = input = devm_input_allocate_device(&client->dev);
335 if (!input) {
336 dev_err(&client->dev, "Failed to allocate input device\n");
340 input->name = "SiS Touchscreen";
341 input->id.bustype = BUS_I2C;
343 input_set_abs_params(input, ABS_MT_POSITION_X, 0, SIS_MAX_X, 0, 0);
344 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, SIS_MAX_Y, 0, 0);
345 input_set_abs_params(input, ABS_MT_PRESSURE, 0, SIS_MAX_PRESSURE, 0, 0);
346 input_set_abs_params(input, ABS_MT_TOUCH_MAJOR,
348 input_set_abs_params(input, ABS_MT_TOUCH_MINOR,
351 error = input_mt_init_slots(input, SIS_MAX_FINGERS, INPUT_MT_DIRECT);
367 error = input_register_device(ts->input);
370 "Failed to register input device: %d\n", error);