Lines Matching defs:input

12 #include <linux/input.h>
13 #include <linux/input/mt.h>
14 #include <linux/input/touchscreen.h>
77 struct input_dev *input;
160 input_mt_assign_slots(ts->input, slots, report->pos, n, 0);
164 slot = input_mt_get_slot_by_key(ts->input,
175 input_mt_slot(ts->input, slot);
176 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
178 input_report_abs(ts->input, ABS_MT_POSITION_X,
180 input_report_abs(ts->input, ABS_MT_POSITION_Y,
187 input_mt_sync_frame(ts->input);
188 input_sync(ts->input);
209 input_mt_sync_frame(tsdata->input);
210 input_sync(tsdata->input);
412 struct input_dev *input = ts->input;
415 mutex_lock(&input->mutex);
418 if (!input_device_enabled(input)) {
425 } else if (input_device_enabled(input)) {
430 mutex_unlock(&input->mutex);
439 struct input_dev *input = ts->input;
442 mutex_lock(&input->mutex);
445 if (!input_device_enabled(input)) {
452 } else if (input_device_enabled(input)) {
457 mutex_unlock(&input->mutex);
470 struct input_dev *input;
485 input = devm_input_allocate_device(dev);
486 if (!input) {
487 dev_err(dev, "Failed to allocate input device\n");
492 tsdata->input = input;
494 input->name = client->name;
495 input->id.bustype = BUS_I2C;
496 input->open = pixcir_input_open;
497 input->close = pixcir_input_close;
499 input_set_capability(input, EV_ABS, ABS_MT_POSITION_X);
500 input_set_capability(input, EV_ABS, ABS_MT_POSITION_Y);
501 touchscreen_parse_properties(input, true, &tsdata->prop);
502 if (!input_abs_get_max(input, ABS_MT_POSITION_X) ||
503 !input_abs_get_max(input, ABS_MT_POSITION_Y)) {
508 error = input_mt_init_slots(input, tsdata->chip->max_fingers,
515 input_set_drvdata(input, tsdata);
565 error = input_register_device(input);