Lines Matching full:thresh
143 /* protects .thresh, .stage and chip registers */
430 u8 reg, thresh; in qpnp_tm_lite_set_temp_thresh() local
466 thresh = 0; in qpnp_tm_lite_set_temp_thresh()
467 temp_cfg = temp_map[thresh]; in qpnp_tm_lite_set_temp_thresh()
470 thresh = i; in qpnp_tm_lite_set_temp_thresh()
486 reg |= FIELD_PREP(LITE_TEMP_CFG_THRESHOLD_MASK, thresh); in qpnp_tm_lite_set_temp_thresh()
649 int ret, thresh; in qpnp_tm_lite_sync_thresholds() local
664 thresh = FIELD_GET(LITE_TEMP_CFG_THRESHOLD_MASK, reg); in qpnp_tm_lite_sync_thresholds()
665 chip->temp_thresh_map[0] = temp_lite_warning_map[thresh]; in qpnp_tm_lite_sync_thresholds()
671 thresh = FIELD_GET(LITE_TEMP_CFG_THRESHOLD_MASK, reg); in qpnp_tm_lite_sync_thresholds()
672 chip->temp_thresh_map[2] = temp_lite_shutdown_map[thresh]; in qpnp_tm_lite_sync_thresholds()