Lines Matching refs:charge_current
392 int charge_current) in axp20x_set_constant_charge_current() argument
394 if (charge_current > axp_batt->max_ccc) in axp20x_set_constant_charge_current()
397 charge_current = (charge_current - axp_batt->data->ccc_offset) / in axp20x_set_constant_charge_current()
400 if (charge_current > AXP20X_CHRG_CTRL1_TGT_CURR || charge_current < 0) in axp20x_set_constant_charge_current()
404 AXP20X_CHRG_CTRL1_TGT_CURR, charge_current); in axp20x_set_constant_charge_current()
408 int charge_current) in axp20x_set_max_constant_charge_current() argument
412 charge_current = (charge_current - axp->data->ccc_offset) / in axp20x_set_max_constant_charge_current()
415 if (charge_current > AXP20X_CHRG_CTRL1_TGT_CURR || charge_current < 0) in axp20x_set_max_constant_charge_current()
418 charge_current = charge_current * axp->data->ccc_scale + in axp20x_set_max_constant_charge_current()
421 if (charge_current > axp->max_ccc) in axp20x_set_max_constant_charge_current()
427 axp->max_ccc = charge_current; in axp20x_set_max_constant_charge_current()
433 if (current_cc > charge_current) in axp20x_set_max_constant_charge_current()
434 axp20x_set_constant_charge_current(axp, charge_current); in axp20x_set_max_constant_charge_current()