Lines Matching defs:input
24 #include <linux/input.h>
35 #include <linux/input/mt.h>
36 #include <linux/input/touchscreen.h>
153 struct input_dev *input;
973 struct input_dev *input = ts->input;
1020 input_mt_slot(input, i);
1021 input_mt_report_slot_state(input, tool_type, true);
1022 touchscreen_report_pos(input, &ts->prop, x, y, true);
1023 input_event(input, EV_ABS, ABS_MT_PRESSURE, p);
1024 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, w);
1032 input_mt_sync_frame(input);
1033 input_sync(input);
1492 ts->input = devm_input_allocate_device(&client->dev);
1493 if (!ts->input) {
1494 dev_err(&client->dev, "Failed to allocate input device\n");
1498 ts->input->name = "Elan Touchscreen";
1499 ts->input->id.bustype = BUS_I2C;
1501 /* Multitouch input params setup */
1503 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->x_max, 0, 0);
1504 input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, ts->y_max, 0, 0);
1505 input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
1506 input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
1507 input_set_abs_params(ts->input, ABS_MT_TOOL_TYPE,
1510 touchscreen_parse_properties(ts->input, true, &ts->prop);
1518 input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res);
1519 input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res);
1520 input_abs_set_res(ts->input, ABS_MT_TOUCH_MAJOR, ts->major_res);
1522 error = input_mt_init_slots(ts->input, MAX_CONTACT_NUM,
1530 error = input_register_device(ts->input);
1533 "unable to register input device: %d\n", error);