Lines Matching defs:input
11 #include <linux/input/mt.h>
41 struct input_dev *input;
155 struct input_dev *input;
165 input = devm_input_allocate_device(&hdev->dev);
166 if (!input)
169 input->name = "Elan Touchpad";
170 input->phys = hdev->phys;
171 input->uniq = hdev->uniq;
172 input->id.bustype = hdev->bus;
173 input->id.vendor = hdev->vendor;
174 input->id.product = hdev->product;
175 input->id.version = hdev->version;
176 input->dev.parent = &hdev->dev;
178 input_set_abs_params(input, ABS_MT_POSITION_X, 0, drvdata->max_x,
180 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, drvdata->max_y,
182 input_set_abs_params(input, ABS_MT_PRESSURE, 0, ELAN_MAX_PRESSURE,
185 __set_bit(BTN_LEFT, input->keybit);
186 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
188 ret = input_mt_init_slots(input, ELAN_MAX_FINGERS, INPUT_MT_POINTER);
194 input_abs_set_res(input, ABS_X, drvdata->res_x);
195 input_abs_set_res(input, ABS_Y, drvdata->res_y);
197 ret = input_register_device(input);
199 hid_err(hdev, "Failed to register elan input device: %d\n",
201 input_mt_destroy_slots(input);
205 drvdata->input = input;
213 struct input_dev *input = drvdata->input;
218 input_mt_slot(input, slot_num);
219 input_mt_report_slot_state(input, MT_TOOL_FINGER, active);
226 input_report_abs(input, ABS_MT_POSITION_X, x);
227 input_report_abs(input, ABS_MT_POSITION_Y, y);
228 input_report_abs(input, ABS_MT_PRESSURE, p);
235 struct input_dev *input = drvdata->input;
279 input_report_key(input, BTN_LEFT, data[2] & 0x01);
312 input_report_key(input, BTN_LEFT, prev_report[2] & 0x01);
315 input_mt_sync_frame(input);
316 input_sync(input);
321 struct input_dev *input = drvdata->input;
354 input_report_key(input, BTN_LEFT, data[1] & 0x01);
355 input_mt_sync_frame(input);
356 input_sync(input);
488 if (!drvdata->input) {