Lines Matching defs:input
15 #include <linux/input.h>
16 #include <linux/input/mt.h>
17 #include <linux/input/touchscreen.h>
72 struct input_dev *input;
84 static void exc3000_report_slots(struct input_dev *input,
90 input_mt_slot(input, buf[1]);
91 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
92 touchscreen_report_pos(input, prop,
104 input_mt_sync_frame(data->input);
105 input_sync(data->input);
192 struct input_dev *input = data->input;
218 exc3000_report_slots(input, &data->prop, buf + 4, slots);
223 input_mt_sync_frame(input);
224 input_sync(input);
313 struct input_dev *input;
342 input = devm_input_allocate_device(&client->dev);
343 if (!input)
346 data->input = input;
347 input_set_drvdata(input, data);
349 input->name = data->info->name;
350 input->id.bustype = BUS_I2C;
353 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_xy, 0, 0);
354 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_xy, 0, 0);
356 touchscreen_parse_properties(input, true, &data->prop);
358 error = input_mt_init_slots(input, EXC3000_NUM_SLOTS,
363 error = input_register_device(input);