Lines Matching defs:input
24 #include <linux/input.h>
35 #include <linux/input/mt.h>
36 #include <linux/input/touchscreen.h>
139 struct input_dev *input;
899 struct input_dev *input = ts->input;
930 input_mt_slot(input, i);
931 input_mt_report_slot_state(input, tool_type, true);
932 touchscreen_report_pos(input, &ts->prop, x, y, true);
933 input_event(input, EV_ABS, ABS_MT_PRESSURE, p);
934 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, w);
942 input_mt_sync_frame(input);
943 input_sync(input);
1394 ts->input = devm_input_allocate_device(&client->dev);
1395 if (!ts->input) {
1396 dev_err(&client->dev, "Failed to allocate input device\n");
1400 ts->input->name = "Elan Touchscreen";
1401 ts->input->id.bustype = BUS_I2C;
1403 /* Multitouch input params setup */
1405 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, ts->x_max, 0, 0);
1406 input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, ts->y_max, 0, 0);
1407 input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
1408 input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
1409 input_set_abs_params(ts->input, ABS_MT_TOOL_TYPE,
1411 input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->x_res);
1412 input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->y_res);
1414 input_abs_set_res(ts->input, ABS_MT_TOUCH_MAJOR, ts->major_res);
1416 touchscreen_parse_properties(ts->input, true, &ts->prop);
1418 error = input_mt_init_slots(ts->input, MAX_CONTACT_NUM,
1426 error = input_register_device(ts->input);
1429 "unable to register input device: %d\n", error);