Lines Matching defs:idev
29 struct input_dev *idev;
280 input_report_abs(priv->idev, ABS_X, x_pos);
281 input_report_abs(priv->idev, ABS_Y, y_pos);
282 input_report_key(priv->idev, BTN_TOUCH, 1);
283 input_sync(priv->idev);
293 input_report_key(priv->idev, BTN_TOUCH, 0);
294 input_sync(priv->idev);
466 static int mx25_tcq_open(struct input_dev *idev)
468 struct device *dev = &idev->dev;
490 static void mx25_tcq_close(struct input_dev *idev)
492 struct mx25_tcq_priv *priv = input_get_drvdata(idev);
503 struct input_dev *idev;
532 idev = devm_input_allocate_device(dev);
533 if (!idev) {
538 idev->name = mx25_tcq_name;
539 input_set_capability(idev, EV_KEY, BTN_TOUCH);
540 input_set_abs_params(idev, ABS_X, 0, 0xfff, 0, 0);
541 input_set_abs_params(idev, ABS_Y, 0, 0xfff, 0, 0);
543 idev->id.bustype = BUS_HOST;
544 idev->open = mx25_tcq_open;
545 idev->close = mx25_tcq_close;
547 priv->idev = idev;
548 input_set_drvdata(idev, priv);
568 error = input_register_device(idev);