Lines Matching refs:input

38 	struct input_dev *input;  member
132 input_mt_assign_slots(ts->input, slots, pos, n, 0); in pixcir_ts_report()
139 slot = input_mt_get_slot_by_key(ts->input, touch->id); in pixcir_ts_report()
149 input_mt_slot(ts->input, slot); in pixcir_ts_report()
150 input_mt_report_slot_state(ts->input, in pixcir_ts_report()
153 input_event(ts->input, EV_ABS, ABS_MT_POSITION_X, touch->x); in pixcir_ts_report()
154 input_event(ts->input, EV_ABS, ABS_MT_POSITION_Y, touch->y); in pixcir_ts_report()
160 input_mt_sync_frame(ts->input); in pixcir_ts_report()
161 input_sync(ts->input); in pixcir_ts_report()
182 input_mt_sync_frame(tsdata->input); in pixcir_ts_isr()
183 input_sync(tsdata->input); in pixcir_ts_isr()
367 struct input_dev *input = ts->input; in pixcir_i2c_ts_suspend() local
370 mutex_lock(&input->mutex); in pixcir_i2c_ts_suspend()
373 if (!input->users) { in pixcir_i2c_ts_suspend()
380 } else if (input->users) { in pixcir_i2c_ts_suspend()
385 mutex_unlock(&input->mutex); in pixcir_i2c_ts_suspend()
394 struct input_dev *input = ts->input; in pixcir_i2c_ts_resume() local
397 mutex_lock(&input->mutex); in pixcir_i2c_ts_resume()
401 if (!input->users) { in pixcir_i2c_ts_resume()
408 } else if (input->users) { in pixcir_i2c_ts_resume()
413 mutex_unlock(&input->mutex); in pixcir_i2c_ts_resume()
454 struct input_dev *input; in pixcir_i2c_ts_probe() local
477 input = devm_input_allocate_device(dev); in pixcir_i2c_ts_probe()
478 if (!input) { in pixcir_i2c_ts_probe()
484 tsdata->input = input; in pixcir_i2c_ts_probe()
486 input->name = client->name; in pixcir_i2c_ts_probe()
487 input->id.bustype = BUS_I2C; in pixcir_i2c_ts_probe()
488 input->open = pixcir_input_open; in pixcir_i2c_ts_probe()
489 input->close = pixcir_input_close; in pixcir_i2c_ts_probe()
490 input->dev.parent = &client->dev; in pixcir_i2c_ts_probe()
493 input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0); in pixcir_i2c_ts_probe()
494 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0); in pixcir_i2c_ts_probe()
496 input_set_capability(input, EV_ABS, ABS_MT_POSITION_X); in pixcir_i2c_ts_probe()
497 input_set_capability(input, EV_ABS, ABS_MT_POSITION_Y); in pixcir_i2c_ts_probe()
498 touchscreen_parse_properties(input, true); in pixcir_i2c_ts_probe()
499 if (!input_abs_get_max(input, ABS_MT_POSITION_X) || in pixcir_i2c_ts_probe()
500 !input_abs_get_max(input, ABS_MT_POSITION_Y)) { in pixcir_i2c_ts_probe()
513 error = input_mt_init_slots(input, tsdata->max_fingers, in pixcir_i2c_ts_probe()
520 input_set_drvdata(input, tsdata); in pixcir_i2c_ts_probe()
559 error = input_register_device(input); in pixcir_i2c_ts_probe()