Lines Matching refs:thresholds

100 	struct da9030_battery_thresholds thresholds;  member
247 charger->thresholds.vbat_charge_start)) { in da9030_charger_check_state()
258 charger->thresholds.vbat_charge_stop) { in da9030_charger_check_state()
261 charger->thresholds.vbat_charge_restart); in da9030_charger_check_state()
263 charger->thresholds.vbat_low) { in da9030_charger_check_state()
268 charger->thresholds.vbat_low); in da9030_charger_check_state()
270 if (charger->adc.vchmax_res > charger->thresholds.vcharge_max || in da9030_charger_check_state()
271 charger->adc.vchmin_res < charger->thresholds.vcharge_min || in da9030_charger_check_state()
273 charger->adc.tbat_res < charger->thresholds.tbat_high || in da9030_charger_check_state()
274 charger->adc.tbat_res > charger->thresholds.tbat_low) { in da9030_charger_check_state()
374 if (charger->adc.vbat_res < charger->thresholds.vbat_low) { in da9030_battery_vbat_event()
377 charger->thresholds.vbat_crit); in da9030_battery_vbat_event()
381 charger->thresholds.vbat_crit) { in da9030_battery_vbat_event()
414 charger->thresholds.tbat_low = pdata->tbat_low; in da9030_battery_convert_thresholds()
415 charger->thresholds.tbat_high = pdata->tbat_high; in da9030_battery_convert_thresholds()
416 charger->thresholds.tbat_restart = pdata->tbat_restart; in da9030_battery_convert_thresholds()
418 charger->thresholds.vbat_low = in da9030_battery_convert_thresholds()
420 charger->thresholds.vbat_crit = in da9030_battery_convert_thresholds()
422 charger->thresholds.vbat_charge_start = in da9030_battery_convert_thresholds()
424 charger->thresholds.vbat_charge_stop = in da9030_battery_convert_thresholds()
426 charger->thresholds.vbat_charge_restart = in da9030_battery_convert_thresholds()
429 charger->thresholds.vcharge_min = in da9030_battery_convert_thresholds()
431 charger->thresholds.vcharge_max = in da9030_battery_convert_thresholds()
454 v[0] = v[1] = charger->thresholds.vbat_low; in da9030_battery_charger_init()
455 v[2] = charger->thresholds.tbat_high; in da9030_battery_charger_init()
456 v[3] = charger->thresholds.tbat_restart; in da9030_battery_charger_init()
457 v[4] = charger->thresholds.tbat_low; in da9030_battery_charger_init()