Lines Matching refs:prop
67 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
120 if (!prop) in touchscreen_parse_properties()
123 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties()
124 prop->max_y = input_abs_get_max(input, axis_y); in touchscreen_parse_properties()
126 prop->invert_x = in touchscreen_parse_properties()
128 if (prop->invert_x) { in touchscreen_parse_properties()
134 prop->invert_y = in touchscreen_parse_properties()
136 if (prop->invert_y) { in touchscreen_parse_properties()
142 prop->swap_x_y = in touchscreen_parse_properties()
144 if (prop->swap_x_y) in touchscreen_parse_properties()
150 touchscreen_apply_prop_to_x_y(const struct touchscreen_properties *prop, in touchscreen_apply_prop_to_x_y() argument
153 if (prop->invert_x) in touchscreen_apply_prop_to_x_y()
154 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
156 if (prop->invert_y) in touchscreen_apply_prop_to_x_y()
157 *y = prop->max_y - *y; in touchscreen_apply_prop_to_x_y()
159 if (prop->swap_x_y) in touchscreen_apply_prop_to_x_y()
175 const struct touchscreen_properties *prop, in touchscreen_set_mt_pos() argument
178 touchscreen_apply_prop_to_x_y(prop, &x, &y); in touchscreen_set_mt_pos()
197 const struct touchscreen_properties *prop, in touchscreen_report_pos() argument
201 touchscreen_apply_prop_to_x_y(prop, &x, &y); in touchscreen_report_pos()