Lines Matching refs:vbatreg_reg_code
546 unsigned int vbatreg_reg_code; in bq25618_619_get_chrg_volt() local
555 vbatreg_reg_code = (battery_volt_lim & BQ256XX_VBATREG_MASK) >> in bq25618_619_get_chrg_volt()
558 if (vbatreg_reg_code > BQ2561X_VBATREG_THRESH) in bq25618_619_get_chrg_volt()
559 return ((vbatreg_reg_code - BQ2561X_VBATREG_THRESH) * in bq25618_619_get_chrg_volt()
563 return bq25618_619_vbatreg_values[vbatreg_reg_code]; in bq25618_619_get_chrg_volt()
569 unsigned int vbatreg_reg_code; in bq25611d_get_chrg_volt() local
577 vbatreg_reg_code = (battery_volt_lim & BQ256XX_VBATREG_MASK) >> in bq25611d_get_chrg_volt()
580 if (vbatreg_reg_code > BQ2561X_VBATREG_THRESH) in bq25611d_get_chrg_volt()
581 return ((vbatreg_reg_code - BQ2561X_VBATREG_THRESH) * in bq25611d_get_chrg_volt()
585 return bq25611d_vbatreg_values[vbatreg_reg_code]; in bq25611d_get_chrg_volt()
591 unsigned int vbatreg_reg_code; in bq2560x_get_chrg_volt() local
599 vbatreg_reg_code = (battery_volt_lim & BQ256XX_VBATREG_MASK) >> in bq2560x_get_chrg_volt()
602 return (vbatreg_reg_code * BQ2560X_VBATREG_STEP_uV) in bq2560x_get_chrg_volt()
609 unsigned int vbatreg_reg_code; in bq25601d_get_chrg_volt() local
617 vbatreg_reg_code = (battery_volt_lim & BQ256XX_VBATREG_MASK) >> in bq25601d_get_chrg_volt()
620 return (vbatreg_reg_code * BQ2560X_VBATREG_STEP_uV) in bq25601d_get_chrg_volt()
627 unsigned int vbatreg_reg_code; in bq25618_619_set_chrg_volt() local
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()
642 BQ256XX_VBATREG_MASK, vbatreg_reg_code << in bq25618_619_set_chrg_volt()
649 unsigned int vbatreg_reg_code; in bq25611d_set_chrg_volt() local
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()
664 BQ256XX_VBATREG_MASK, vbatreg_reg_code << in bq25611d_set_chrg_volt()
670 unsigned int vbatreg_reg_code; in bq2560x_set_chrg_volt() local
675 vbatreg_reg_code = (vbatreg - BQ2560X_VBATREG_OFFSET_uV) / in bq2560x_set_chrg_volt()
679 BQ256XX_VBATREG_MASK, vbatreg_reg_code << in bq2560x_set_chrg_volt()
685 unsigned int vbatreg_reg_code; in bq25601d_set_chrg_volt() local
690 vbatreg_reg_code = (vbatreg - BQ25601D_VBATREG_OFFSET_uV) / in bq25601d_set_chrg_volt()
694 BQ256XX_VBATREG_MASK, vbatreg_reg_code << in bq25601d_set_chrg_volt()