Lines Matching refs:high
529 int high, low, mid; in rk_tsadcv2_temp_to_code() local
535 high = (table->length - 1) - 1; /* ignore the last check for table */ in rk_tsadcv2_temp_to_code()
536 mid = (high + low) / 2; in rk_tsadcv2_temp_to_code()
539 if (temp < table->id[low].temp || temp > table->id[high].temp) in rk_tsadcv2_temp_to_code()
542 while (low <= high) { in rk_tsadcv2_temp_to_code()
546 high = mid - 1; in rk_tsadcv2_temp_to_code()
549 mid = (low + high) / 2; in rk_tsadcv2_temp_to_code()
582 unsigned int high = table->length - 1; in rk_tsadcv2_code_to_temp() local
583 unsigned int mid = (low + high) / 2; in rk_tsadcv2_code_to_temp()
592 if (code <= table->id[high].code) in rk_tsadcv2_code_to_temp()
595 while (low <= high) { in rk_tsadcv2_code_to_temp()
602 high = mid - 1; in rk_tsadcv2_code_to_temp()
604 mid = (low + high) / 2; in rk_tsadcv2_code_to_temp()
612 while (low <= high) { in rk_tsadcv2_code_to_temp()
619 high = mid - 1; in rk_tsadcv2_code_to_temp()
621 mid = (low + high) / 2; in rk_tsadcv2_code_to_temp()
1214 static int rockchip_thermal_set_trips(void *_sensor, int low, int high) in rockchip_thermal_set_trips() argument
1221 __func__, sensor->id, low, high); in rockchip_thermal_set_trips()
1224 sensor->id, thermal->regs, high); in rockchip_thermal_set_trips()