Lines Matching refs:input
34 #include <linux/input.h>
108 struct input_dev *input;
126 input_report_abs(ts->input, ABS_X, x);
127 input_report_abs(ts->input, ABS_Y, y);
133 input_report_key(ts->input, BTN_TOUCH, 1);
134 input_sync(ts->input);
142 input_report_key(ts->input, BTN_TOUCH, 0);
143 input_sync(ts->input);
157 if (ts->input)
180 /* Deactivate all input IRQs */
285 ts->input = devm_input_allocate_device(dev);
286 if (!ts->input)
289 ts->input->name = pdev->name;
290 ts->input->phys = "sun4i_ts/input0";
291 ts->input->open = sun4i_ts_open;
292 ts->input->close = sun4i_ts_close;
293 ts->input->id.bustype = BUS_HOST;
294 ts->input->id.vendor = 0x0001;
295 ts->input->id.product = 0x0001;
296 ts->input->id.version = 0x0100;
297 ts->input->evbit[0] = BIT(EV_SYN) | BIT(EV_KEY) | BIT(EV_ABS);
298 __set_bit(BTN_TOUCH, ts->input->keybit);
299 input_set_abs_params(ts->input, ABS_X, 0, 4095, 0, 0);
300 input_set_abs_params(ts->input, ABS_Y, 0, 4095, 0, 0);
301 input_set_drvdata(ts->input, ts);
367 error = input_register_device(ts->input);
383 if (ts->input)
384 input_unregister_device(ts->input);