Lines Matching full:threshold
81 #define TEMP_THRESH_STEP 5000 /* Threshold step: 5 C */
89 * For TEMP_GEN2 v2.0, TEMP_DAC_STG1/2/3 registers are used to set the threshold
109 * configured threshold temperatures.
247 * current thermal stage and threshold as well as the previous stage
315 u8 reg, threshold; in qpnp_tm_update_critical_trip_temp() local
321 * lowest threshold set, monitoring at 25Hz in qpnp_tm_update_critical_trip_temp()
327 threshold = THRESH_MIN; in qpnp_tm_update_critical_trip_temp()
332 threshold = THRESH_MAX - in qpnp_tm_update_critical_trip_temp()
337 threshold = THRESH_MAX; in qpnp_tm_update_critical_trip_temp()
343 …"No ADC is configured and critical temperature %d mC is above the maximum stage 2 threshold of %ld… in qpnp_tm_update_critical_trip_temp()
348 memcpy(chip->temp_thresh_map, chip->data->temp_map[threshold], in qpnp_tm_update_critical_trip_temp()
350 reg |= threshold; in qpnp_tm_update_critical_trip_temp()
448 * a controlled shutdown after the warning threshold is crossed in qpnp_tm_lite_set_temp_thresh()
449 * but before the automatic hardware shutdown threshold is in qpnp_tm_lite_set_temp_thresh()
527 /* Read the hardware default stage threshold temperatures */
530 u8 reg, threshold; in qpnp_tm_sync_thresholds() local
537 threshold = reg & SHUTDOWN_CTRL1_THRESHOLD_MASK; in qpnp_tm_sync_thresholds()
538 memcpy(chip->temp_thresh_map, chip->data->temp_map[threshold], in qpnp_tm_sync_thresholds()
586 dev_err(chip->dev, "Threshold %d=%ld <= threshold %d=%ld\n", in qpnp_tm_gen2_rev2_configure_trip_temps()
596 /* Read the hardware default TEMP_DAC stage threshold temperatures */
638 dev_err(chip->dev, "Threshold 2=%ld <= threshold 0=%ld\n", in qpnp_tm_lite_configure_trip_temps()
646 /* Read the hardware default TEMP_LITE stage threshold temperatures */
655 * to facilitate a controlled shutdown after the warning threshold is in qpnp_tm_lite_sync_thresholds()
656 * crossed but before the automatic hardware shutdown threshold is in qpnp_tm_lite_sync_thresholds()
717 * current thermal stage and threshold.
739 /* This function initializes threshold control and disables shutdown override. */
860 return dev_err_probe(&pdev->dev, ret, "threshold init failed\n"); in qpnp_tm_probe()