Lines Matching defs:input
10 #include <linux/input.h>
11 #include <linux/input/mt.h>
12 #include <linux/input/touchscreen.h>
54 * @input: input device that should be parsed
62 * input device accordingly. The function keeps previously set up default
65 void touchscreen_parse_properties(struct input_dev *input, bool multitouch,
68 struct device *dev = input->dev.parent;
74 input_alloc_absinfo(input);
75 if (!input->absinfo)
82 input_abs_get_min(input, axis_x),
85 input_abs_get_max(input,
89 input_abs_get_fuzz(input, axis_x),
92 touchscreen_set_params(input, axis_x, minimum, maximum - 1, fuzz);
95 input_abs_get_min(input, axis_y),
98 input_abs_get_max(input,
102 input_abs_get_fuzz(input, axis_y),
105 touchscreen_set_params(input, axis_y, minimum, maximum - 1, fuzz);
110 input_abs_get_max(input, axis),
114 input_abs_get_fuzz(input, axis),
117 touchscreen_set_params(input, axis, 0, maximum, fuzz);
122 prop->max_x = input_abs_get_max(input, axis_x);
123 prop->max_y = input_abs_get_max(input, axis_y);
128 absinfo = &input->absinfo[axis_x];
136 absinfo = &input->absinfo[axis_y];
144 swap(input->absinfo[axis_x], input->absinfo[axis_y]);
185 * @input: input_device to report coordinates for
195 void touchscreen_report_pos(struct input_dev *input,
201 input_report_abs(input, multitouch ? ABS_MT_POSITION_X : ABS_X, x);
202 input_report_abs(input, multitouch ? ABS_MT_POSITION_Y : ABS_Y, y);