Lines Matching refs:input
23 struct input_dev *input; member
32 input_report_abs(ts->input, ABS_X, in micro_ts_receive()
34 input_report_abs(ts->input, ABS_Y, in micro_ts_receive()
36 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive()
37 input_sync(ts->input); in micro_ts_receive()
39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive()
40 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive()
41 input_report_key(ts->input, BTN_TOUCH, 0); in micro_ts_receive()
42 input_sync(ts->input); in micro_ts_receive()
63 static int micro_ts_open(struct input_dev *input) in micro_ts_open() argument
65 struct touchscreen_data *ts = input_get_drvdata(input); in micro_ts_open()
72 static void micro_ts_close(struct input_dev *input) in micro_ts_close() argument
74 struct touchscreen_data *ts = input_get_drvdata(input); in micro_ts_close()
91 ts->input = devm_input_allocate_device(&pdev->dev); in micro_ts_probe()
92 if (!ts->input) { in micro_ts_probe()
97 ts->input->name = "ipaq micro ts"; in micro_ts_probe()
98 ts->input->open = micro_ts_open; in micro_ts_probe()
99 ts->input->close = micro_ts_close; in micro_ts_probe()
101 input_set_drvdata(ts->input, ts); in micro_ts_probe()
103 input_set_capability(ts->input, EV_KEY, BTN_TOUCH); in micro_ts_probe()
104 input_set_capability(ts->input, EV_ABS, ABS_X); in micro_ts_probe()
105 input_set_capability(ts->input, EV_ABS, ABS_Y); in micro_ts_probe()
106 input_set_abs_params(ts->input, ABS_X, 0, 1023, 0, 0); in micro_ts_probe()
107 input_set_abs_params(ts->input, ABS_Y, 0, 1023, 0, 0); in micro_ts_probe()
109 error = input_register_device(ts->input); in micro_ts_probe()
134 struct input_dev *input = ts->input; in micro_ts_resume() local
136 mutex_lock(&input->mutex); in micro_ts_resume()
138 if (input_device_enabled(input)) in micro_ts_resume()
141 mutex_unlock(&input->mutex); in micro_ts_resume()