Lines Matching refs:vbatreg

167 	u32 vbatreg;  member
299 int (*bq256xx_set_vbatreg)(struct bq256xx_device *bq, int vbatreg);
632 static int bq25618_619_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25618_619_set_chrg_volt() argument
638 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
640 if (vbatreg > BQ25618_VBATREG_THRESH_uV) in bq25618_619_set_chrg_volt()
641 vbatreg_reg_code = ((vbatreg - in bq25618_619_set_chrg_volt()
645 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25618_619_set_chrg_volt()
654 static int bq25611d_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25611d_set_chrg_volt() argument
660 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
662 if (vbatreg > BQ25611D_VBATREG_THRESH_uV) in bq25611d_set_chrg_volt()
663 vbatreg_reg_code = ((vbatreg - in bq25611d_set_chrg_volt()
667 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25611d_set_chrg_volt()
676 static int bq2560x_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq2560x_set_chrg_volt() argument
681 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
683 vbatreg_reg_code = (vbatreg - BQ2560X_VBATREG_OFFSET_uV) / in bq2560x_set_chrg_volt()
691 static int bq25601d_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25601d_set_chrg_volt() argument
696 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
698 vbatreg_reg_code = (vbatreg - BQ25601D_VBATREG_OFFSET_uV) / in bq25601d_set_chrg_volt()