Searched refs:ichg_reg_code (Results 1 - 2 of 2) sorted by relevance

/linux-master/drivers/power/supply/
H A Dbq256xx_charger.c488 unsigned int ichg_reg_code; local
496 ichg_reg_code = charge_current_limit & BQ256XX_ICHG_MASK;
498 return ichg_reg_code * BQ256XX_ICHG_STEP_uA;
504 unsigned int ichg_reg_code; local
512 ichg_reg_code = charge_current_limit & BQ256XX_ICHG_MASK;
514 if (ichg_reg_code < BQ25618_ICHG_THRESH)
515 return ichg_reg_code * BQ25618_ICHG_STEP_uA;
517 return bq25618_619_ichg_values[ichg_reg_code - BQ25618_ICHG_THRESH];
522 unsigned int ichg_reg_code; local
526 ichg_reg_code
535 unsigned int ichg_reg_code; local
[all...]
H A Dbq2515x_charger.c368 unsigned int ichg_reg_code, reg_code; local
403 &ichg_reg_code);
407 reg_code = ichg_reg_code;
456 unsigned int ichg_reg_code; local
460 ret = regmap_read(bq2515x->regmap, BQ2515X_ICHG_CTRL, &ichg_reg_code);
473 return ichg_reg_code * ichg_multiplier;
480 unsigned int ichg_reg_code; local
499 ichg_reg_code = val / ichg_multiplier;
501 ret = regmap_write(bq2515x->regmap, BQ2515X_ICHG_CTRL, ichg_reg_code);

Completed in 301 milliseconds