Lines Matching refs:ichg_reg_code
480 unsigned int ichg_reg_code; in bq256xx_get_ichg_curr() local
488 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() local
504 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() local
518 ichg_reg_code = ichg / BQ256XX_ICHG_STEP_uA; in bq256xx_set_ichg_curr()
521 BQ256XX_ICHG_MASK, ichg_reg_code); in bq256xx_set_ichg_curr()
527 unsigned int ichg_reg_code; in bq25618_619_set_ichg_curr() local
533 ichg_reg_code = ichg / BQ25618_ICHG_STEP_uA; in bq25618_619_set_ichg_curr()
535 ichg_reg_code = bq256xx_array_parse(array_size, ichg, in bq25618_619_set_ichg_curr()
540 BQ256XX_ICHG_MASK, ichg_reg_code); in bq25618_619_set_ichg_curr()