Lines Matching defs:input
19 #include <linux/input.h>
20 #include <linux/input/mt.h>
118 struct input_dev *input;
841 input_mt_slot(ts->input, i);
842 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, state);
847 input_report_abs(ts->input, ABS_MT_POSITION_X,
849 input_report_abs(ts->input, ABS_MT_POSITION_Y,
851 input_report_abs(ts->input, ABS_MT_PRESSURE,
857 input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, max(wx, wy));
858 input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, min(wx, wy));
861 input_mt_sync_frame(ts->input);
862 input_sync(ts->input);
1113 ts->input = devm_input_allocate_device(&client->dev);
1114 if (!ts->input) {
1115 dev_err(&client->dev, "Failed to allocate input device\n");
1119 ts->input->name = "Raydium Touchscreen";
1120 ts->input->id.bustype = BUS_I2C;
1122 input_set_abs_params(ts->input, ABS_MT_POSITION_X,
1124 input_set_abs_params(ts->input, ABS_MT_POSITION_Y,
1126 input_abs_set_res(ts->input, ABS_MT_POSITION_X, ts->info.x_res);
1127 input_abs_set_res(ts->input, ABS_MT_POSITION_Y, ts->info.y_res);
1129 input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
1130 input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, 255, 0, 0);
1132 error = input_mt_init_slots(ts->input, RM_MAX_TOUCH_NUM,
1140 error = input_register_device(ts->input);
1143 "unable to register input device: %d\n", error);