Lines Matching defs:input
9 #include <linux/input.h>
10 #include <linux/input/mt.h>
11 #include <linux/input/touchscreen.h>
53 * @input: input device that should be parsed
61 * input device accordingly. The function keeps previously set up default
64 void touchscreen_parse_properties(struct input_dev *input, bool multitouch,
67 struct device *dev = input->dev.parent;
73 input_alloc_absinfo(input);
74 if (!input->absinfo)
81 input_abs_get_min(input, axis_x),
84 input_abs_get_max(input,
88 input_abs_get_fuzz(input, axis_x),
91 touchscreen_set_params(input, axis_x, minimum, maximum - 1, fuzz);
94 input_abs_get_min(input, axis_y),
97 input_abs_get_max(input,
101 input_abs_get_fuzz(input, axis_y),
104 touchscreen_set_params(input, axis_y, minimum, maximum - 1, fuzz);
109 input_abs_get_max(input, axis),
113 input_abs_get_fuzz(input, axis),
116 touchscreen_set_params(input, axis, 0, maximum, fuzz);
121 prop->max_x = input_abs_get_max(input, axis_x);
122 prop->max_y = input_abs_get_max(input, axis_y);
127 absinfo = &input->absinfo[axis_x];
135 absinfo = &input->absinfo[axis_y];
143 swap(input->absinfo[axis_x], input->absinfo[axis_y]);
184 * @input: input_device to report coordinates for
194 void touchscreen_report_pos(struct input_dev *input,
200 input_report_abs(input, multitouch ? ABS_MT_POSITION_X : ABS_X, x);
201 input_report_abs(input, multitouch ? ABS_MT_POSITION_Y : ABS_Y, y);