Lines Matching defs:input
7 #include <linux/input.h>
8 #include <linux/input/mt.h>
9 #include <linux/input/touchscreen.h>
61 struct input_dev *input;
307 struct input_dev *input = priv->input;
315 input_mt_slot(input, i);
316 if (input_mt_report_slot_state(input, MT_TOOL_FINGER, touch)) {
317 touchscreen_report_pos(input, &priv->prop, x, y, true);
319 input_report_abs(input, ABS_MT_PRESSURE, z);
324 input_mt_report_pointer_emulation(input, false);
325 input_sync(input);
394 input_abs_set_max(priv->input, ABS_X, resx - 1);
395 input_abs_set_max(priv->input, ABS_Y, resy - 1);
396 input_abs_set_max(priv->input, ABS_MT_POSITION_X, resx - 1);
397 input_abs_set_max(priv->input, ABS_MT_POSITION_Y, resy - 1);
934 struct input_dev *input;
970 input = devm_input_allocate_device(dev);
971 if (!input)
975 priv->input = input;
980 /* Setup input device */
981 input->name = "ILI210x Touchscreen";
982 input->id.bustype = BUS_I2C;
986 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_xy, 0, 0);
987 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_xy, 0, 0);
989 input_set_abs_params(input, ABS_MT_PRESSURE, 0, 0xa, 0, 0);
995 touchscreen_parse_properties(input, true, &priv->prop);
997 error = input_mt_init_slots(input, priv->chip->max_touches,
1023 error = input_register_device(priv->input);
1025 dev_err(dev, "Cannot register input device, err: %d\n", error);