Lines Matching refs:input_dev
54 struct input_dev *input_dev;
138 ts->input_dev = devm_input_allocate_device(&ts->client->dev);
139 if (!ts->input_dev) {
144 ts->input_dev->name = "Himax Touchscreen";
146 input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_X);
147 input_set_capability(ts->input_dev, EV_ABS, ABS_MT_POSITION_Y);
148 input_set_abs_params(ts->input_dev, ABS_MT_WIDTH_MAJOR, 0, 200, 0, 0);
149 input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 200, 0, 0);
151 touchscreen_parse_properties(ts->input_dev, true, &ts->props);
153 error = input_mt_init_slots(ts->input_dev, HIMAX_MAX_POINTS,
161 error = input_register_device(ts->input_dev);
191 input_mt_slot(ts->input_dev, point_index);
192 input_mt_report_slot_state(ts->input_dev, MT_TOOL_FINGER, true);
193 touchscreen_report_pos(ts->input_dev, &ts->props, x, y, true);
194 input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, w);
195 input_report_abs(ts->input_dev, ABS_MT_WIDTH_MAJOR, w);
210 input_mt_sync_frame(ts->input_dev);
211 input_sync(ts->input_dev);