Home
last modified time | relevance | path

Searched refs:capacity_now (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/acpi/
Dbattery.c104 int capacity_now; member
161 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN || in acpi_battery_is_charged()
162 battery->capacity_now == 0) in acpi_battery_is_charged()
166 if (battery->full_charge_capacity == battery->capacity_now) in acpi_battery_is_charged()
170 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged()
265 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN) in acpi_battery_get_property()
268 val->intval = battery->capacity_now * 1000; in acpi_battery_get_property()
276 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN || in acpi_battery_get_property()
280 val->intval = battery->capacity_now * 100/ in acpi_battery_get_property()
287 (battery->capacity_now <= battery->alarm)) in acpi_battery_get_property()
[all …]
Dsbs.c73 u16 capacity_now; member
226 val->intval = battery->capacity_now * in acpi_sbs_battery_get_property()
322 {0x0f, SMBUS_READ_WORD, offsetof(struct acpi_battery, capacity_now)},