Lines Matching refs:in_dev
157 struct input_dev *in_dev;
169 s32 max_pressure = input_abs_get_max(bu21029->in_dev, ABS_PRESSURE);
200 touchscreen_report_pos(bu21029->in_dev, &bu21029->prop,
202 input_report_abs(bu21029->in_dev, ABS_PRESSURE,
204 input_report_key(bu21029->in_dev, BTN_TOUCH, 1);
205 input_sync(bu21029->in_dev);
214 input_report_abs(bu21029->in_dev, ABS_PRESSURE, 0);
215 input_report_key(bu21029->in_dev, BTN_TOUCH, 0);
216 input_sync(bu21029->in_dev);
338 struct input_dev *in_dev;
381 in_dev = devm_input_allocate_device(&client->dev);
382 if (!in_dev) {
388 bu21029->in_dev = in_dev;
391 in_dev->name = DRIVER_NAME;
392 in_dev->id.bustype = BUS_I2C;
393 in_dev->open = bu21029_start_chip;
394 in_dev->close = bu21029_stop_chip;
396 input_set_capability(in_dev, EV_KEY, BTN_TOUCH);
397 input_set_abs_params(in_dev, ABS_X, 0, MAX_12BIT, 0, 0);
398 input_set_abs_params(in_dev, ABS_Y, 0, MAX_12BIT, 0, 0);
399 input_set_abs_params(in_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0);
400 touchscreen_parse_properties(in_dev, false, &bu21029->prop);
402 input_set_drvdata(in_dev, bu21029);
414 error = input_register_device(in_dev);
432 mutex_lock(&bu21029->in_dev->mutex);
433 if (bu21029->in_dev->users)
434 bu21029_stop_chip(bu21029->in_dev);
435 mutex_unlock(&bu21029->in_dev->mutex);
447 mutex_lock(&bu21029->in_dev->mutex);
448 if (bu21029->in_dev->users)
449 bu21029_start_chip(bu21029->in_dev);
450 mutex_unlock(&bu21029->in_dev->mutex);