Lines Matching defs:input
9 #include <linux/input.h>
83 struct input_dev *input = tsc->dev;
114 input_report_abs(input, ABS_X, (xs[1] + xs[2]) / 2);
115 input_report_abs(input, ABS_Y, (ys[1] + ys[2]) / 2);
116 input_report_key(input, BTN_TOUCH, 1);
118 input_report_key(input, BTN_TOUCH, 0);
121 input_sync(input);
203 struct input_dev *input;
227 input = devm_input_allocate_device(dev);
228 if (!input) {
229 dev_err(&pdev->dev, "failed allocating input device\n");
233 input->name = MOD_NAME;
234 input->phys = "lpc32xx/input0";
235 input->id.bustype = BUS_HOST;
236 input->id.vendor = 0x0001;
237 input->id.product = 0x0002;
238 input->id.version = 0x0100;
239 input->open = lpc32xx_ts_open;
240 input->close = lpc32xx_ts_close;
242 input_set_capability(input, EV_KEY, BTN_TOUCH);
243 input_set_abs_params(input, ABS_X, LPC32XX_TSC_MIN_XY_VAL,
245 input_set_abs_params(input, ABS_Y, LPC32XX_TSC_MIN_XY_VAL,
248 input_set_drvdata(input, tsc);
249 tsc->dev = input;
258 error = input_register_device(input);
260 dev_err(&pdev->dev, "failed registering input device\n");
274 struct input_dev *input = tsc->dev;
282 mutex_lock(&input->mutex);
284 if (input_device_enabled(input)) {
291 mutex_unlock(&input->mutex);
299 struct input_dev *input = tsc->dev;
301 mutex_lock(&input->mutex);
303 if (input_device_enabled(input)) {
310 mutex_unlock(&input->mutex);