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);
202 struct input_dev *input;
219 input = input_allocate_device();
220 if (!tsc || !input) {
226 tsc->dev = input;
251 input->name = MOD_NAME;
252 input->phys = "lpc32xx/input0";
253 input->id.bustype = BUS_HOST;
254 input->id.vendor = 0x0001;
255 input->id.product = 0x0002;
256 input->id.version = 0x0100;
257 input->dev.parent = &pdev->dev;
258 input->open = lpc32xx_ts_open;
259 input->close = lpc32xx_ts_close;
261 input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
262 input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
263 input_set_abs_params(input, ABS_X, LPC32XX_TSC_MIN_XY_VAL,
265 input_set_abs_params(input, ABS_Y, LPC32XX_TSC_MIN_XY_VAL,
268 input_set_drvdata(input, tsc);
277 error = input_register_device(input);
279 dev_err(&pdev->dev, "failed registering input device\n");
297 input_free_device(input);
327 struct input_dev *input = tsc->dev;
335 mutex_lock(&input->mutex);
337 if (input->users) {
344 mutex_unlock(&input->mutex);
352 struct input_dev *input = tsc->dev;
354 mutex_lock(&input->mutex);
356 if (input->users) {
363 mutex_unlock(&input->mutex);