Lines Matching refs:axis_align
26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process() local
32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process()
35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process()
38 if (axis_align->swap_axes) in rmi_2d_sensor_abs_process()
49 obj->x += axis_align->offset_x; in rmi_2d_sensor_abs_process()
50 obj->y += axis_align->offset_y; in rmi_2d_sensor_abs_process()
52 obj->x = max(axis_align->clip_x_low, obj->x); in rmi_2d_sensor_abs_process()
53 obj->y = max(axis_align->clip_y_low, obj->y); in rmi_2d_sensor_abs_process()
55 if (axis_align->clip_x_high) in rmi_2d_sensor_abs_process()
58 if (axis_align->clip_y_high) in rmi_2d_sensor_abs_process()
70 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_report() local
86 if (axis_align->swap_axes) in rmi_2d_sensor_abs_report()
115 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_rel_report() local
120 if (axis_align->flip_x) in rmi_2d_sensor_rel_report()
123 if (axis_align->flip_y) in rmi_2d_sensor_rel_report()
126 if (axis_align->swap_axes) in rmi_2d_sensor_rel_report()
145 sensor->min_x = sensor->axis_align.clip_x_low; in rmi_2d_sensor_set_input_params()
146 if (sensor->axis_align.clip_x_high) in rmi_2d_sensor_set_input_params()
148 sensor->axis_align.clip_x_high); in rmi_2d_sensor_set_input_params()
150 sensor->min_y = sensor->axis_align.clip_y_low; in rmi_2d_sensor_set_input_params()
151 if (sensor->axis_align.clip_y_high) in rmi_2d_sensor_set_input_params()
153 sensor->axis_align.clip_y_high); in rmi_2d_sensor_set_input_params()
159 if (sensor->axis_align.swap_axes) in rmi_2d_sensor_set_input_params()
167 if (sensor->axis_align.swap_axes) in rmi_2d_sensor_set_input_params()
231 pdata->axis_align.swap_axes = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe()
234 pdata->axis_align.flip_x = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe()
237 pdata->axis_align.flip_y = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe()
244 pdata->axis_align.clip_x_low = val; in rmi_2d_sensor_of_probe()
250 pdata->axis_align.clip_y_low = val; in rmi_2d_sensor_of_probe()
256 pdata->axis_align.clip_x_high = val; in rmi_2d_sensor_of_probe()
262 pdata->axis_align.clip_y_high = val; in rmi_2d_sensor_of_probe()
268 pdata->axis_align.offset_x = val; in rmi_2d_sensor_of_probe()
274 pdata->axis_align.offset_y = val; in rmi_2d_sensor_of_probe()
281 pdata->axis_align.delta_x_threshold = val; in rmi_2d_sensor_of_probe()
288 pdata->axis_align.delta_y_threshold = val; in rmi_2d_sensor_of_probe()