Lines Matching defs:input
12 #include <linux/input.h>
13 #include <linux/input/mt.h>
22 #include <linux/input/touchscreen.h>
140 struct input_dev *input = ts->input_dev;
142 input_mt_slot(input, id);
143 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
145 touchscreen_report_pos(input, &ts->prop, x, y, true);
156 struct input_dev *input = ts->input_dev;
207 input_mt_sync_frame(input);
208 input_sync(input);
460 struct input_dev *input;
462 input = devm_input_allocate_device(dev);
463 if (!input)
466 ts->input_dev = input;
467 input->name = ILITEK_TS_NAME;
468 input->id.bustype = BUS_I2C;
470 __set_bit(INPUT_PROP_DIRECT, input->propbit);
472 input_set_abs_params(input, ABS_MT_POSITION_X,
474 input_set_abs_params(input, ABS_MT_POSITION_Y,
477 touchscreen_parse_properties(input, true, &ts->prop);
479 error = input_mt_init_slots(input, ts->max_tp,
486 error = input_register_device(input);
488 dev_err(dev, "register input device failed, err:%d\n", error);
586 dev_err(dev, "input dev init failed: %d", error);