Searched refs:ichg_reg_code (Results 1 – 2 of 2) sorted by relevance
480 unsigned int ichg_reg_code; in bq256xx_get_ichg_curr() local488 ichg_reg_code = charge_current_limit & BQ256XX_ICHG_MASK; in bq256xx_get_ichg_curr()490 return ichg_reg_code * BQ256XX_ICHG_STEP_uA; in bq256xx_get_ichg_curr()496 unsigned int ichg_reg_code; in bq25618_619_get_ichg_curr() local504 ichg_reg_code = charge_current_limit & BQ256XX_ICHG_MASK; in bq25618_619_get_ichg_curr()506 if (ichg_reg_code < BQ25618_ICHG_THRESH) in bq25618_619_get_ichg_curr()507 return ichg_reg_code * BQ25618_ICHG_STEP_uA; in bq25618_619_get_ichg_curr()509 return bq25618_619_ichg_values[ichg_reg_code - BQ25618_ICHG_THRESH]; in bq25618_619_get_ichg_curr()514 unsigned int ichg_reg_code; in bq256xx_set_ichg_curr() local518 ichg_reg_code = ichg / BQ256XX_ICHG_STEP_uA; in bq256xx_set_ichg_curr()[all …]
368 unsigned int ichg_reg_code, reg_code; in bq2515x_get_battery_current_now() local403 &ichg_reg_code); in bq2515x_get_battery_current_now()407 reg_code = ichg_reg_code; in bq2515x_get_battery_current_now()456 unsigned int ichg_reg_code; in bq2515x_get_const_charge_current() local460 ret = regmap_read(bq2515x->regmap, BQ2515X_ICHG_CTRL, &ichg_reg_code); in bq2515x_get_const_charge_current()473 return ichg_reg_code * ichg_multiplier; in bq2515x_get_const_charge_current()480 unsigned int ichg_reg_code; in bq2515x_set_const_charge_current() local499 ichg_reg_code = val / ichg_multiplier; in bq2515x_set_const_charge_current()501 ret = regmap_write(bq2515x->regmap, BQ2515X_ICHG_CTRL, ichg_reg_code); in bq2515x_set_const_charge_current()