Lines Matching refs:vbatreg

167 	u32 vbatreg;  member
299 int (*bq256xx_set_vbatreg)(struct bq256xx_device *bq, int vbatreg);
624 static int bq25618_619_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25618_619_set_chrg_volt() argument
630 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
632 if (vbatreg > BQ25618_VBATREG_THRESH_uV) in bq25618_619_set_chrg_volt()
633 vbatreg_reg_code = ((vbatreg - in bq25618_619_set_chrg_volt()
637 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25618_619_set_chrg_volt()
646 static int bq25611d_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25611d_set_chrg_volt() argument
652 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
654 if (vbatreg > BQ25611D_VBATREG_THRESH_uV) in bq25611d_set_chrg_volt()
655 vbatreg_reg_code = ((vbatreg - in bq25611d_set_chrg_volt()
659 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25611d_set_chrg_volt()
668 static int bq2560x_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq2560x_set_chrg_volt() argument
673 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
675 vbatreg_reg_code = (vbatreg - BQ2560X_VBATREG_OFFSET_uV) / in bq2560x_set_chrg_volt()
683 static int bq25601d_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25601d_set_chrg_volt() argument
688 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
690 vbatreg_reg_code = (vbatreg - BQ25601D_VBATREG_OFFSET_uV) / in bq25601d_set_chrg_volt()