Lines Matching refs:idev

34 	struct input_dev *idev;  member
69 struct input_dev *idev = priv->idev; in mc13783_ts_report_sample() local
86 dev_dbg(&idev->dev, in mc13783_ts_report_sample()
100 input_report_abs(idev, ABS_X, x1); in mc13783_ts_report_sample()
101 input_report_abs(idev, ABS_Y, y1); in mc13783_ts_report_sample()
103 dev_dbg(&idev->dev, "report (%d, %d, %d)\n", in mc13783_ts_report_sample()
107 dev_dbg(&idev->dev, "report release\n"); in mc13783_ts_report_sample()
110 input_report_abs(idev, ABS_PRESSURE, in mc13783_ts_report_sample()
112 input_report_key(idev, BTN_TOUCH, cr0); in mc13783_ts_report_sample()
113 input_sync(idev); in mc13783_ts_report_sample()
115 dev_dbg(&idev->dev, "discard event\n"); in mc13783_ts_report_sample()
172 struct input_dev *idev; in mc13783_ts_probe() local
176 idev = input_allocate_device(); in mc13783_ts_probe()
177 if (!priv || !idev) in mc13783_ts_probe()
182 priv->idev = idev; in mc13783_ts_probe()
190 idev->name = MC13783_TS_NAME; in mc13783_ts_probe()
191 idev->dev.parent = &pdev->dev; in mc13783_ts_probe()
193 idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in mc13783_ts_probe()
194 idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); in mc13783_ts_probe()
195 input_set_abs_params(idev, ABS_X, 0, 0xfff, 0, 0); in mc13783_ts_probe()
196 input_set_abs_params(idev, ABS_Y, 0, 0xfff, 0, 0); in mc13783_ts_probe()
197 input_set_abs_params(idev, ABS_PRESSURE, 0, 0xfff, 0, 0); in mc13783_ts_probe()
199 idev->open = mc13783_ts_open; in mc13783_ts_probe()
200 idev->close = mc13783_ts_close; in mc13783_ts_probe()
202 input_set_drvdata(idev, priv); in mc13783_ts_probe()
204 ret = input_register_device(priv->idev); in mc13783_ts_probe()
215 input_free_device(idev); in mc13783_ts_probe()
224 input_unregister_device(priv->idev); in mc13783_ts_remove()