Lines Matching refs:bm
250 struct abx500_bm_data *bm; member
357 di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, in abx500_chargalg_check_charger_enable()
358 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); in abx500_chargalg_check_charger_enable()
362 di->bm->bat_type[di->bm->batt_id].normal_vol_lvl, in abx500_chargalg_check_charger_enable()
363 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); in abx500_chargalg_check_charger_enable()
442 timer_expiration = di->bm->main_safety_tmr_h; in abx500_chargalg_start_safety_timer()
446 timer_expiration = di->bm->usb_safety_tmr_h; in abx500_chargalg_start_safety_timer()
724 if (di->batt_data.temp > (di->bm->temp_low + di->t_hyst_norm) && in abx500_chargalg_check_temp()
725 di->batt_data.temp < (di->bm->temp_high - di->t_hyst_norm)) { in abx500_chargalg_check_temp()
732 if (((di->batt_data.temp >= di->bm->temp_high) && in abx500_chargalg_check_temp()
734 (di->bm->temp_over - di->t_hyst_lowhigh))) || in abx500_chargalg_check_temp()
736 (di->bm->temp_under + di->t_hyst_lowhigh)) && in abx500_chargalg_check_temp()
737 (di->batt_data.temp <= di->bm->temp_low))) { in abx500_chargalg_check_temp()
741 di->t_hyst_norm = di->bm->temp_hysteresis; in abx500_chargalg_check_temp()
743 } else if (di->batt_data.temp <= di->bm->temp_under || in abx500_chargalg_check_temp()
744 di->batt_data.temp >= di->bm->temp_over) { in abx500_chargalg_check_temp()
749 di->t_hyst_lowhigh = di->bm->temp_hysteresis; in abx500_chargalg_check_temp()
768 if (di->chg_info.usb_volt > di->bm->chg_params->usb_volt_max) in abx500_chargalg_check_charger_voltage()
773 if (di->chg_info.ac_volt > di->bm->chg_params->ac_volt_max) in abx500_chargalg_check_charger_voltage()
793 di->bm->bat_type[di->bm->batt_id].termination_vol || in abx500_chargalg_end_of_charge()
796 di->bm->bat_type[di->bm->batt_id].termination_curr && in abx500_chargalg_end_of_charge()
819 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl; in init_maxim_chg_curr()
821 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl; in init_maxim_chg_curr()
822 di->ccm.test_delta_i = di->bm->maxi->charger_curr_step; in init_maxim_chg_curr()
823 di->ccm.max_current = di->bm->maxi->chg_curr; in init_maxim_chg_curr()
824 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in init_maxim_chg_curr()
841 if (!di->bm->maxi->ena_maxi) in abx500_chargalg_chg_curr_maxim()
852 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in abx500_chargalg_chg_curr_maxim()
877 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in abx500_chargalg_chg_curr_maxim()
889 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in abx500_chargalg_chg_curr_maxim()
904 di->ccm.condition_cnt = di->bm->maxi->wait_cycles; in abx500_chargalg_chg_curr_maxim()
924 di->bm->bat_type[di->bm->batt_id].normal_cur_lvl); in handle_maxim_chg_curr()
1317 (di->events.batt_unknown && !di->bm->chg_unknown_bat)) { in abx500_chargalg_algorithm()
1503 curr_step_lvl = di->bm->bat_type[ in abx500_chargalg_algorithm()
1504 di->bm->batt_id].normal_cur_lvl in abx500_chargalg_algorithm()
1508 di->bm->bat_type[di->bm->batt_id] in abx500_chargalg_algorithm()
1527 if (di->bm->no_maintenance) in abx500_chargalg_algorithm()
1544 di->bm->bat_type[di->bm->batt_id]. in abx500_chargalg_algorithm()
1552 di->bm->bat_type[ in abx500_chargalg_algorithm()
1553 di->bm->batt_id].maint_a_chg_timer_h); in abx500_chargalg_algorithm()
1555 di->bm->bat_type[ in abx500_chargalg_algorithm()
1556 di->bm->batt_id].maint_a_vol_lvl, in abx500_chargalg_algorithm()
1557 di->bm->bat_type[ in abx500_chargalg_algorithm()
1558 di->bm->batt_id].maint_a_cur_lvl); in abx500_chargalg_algorithm()
1572 di->bm->bat_type[ in abx500_chargalg_algorithm()
1573 di->bm->batt_id].maint_b_chg_timer_h); in abx500_chargalg_algorithm()
1575 di->bm->bat_type[ in abx500_chargalg_algorithm()
1576 di->bm->batt_id].maint_b_vol_lvl, in abx500_chargalg_algorithm()
1577 di->bm->bat_type[ in abx500_chargalg_algorithm()
1578 di->bm->batt_id].maint_b_cur_lvl); in abx500_chargalg_algorithm()
1592 di->bm->bat_type[ in abx500_chargalg_algorithm()
1593 di->bm->batt_id].low_high_vol_lvl, in abx500_chargalg_algorithm()
1594 di->bm->bat_type[ in abx500_chargalg_algorithm()
1595 di->bm->batt_id].low_high_cur_lvl); in abx500_chargalg_algorithm()
1656 di->bm->interval_charging * HZ); in abx500_chargalg_periodic_work()
1660 di->bm->interval_not_charging * HZ); in abx500_chargalg_periodic_work()
1725 if (di->batt_data.temp <= di->bm->temp_under) in abx500_chargalg_get_property()
2004 di->bm = plat; in abx500_chargalg_probe()
2007 ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm); in abx500_chargalg_probe()