Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
Daxp288_fuel_gauge.c376 static int fuel_gauge_get_vbatt(struct axp288_fg_info *info, int *vbatt) in fuel_gauge_get_vbatt() argument
384 *vbatt = VOLTAGE_FROM_ADC(raw_val); in fuel_gauge_get_vbatt()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-lp8860.txt39 vled-supply = <&vbatt>;
Dleds-lm3692x.txt52 vled-supply = <&vbatt>;
Dleds-lm3697.txt49 vled-supply = <&vbatt>;
/kernel/linux/linux-5.10/drivers/mfd/
Ducb1x00-assabet.c33 UCB1X00_ATTR(vbatt, UCB_ADC_INP_AD1);
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dpxa300-raumfeld-controller.dts11 reg_vbatt: regulator-vbatt {
13 regulator-name = "vbatt-fixed-supply";
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dads7846.c504 SHOW(in1_input, vbatt, vbatt_adjust) in SHOW()