Lines Matching defs:idev
41 struct input_dev *idev;
74 input_report_abs(touch->idev, ABS_X, x);
75 input_report_abs(touch->idev, ABS_Y, y);
76 input_report_abs(touch->idev, ABS_PRESSURE, rt);
77 input_report_key(touch->idev, BTN_TOUCH, 1);
80 input_report_abs(touch->idev, ABS_PRESSURE, 0);
81 input_report_key(touch->idev, BTN_TOUCH, 0);
84 input_sync(touch->idev);
246 touch->idev = devm_input_allocate_device(&pdev->dev);
247 if (!touch->idev) {
252 touch->idev->name = "88pm860x-touch";
253 touch->idev->phys = "88pm860x/input0";
254 touch->idev->id.bustype = BUS_I2C;
255 touch->idev->dev.parent = &pdev->dev;
256 touch->idev->open = pm860x_touch_open;
257 touch->idev->close = pm860x_touch_close;
262 input_set_drvdata(touch->idev, touch);
270 __set_bit(EV_ABS, touch->idev->evbit);
271 __set_bit(ABS_X, touch->idev->absbit);
272 __set_bit(ABS_Y, touch->idev->absbit);
273 __set_bit(ABS_PRESSURE, touch->idev->absbit);
274 __set_bit(EV_SYN, touch->idev->evbit);
275 __set_bit(EV_KEY, touch->idev->evbit);
276 __set_bit(BTN_TOUCH, touch->idev->keybit);
278 input_set_abs_params(touch->idev, ABS_X, 0, 1 << ACCURATE_BIT, 0, 0);
279 input_set_abs_params(touch->idev, ABS_Y, 0, 1 << ACCURATE_BIT, 0, 0);
280 input_set_abs_params(touch->idev, ABS_PRESSURE, 0, 1 << ACCURATE_BIT,
283 ret = input_register_device(touch->idev);