Lines Matching refs:in_dev

157 	struct input_dev		*in_dev;  member
169 s32 max_pressure = input_abs_get_max(bu21029->in_dev, ABS_PRESSURE); in bu21029_touch_report()
200 touchscreen_report_pos(bu21029->in_dev, &bu21029->prop, in bu21029_touch_report()
202 input_report_abs(bu21029->in_dev, ABS_PRESSURE, in bu21029_touch_report()
204 input_report_key(bu21029->in_dev, BTN_TOUCH, 1); in bu21029_touch_report()
205 input_sync(bu21029->in_dev); in bu21029_touch_report()
215 input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0); in bu21029_touch_release()
216 input_report_key(bu21029->in_dev, BTN_TOUCH, 0); in bu21029_touch_release()
217 input_sync(bu21029->in_dev); in bu21029_touch_release()
339 struct input_dev *in_dev; in bu21029_probe() local
370 in_dev = devm_input_allocate_device(dev); in bu21029_probe()
371 if (!in_dev) { in bu21029_probe()
377 bu21029->in_dev = in_dev; in bu21029_probe()
380 in_dev->name = DRIVER_NAME; in bu21029_probe()
381 in_dev->id.bustype = BUS_I2C; in bu21029_probe()
382 in_dev->open = bu21029_start_chip; in bu21029_probe()
383 in_dev->close = bu21029_stop_chip; in bu21029_probe()
385 input_set_capability(in_dev, EV_KEY, BTN_TOUCH); in bu21029_probe()
386 input_set_abs_params(in_dev, ABS_X, 0, MAX_12BIT, 0, 0); in bu21029_probe()
387 input_set_abs_params(in_dev, ABS_Y, 0, MAX_12BIT, 0, 0); in bu21029_probe()
388 input_set_abs_params(in_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0); in bu21029_probe()
389 touchscreen_parse_properties(in_dev, false, &bu21029->prop); in bu21029_probe()
391 input_set_drvdata(in_dev, bu21029); in bu21029_probe()
402 error = input_register_device(in_dev); in bu21029_probe()
419 mutex_lock(&bu21029->in_dev->mutex); in bu21029_suspend()
420 if (input_device_enabled(bu21029->in_dev)) in bu21029_suspend()
421 bu21029_stop_chip(bu21029->in_dev); in bu21029_suspend()
422 mutex_unlock(&bu21029->in_dev->mutex); in bu21029_suspend()
434 mutex_lock(&bu21029->in_dev->mutex); in bu21029_resume()
435 if (input_device_enabled(bu21029->in_dev)) in bu21029_resume()
436 bu21029_start_chip(bu21029->in_dev); in bu21029_resume()
437 mutex_unlock(&bu21029->in_dev->mutex); in bu21029_resume()