Lines Matching refs:input

37 	struct input_dev *input;  member
129 input_mt_assign_slots(ts->input, slots, pos, n, 0); in pixcir_ts_report()
136 slot = input_mt_get_slot_by_key(ts->input, touch->id); in pixcir_ts_report()
146 input_mt_slot(ts->input, slot); in pixcir_ts_report()
147 input_mt_report_slot_state(ts->input, in pixcir_ts_report()
150 input_event(ts->input, EV_ABS, ABS_MT_POSITION_X, touch->x); in pixcir_ts_report()
151 input_event(ts->input, EV_ABS, ABS_MT_POSITION_Y, touch->y); in pixcir_ts_report()
157 input_mt_sync_frame(ts->input); in pixcir_ts_report()
158 input_sync(ts->input); in pixcir_ts_report()
180 input_mt_sync_frame(tsdata->input); in pixcir_ts_isr()
181 input_sync(tsdata->input); in pixcir_ts_isr()
354 struct input_dev *input = ts->input; in pixcir_i2c_ts_suspend() local
357 mutex_lock(&input->mutex); in pixcir_i2c_ts_suspend()
360 if (!input->users) { in pixcir_i2c_ts_suspend()
369 } else if (input->users) { in pixcir_i2c_ts_suspend()
374 mutex_unlock(&input->mutex); in pixcir_i2c_ts_suspend()
383 struct input_dev *input = ts->input; in pixcir_i2c_ts_resume() local
386 mutex_lock(&input->mutex); in pixcir_i2c_ts_resume()
391 if (!input->users) { in pixcir_i2c_ts_resume()
398 } else if (input->users) { in pixcir_i2c_ts_resume()
403 mutex_unlock(&input->mutex); in pixcir_i2c_ts_resume()
465 struct input_dev *input; in pixcir_i2c_ts_probe() local
493 input = devm_input_allocate_device(dev); in pixcir_i2c_ts_probe()
494 if (!input) { in pixcir_i2c_ts_probe()
500 tsdata->input = input; in pixcir_i2c_ts_probe()
503 input->name = client->name; in pixcir_i2c_ts_probe()
504 input->id.bustype = BUS_I2C; in pixcir_i2c_ts_probe()
505 input->open = pixcir_input_open; in pixcir_i2c_ts_probe()
506 input->close = pixcir_input_close; in pixcir_i2c_ts_probe()
507 input->dev.parent = &client->dev; in pixcir_i2c_ts_probe()
509 __set_bit(EV_KEY, input->evbit); in pixcir_i2c_ts_probe()
510 __set_bit(EV_ABS, input->evbit); in pixcir_i2c_ts_probe()
511 __set_bit(BTN_TOUCH, input->keybit); in pixcir_i2c_ts_probe()
512 input_set_abs_params(input, ABS_X, 0, pdata->x_max, 0, 0); in pixcir_i2c_ts_probe()
513 input_set_abs_params(input, ABS_Y, 0, pdata->y_max, 0, 0); in pixcir_i2c_ts_probe()
514 input_set_abs_params(input, ABS_MT_POSITION_X, 0, pdata->x_max, 0, 0); in pixcir_i2c_ts_probe()
515 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0); in pixcir_i2c_ts_probe()
524 error = input_mt_init_slots(input, tsdata->max_fingers, in pixcir_i2c_ts_probe()
531 input_set_drvdata(input, tsdata); in pixcir_i2c_ts_probe()
560 error = input_register_device(input); in pixcir_i2c_ts_probe()