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;
369 in_dev = devm_input_allocate_device(dev);
370 if (!in_dev) {
376 bu21029->in_dev = in_dev;
379 in_dev->name = DRIVER_NAME;
380 in_dev->id.bustype = BUS_I2C;
381 in_dev->open = bu21029_start_chip;
382 in_dev->close = bu21029_stop_chip;
384 input_set_capability(in_dev, EV_KEY, BTN_TOUCH);
385 input_set_abs_params(in_dev, ABS_X, 0, MAX_12BIT, 0, 0);
386 input_set_abs_params(in_dev, ABS_Y, 0, MAX_12BIT, 0, 0);
387 input_set_abs_params(in_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0);
388 touchscreen_parse_properties(in_dev, false, &bu21029->prop);
390 input_set_drvdata(in_dev, bu21029);
401 error = input_register_device(in_dev);
418 mutex_lock(&bu21029->in_dev->mutex);
419 if (input_device_enabled(bu21029->in_dev))
420 bu21029_stop_chip(bu21029->in_dev);
421 mutex_unlock(&bu21029->in_dev->mutex);
433 mutex_lock(&bu21029->in_dev->mutex);
434 if (input_device_enabled(bu21029->in_dev))
435 bu21029_start_chip(bu21029->in_dev);
436 mutex_unlock(&bu21029->in_dev->mutex);