Lines Matching defs:input

17 #include <linux/input/mt.h>
18 #include <linux/input/touchscreen.h>
205 struct input_dev *input;
323 input_mt_slot(ts->input, t);
324 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
328 touchscreen_report_pos(ts->input, &ts->prop,
331 input_report_abs(ts->input, ABS_MT_PRESSURE,
335 input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR,
337 input_report_abs(ts->input, ABS_MT_TOUCH_MINOR,
369 input_mt_sync_frame(ts->input);
370 input_sync(ts->input);
389 input_set_abs_params(ts->input, ABS_MT_POSITION_X, 0, max_x, 0, 0);
390 input_set_abs_params(ts->input, ABS_MT_POSITION_Y, 0, max_y, 0, 0);
391 input_set_abs_params(ts->input, ABS_MT_PRESSURE, 0, max_p, 0, 0);
393 input_set_abs_params(ts->input, ABS_MT_TOUCH_MAJOR, 0, MAX_AREA, 0, 0);
394 input_set_abs_params(ts->input, ABS_MT_TOUCH_MINOR, 0, MAX_AREA, 0, 0);
396 error = input_mt_init_slots(ts->input, si->tch_abs[CY_TCH_T].max,
401 error = input_register_device(ts->input);
403 dev_err(dev, "failed to register input device: %d\n", error);
450 input_report_key(ts->input, si->key_code[cur_btn],
452 input_sync(ts->input);
728 /* It is not an input but a command response */
857 ts->input = devm_input_allocate_device(dev);
858 if (!ts->input) {
859 dev_err(dev, "Error, failed to allocate input device\n");
863 ts->input->name = "cyttsp5";
865 ts->input->phys = ts->phys;
866 input_set_drvdata(ts->input, ts);
899 touchscreen_parse_properties(ts->input, true, &ts->prop);
901 __set_bit(EV_KEY, ts->input->evbit);
903 __set_bit(si->key_code[i], ts->input->keybit);