Lines Matching refs:sensor_val
168 if (ad714x->sensor_val[i] > max_res) { in ad714x_cal_highest_stage()
169 max_res = ad714x->sensor_val[i]; in ad714x_cal_highest_stage()
184 a_param = ad714x->sensor_val[start_stage + 1]; in ad714x_cal_abs_pos()
185 b_param = ad714x->sensor_val[start_stage] + in ad714x_cal_abs_pos()
186 ad714x->sensor_val[start_stage + 1]; in ad714x_cal_abs_pos()
188 a_param = ad714x->sensor_val[end_stage] * in ad714x_cal_abs_pos()
190 ad714x->sensor_val[end_stage - 1] * in ad714x_cal_abs_pos()
192 b_param = ad714x->sensor_val[end_stage] + in ad714x_cal_abs_pos()
193 ad714x->sensor_val[end_stage - 1]; in ad714x_cal_abs_pos()
195 a_param = ad714x->sensor_val[highest_stage] * in ad714x_cal_abs_pos()
197 ad714x->sensor_val[highest_stage - 1] * in ad714x_cal_abs_pos()
199 ad714x->sensor_val[highest_stage + 1] * in ad714x_cal_abs_pos()
201 b_param = ad714x->sensor_val[highest_stage] + in ad714x_cal_abs_pos()
202 ad714x->sensor_val[highest_stage - 1] + in ad714x_cal_abs_pos()
203 ad714x->sensor_val[highest_stage + 1]; in ad714x_cal_abs_pos()
261 ad714x->sensor_val[i] = in ad714x_slider_cal_sensor_val()
433 ad714x->sensor_val[i] = in ad714x_wheel_cal_sensor_val()
436 ad714x->sensor_val[i] = 0; in ad714x_wheel_cal_sensor_val()
461 a_param = ad714x->sensor_val[highest] * in ad714x_wheel_cal_abs_pos()
463 ad714x->sensor_val[first_before] * in ad714x_wheel_cal_abs_pos()
465 ad714x->sensor_val[first_after] * in ad714x_wheel_cal_abs_pos()
467 b_param = ad714x->sensor_val[highest] + in ad714x_wheel_cal_abs_pos()
468 ad714x->sensor_val[first_before] + in ad714x_wheel_cal_abs_pos()
469 ad714x->sensor_val[first_after]; in ad714x_wheel_cal_abs_pos()
587 ad714x->sensor_val[i] = in touchpad_cal_sensor_val()
590 ad714x->sensor_val[i] = 0; in touchpad_cal_sensor_val()
622 if ((ad714x->sensor_val[i] - ad714x->sensor_val[i + 1]) in touchpad_check_second_peak()
623 > (ad714x->sensor_val[i + 1] / 10)) in touchpad_check_second_peak()
628 if ((ad714x->sensor_val[i + 1] - ad714x->sensor_val[i]) in touchpad_check_second_peak()
629 > (ad714x->sensor_val[i] / 10)) in touchpad_check_second_peak()
634 if ((ad714x->sensor_val[i] - ad714x->sensor_val[i + 1]) in touchpad_check_second_peak()
635 > (ad714x->sensor_val[i + 1] / 10)) in touchpad_check_second_peak()
640 if ((ad714x->sensor_val[i + 1] - ad714x->sensor_val[i]) in touchpad_check_second_peak()
641 > (ad714x->sensor_val[i] / 10)) in touchpad_check_second_peak()
706 percent_sensor_diff = (ad714x->sensor_val[hw->x_start_stage] - in touchpad_check_endpoint()
707 ad714x->sensor_val[hw->x_start_stage + 1]) * 100 / in touchpad_check_endpoint()
708 ad714x->sensor_val[hw->x_start_stage + 1]; in touchpad_check_endpoint()
713 ad714x->sensor_val[hw->x_start_stage + 1]; in touchpad_check_endpoint()
717 (ad714x->sensor_val[hw->x_start_stage + 1] > in touchpad_check_endpoint()
723 percent_sensor_diff = (ad714x->sensor_val[hw->x_end_stage] - in touchpad_check_endpoint()
724 ad714x->sensor_val[hw->x_end_stage - 1]) * 100 / in touchpad_check_endpoint()
725 ad714x->sensor_val[hw->x_end_stage - 1]; in touchpad_check_endpoint()
730 ad714x->sensor_val[hw->x_end_stage - 1]; in touchpad_check_endpoint()
734 (ad714x->sensor_val[hw->x_end_stage - 1] > in touchpad_check_endpoint()
740 percent_sensor_diff = (ad714x->sensor_val[hw->y_start_stage] - in touchpad_check_endpoint()
741 ad714x->sensor_val[hw->y_start_stage + 1]) * 100 / in touchpad_check_endpoint()
742 ad714x->sensor_val[hw->y_start_stage + 1]; in touchpad_check_endpoint()
747 ad714x->sensor_val[hw->y_start_stage + 1]; in touchpad_check_endpoint()
751 (ad714x->sensor_val[hw->y_start_stage + 1] > in touchpad_check_endpoint()
757 percent_sensor_diff = (ad714x->sensor_val[hw->y_end_stage] - in touchpad_check_endpoint()
758 ad714x->sensor_val[hw->y_end_stage - 1]) * 100 / in touchpad_check_endpoint()
759 ad714x->sensor_val[hw->y_end_stage - 1]; in touchpad_check_endpoint()
764 ad714x->sensor_val[hw->y_end_stage - 1]; in touchpad_check_endpoint()
768 (ad714x->sensor_val[hw->y_end_stage - 1] > in touchpad_check_endpoint()