Lines Matching full:ccm
207 * @ccm charging current maximization parameters
231 struct ab8500_charge_curr_maximization ccm; member
756 di->ccm.original_iset_ua = bi->constant_charge_current_max_ua; in init_maxim_chg_curr()
757 di->ccm.current_iset_ua = bi->constant_charge_current_max_ua; in init_maxim_chg_curr()
758 di->ccm.max_current_ua = di->bm->maxi->chg_curr_ua; in init_maxim_chg_curr()
759 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in init_maxim_chg_curr()
760 di->ccm.level = 0; in init_maxim_chg_curr()
780 di->ccm.wait_cnt); in ab8500_chargalg_chg_curr_maxim()
781 if (di->ccm.wait_cnt == 0) { in ab8500_chargalg_chg_curr_maxim()
783 di->ccm.wait_cnt++; in ab8500_chargalg_chg_curr_maxim()
784 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in ab8500_chargalg_chg_curr_maxim()
785 di->ccm.max_current_ua = di->ccm.current_iset_ua; in ab8500_chargalg_chg_curr_maxim()
786 di->ccm.current_iset_ua = di->ccm.max_current_ua; in ab8500_chargalg_chg_curr_maxim()
787 di->ccm.level--; in ab8500_chargalg_chg_curr_maxim()
792 di->ccm.wait_cnt = (di->ccm.wait_cnt + 1) % 3; in ab8500_chargalg_chg_curr_maxim()
797 di->ccm.wait_cnt = 0; in ab8500_chargalg_chg_curr_maxim()
799 if (di->batt_data.inst_curr_ua > di->ccm.original_iset_ua) { in ab8500_chargalg_chg_curr_maxim()
802 di->batt_data.inst_curr_ua, di->ccm.original_iset_ua, in ab8500_chargalg_chg_curr_maxim()
803 di->ccm.current_iset_ua); in ab8500_chargalg_chg_curr_maxim()
805 if (di->ccm.current_iset_ua == di->ccm.original_iset_ua) in ab8500_chargalg_chg_curr_maxim()
808 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in ab8500_chargalg_chg_curr_maxim()
809 di->ccm.current_iset_ua = di->ccm.original_iset_ua; in ab8500_chargalg_chg_curr_maxim()
810 di->ccm.level = 0; in ab8500_chargalg_chg_curr_maxim()
815 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in ab8500_chargalg_chg_curr_maxim()
829 di->ccm.current_iset_ua); in handle_maxim_chg_curr()