Lines Matching refs:prop
68 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument
113 if (!prop) in touchscreen_parse_properties()
118 prop->max_x = input_abs_get_max(input, axis); in touchscreen_parse_properties()
119 prop->max_y = input_abs_get_max(input, axis + 1); in touchscreen_parse_properties()
120 prop->invert_x = in touchscreen_parse_properties()
122 prop->invert_y = in touchscreen_parse_properties()
124 prop->swap_x_y = in touchscreen_parse_properties()
127 if (prop->swap_x_y) in touchscreen_parse_properties()
133 touchscreen_apply_prop_to_x_y(const struct touchscreen_properties *prop, in touchscreen_apply_prop_to_x_y() argument
136 if (prop->invert_x) in touchscreen_apply_prop_to_x_y()
137 *x = prop->max_x - *x; in touchscreen_apply_prop_to_x_y()
139 if (prop->invert_y) in touchscreen_apply_prop_to_x_y()
140 *y = prop->max_y - *y; in touchscreen_apply_prop_to_x_y()
142 if (prop->swap_x_y) in touchscreen_apply_prop_to_x_y()
158 const struct touchscreen_properties *prop, in touchscreen_set_mt_pos() argument
161 touchscreen_apply_prop_to_x_y(prop, &x, &y); in touchscreen_set_mt_pos()
180 const struct touchscreen_properties *prop, in touchscreen_report_pos() argument
184 touchscreen_apply_prop_to_x_y(prop, &x, &y); in touchscreen_report_pos()