Lines Matching defs:input
16 #include <linux/input.h>
17 #include <linux/input/mt.h>
18 #include <linux/input/touchscreen.h>
76 struct input_dev *input;
85 static void exc3000_report_slots(struct input_dev *input,
91 input_mt_slot(input, buf[1]);
92 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
93 touchscreen_report_pos(input, prop,
105 input_mt_sync_frame(data->input);
106 input_sync(data->input);
146 struct input_dev *input = data->input;
177 exc3000_report_slots(input, &data->prop, buf + 4, slots);
182 input_mt_sync_frame(input);
183 input_sync(input);
342 struct input_dev *input;
377 input = devm_input_allocate_device(&client->dev);
378 if (!input)
381 data->input = input;
382 input_set_drvdata(input, data);
384 input->name = data->info->name;
385 input->id.bustype = BUS_I2C;
388 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_xy, 0, 0);
389 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_xy, 0, 0);
391 touchscreen_parse_properties(input, true, &data->prop);
393 error = input_mt_init_slots(input, EXC3000_NUM_SLOTS,
398 error = input_register_device(input);