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()
214 input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0); in bu21029_touch_release()
215 input_report_key(bu21029->in_dev, BTN_TOUCH, 0); in bu21029_touch_release()
216 input_sync(bu21029->in_dev); in bu21029_touch_release()
338 struct input_dev *in_dev; in bu21029_probe() local
381 in_dev = devm_input_allocate_device(&client->dev); in bu21029_probe()
382 if (!in_dev) { in bu21029_probe()
388 bu21029->in_dev = in_dev; in bu21029_probe()
391 in_dev->name = DRIVER_NAME; in bu21029_probe()
392 in_dev->id.bustype = BUS_I2C; in bu21029_probe()
393 in_dev->open = bu21029_start_chip; in bu21029_probe()
394 in_dev->close = bu21029_stop_chip; in bu21029_probe()
396 input_set_capability(in_dev, EV_KEY, BTN_TOUCH); in bu21029_probe()
397 input_set_abs_params(in_dev, ABS_X, 0, MAX_12BIT, 0, 0); in bu21029_probe()
398 input_set_abs_params(in_dev, ABS_Y, 0, MAX_12BIT, 0, 0); in bu21029_probe()
399 input_set_abs_params(in_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0); in bu21029_probe()
400 touchscreen_parse_properties(in_dev, false, &bu21029->prop); in bu21029_probe()
402 input_set_drvdata(in_dev, bu21029); in bu21029_probe()
414 error = input_register_device(in_dev); in bu21029_probe()
432 mutex_lock(&bu21029->in_dev->mutex); in bu21029_suspend()
433 if (input_device_enabled(bu21029->in_dev)) in bu21029_suspend()
434 bu21029_stop_chip(bu21029->in_dev); in bu21029_suspend()
435 mutex_unlock(&bu21029->in_dev->mutex); in bu21029_suspend()
447 mutex_lock(&bu21029->in_dev->mutex); in bu21029_resume()
448 if (input_device_enabled(bu21029->in_dev)) in bu21029_resume()
449 bu21029_start_chip(bu21029->in_dev); in bu21029_resume()
450 mutex_unlock(&bu21029->in_dev->mutex); in bu21029_resume()