Lines Matching full:vbatt
270 static void stop_charge(struct pm860x_charger_info *info, int vbatt) in stop_charge() argument
274 if (vbatt > CHARGE_THRESHOLD && info->online) in stop_charge()
291 int vbatt; in set_charging_fsm() local
302 vbatt = data.intval / 1000; in set_charging_fsm()
319 dev_dbg(info->dev, "set_charging_fsm:vbatt:%d(mV)\n", vbatt); in set_charging_fsm()
324 if (vbatt < PRECHARGE_THRESHOLD) { in set_charging_fsm()
327 } else if (vbatt > DISCHARGE_THRESHOLD) { in set_charging_fsm()
329 stop_charge(info, vbatt); in set_charging_fsm()
330 } else if (vbatt < DISCHARGE_THRESHOLD) { in set_charging_fsm()
335 if (vbatt < POWEROFF_THRESHOLD) { in set_charging_fsm()
339 stop_charge(info, vbatt); in set_charging_fsm()
345 if (vbatt > PRECHARGE_THRESHOLD) { in set_charging_fsm()
351 stop_charge(info, vbatt); in set_charging_fsm()
356 if (vbatt < PRECHARGE_THRESHOLD) { in set_charging_fsm()
362 stop_charge(info, vbatt); in set_charging_fsm()
367 if (vbatt < PRECHARGE_THRESHOLD) { in set_charging_fsm()
370 } else if (vbatt < DISCHARGE_THRESHOLD) { in set_charging_fsm()
375 if (vbatt < POWEROFF_THRESHOLD) in set_charging_fsm()
377 else if (vbatt > CHARGE_THRESHOLD && info->online) in set_charging_fsm()
475 int vbatt; in pm860x_done_handler() local
496 vbatt = val.intval / 1000; in pm860x_done_handler()
507 if (vbatt > CHARGE_THRESHOLD && ret & STATUS2_CHG) in pm860x_done_handler()
651 { "vbatt", pm860x_vbattery_handler },