Lines Matching defs:input
31 #include <linux/input.h>
32 #include <linux/input/touchscreen.h>
97 struct input_dev *input;
101 spinlock_t lock; /* for input reporting from irq/timer */
111 struct input_dev *input_dev = ts->input;
181 touchscreen_report_pos(ts->input, &ts->props, x, y, false);
182 input_report_key(ts->input, BTN_TOUCH, 1);
183 input_sync(ts->input);
210 input_report_key(sx8654->input, BTN_TOUCH, 0);
211 input_sync(sx8654->input);
228 touchscreen_report_pos(sx8654->input, &sx8654->props, x, y,
230 input_report_key(sx8654->input, BTN_TOUCH, 1);
231 input_sync(sx8654->input);
313 struct input_dev *input;
345 input = devm_input_allocate_device(&client->dev);
346 if (!input)
349 input->name = "SX8654 I2C Touchscreen";
350 input->id.bustype = BUS_I2C;
351 input->dev.parent = &client->dev;
352 input->open = sx8654_open;
353 input->close = sx8654_close;
355 __set_bit(INPUT_PROP_DIRECT, input->propbit);
356 input_set_capability(input, EV_KEY, BTN_TOUCH);
357 input_set_abs_params(input, ABS_X, 0, MAX_12BIT, 0, 0);
358 input_set_abs_params(input, ABS_Y, 0, MAX_12BIT, 0, 0);
360 touchscreen_parse_properties(input, false, &sx8654->props);
363 sx8654->input = input;
365 input_set_drvdata(sx8654->input, sx8654);
411 error = input_register_device(sx8654->input);