Home
last modified time | relevance | path

Searched refs:vbatt (Results 1 – 5 of 5) sorted by relevance

/drivers/power/supply/
D88pm860x_charger.c270 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()
[all …]
Dlp8788-charger.c255 int vbatt; in lp8788_get_battery_capacity() local
276 ret = lp8788_get_vbatt_adc(pchg, &vbatt); in lp8788_get_battery_capacity()
280 val->intval = (vbatt * LP8788_MAX_BATT_CAPACITY) / max_vbatt; in lp8788_get_battery_capacity()
Dmax17042_battery.c176 int temp, vavg, vbatt, ret; in max17042_get_battery_health() local
193 vbatt = val * 625 / 8; in max17042_get_battery_health()
195 vbatt /= 1000; in max17042_get_battery_health()
202 if (vbatt > chip->pdata->vmax + MAX17042_VMAX_TOLERANCE) { in max17042_get_battery_health()
/drivers/mfd/
Ducb1x00-assabet.c33 UCB1X00_ATTR(vbatt, UCB_ADC_INP_AD1);
/drivers/input/touchscreen/
Dads7846.c521 SHOW(in1_input, vbatt, vbatt_adjust) in SHOW()