Lines Matching refs:input
10 #include <linux/input/mt.h>
11 #include <linux/input/touchscreen.h>
104 struct input_dev *input;
151 input_mt_slot(sdata->input, tid);
153 input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, true);
154 input_report_abs(sdata->input, ABS_MT_POSITION_X, x);
155 input_report_abs(sdata->input, ABS_MT_POSITION_Y, y);
156 input_report_abs(sdata->input, ABS_MT_TOUCH_MAJOR, major);
157 input_report_abs(sdata->input, ABS_MT_TOUCH_MINOR, minor);
158 input_report_abs(sdata->input, ABS_MT_PRESSURE, z);
160 input_sync(sdata->input);
166 input_mt_slot(sdata->input, tid);
167 input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, false);
169 input_sync(sdata->input);
426 sdata->input = devm_input_allocate_device(&client->dev);
427 if (!sdata->input)
430 sdata->input->name = S6SY761_DEV_NAME;
431 sdata->input->id.bustype = BUS_I2C;
432 sdata->input->open = s6sy761_input_open;
433 sdata->input->close = s6sy761_input_close;
435 input_set_abs_params(sdata->input, ABS_MT_POSITION_X, 0, max_x, 0, 0);
436 input_set_abs_params(sdata->input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
437 input_set_abs_params(sdata->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
438 input_set_abs_params(sdata->input, ABS_MT_TOUCH_MINOR, 0, 255, 0, 0);
439 input_set_abs_params(sdata->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
440 input_set_abs_params(sdata->input, ABS_MT_TOUCH_MINOR, 0, 255, 0, 0);
441 input_set_abs_params(sdata->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
443 touchscreen_parse_properties(sdata->input, true, &sdata->prop);
445 if (!input_abs_get_max(sdata->input, ABS_X) ||
446 !input_abs_get_max(sdata->input, ABS_Y)) {
450 err = input_mt_init_slots(sdata->input, sdata->tx_channel,
455 input_set_drvdata(sdata->input, sdata);
457 err = input_register_device(sdata->input);