Lines Matching refs:clamp
492 ichg = clamp(ichg, BQ256XX_ICHG_MIN_uA, ichg_max); in bq256xx_set_ichg_curr()
505 ichg = clamp(ichg, BQ25618_ICHG_MIN_uA, ichg_max); in bq25618_619_set_ichg_curr()
605 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
627 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
648 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
663 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
695 iprechg = clamp(iprechg, BQ256XX_IPRECHG_MIN_uA, in bq256xx_set_prechrg_curr()
727 iprechg = clamp(iprechg, BQ25618_IPRECHG_MIN_uA, in bq25618_619_set_prechrg_curr()
758 iterm = clamp(iterm, BQ256XX_ITERM_MIN_uA, BQ256XX_ITERM_MAX_uA); in bq256xx_set_term_curr()
788 iterm = clamp(iterm, BQ25618_ITERM_MIN_uA, BQ25618_ITERM_MAX_uA); in bq25618_619_set_term_curr()
818 vindpm = clamp(vindpm, BQ256XX_VINDPM_MIN_uV, BQ256XX_VINDPM_MAX_uV); in bq256xx_set_input_volt_lim()
848 iindpm = clamp(iindpm, BQ256XX_IINDPM_MIN_uA, BQ256XX_IINDPM_MAX_uA); in bq256xx_set_input_curr_lim()