Lines Matching refs:batt_data
233 struct ab8500_chargalg_battery_data batt_data; member
655 if (di->batt_data.temp > (bi->temp_alert_min + di->t_hyst_norm) && in ab8500_chargalg_check_temp()
656 di->batt_data.temp < (bi->temp_alert_max - di->t_hyst_norm)) { in ab8500_chargalg_check_temp()
664 if ((di->batt_data.temp >= bi->temp_alert_max) && in ab8500_chargalg_check_temp()
665 (di->batt_data.temp < (bi->temp_max - di->t_hyst_lowhigh))) { in ab8500_chargalg_check_temp()
671 } else if ((di->batt_data.temp > (bi->temp_min + di->t_hyst_lowhigh)) && in ab8500_chargalg_check_temp()
672 (di->batt_data.temp <= bi->temp_alert_min)) { in ab8500_chargalg_check_temp()
678 } else if (di->batt_data.temp <= bi->temp_min || in ab8500_chargalg_check_temp()
679 di->batt_data.temp >= bi->temp_max) { in ab8500_chargalg_check_temp()
690 di->batt_data.temp, di->t_hyst_lowhigh, in ab8500_chargalg_check_temp()
728 !di->maintenance_chg && (di->batt_data.volt_uv >= in ab8500_chargalg_end_of_charge()
731 di->batt_data.avg_curr_ua < in ab8500_chargalg_end_of_charge()
733 di->batt_data.avg_curr_ua > 0) { in ab8500_chargalg_end_of_charge()
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()
870 di->batt_data.percent = ret.intval; in ab8500_chargalg_get_ext_psy_data()
1071 di->batt_data.volt_uv = ret.intval; in ab8500_chargalg_get_ext_psy_data()
1124 di->batt_data.temp = ret.intval / 10; in ab8500_chargalg_get_ext_psy_data()
1136 di->batt_data.inst_curr_ua = ret.intval; in ab8500_chargalg_get_ext_psy_data()
1146 di->batt_data.avg_curr_ua = ret.intval; in ab8500_chargalg_get_ext_psy_data()
1160 di->batt_data.percent = ret.intval; in ab8500_chargalg_get_ext_psy_data()
1202 if (!di->batt_data.volt_uv || !di->batt_data.percent) in ab8500_chargalg_time_to_restart()
1207 if (di->batt_data.volt_uv <= bi->charge_restart_voltage_uv) in ab8500_chargalg_time_to_restart()
1211 if (di->batt_data.percent <= AB8500_RECHARGE_CAP) in ab8500_chargalg_time_to_restart()
1327 di->batt_data.volt_uv, in ab8500_chargalg_algorithm()
1328 di->batt_data.avg_curr_ua, in ab8500_chargalg_algorithm()
1329 di->batt_data.inst_curr_ua, in ab8500_chargalg_algorithm()
1330 di->batt_data.temp, in ab8500_chargalg_algorithm()
1331 di->batt_data.percent, in ab8500_chargalg_algorithm()
1670 if (di->batt_data.temp <= di->bm->bi->temp_min) in ab8500_chargalg_get_property()