Home
last modified time | relevance | path

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

/drivers/acpi/
Dbattery.c111 int capacity_now; member
168 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN || in acpi_battery_is_charged()
169 battery->capacity_now == 0) in acpi_battery_is_charged()
173 if (battery->full_charge_capacity == battery->capacity_now) in acpi_battery_is_charged()
177 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged()
274 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN) in acpi_battery_get_property()
277 val->intval = battery->capacity_now * 1000; in acpi_battery_get_property()
285 if (battery->capacity_now == ACPI_BATTERY_VALUE_UNKNOWN || in acpi_battery_get_property()
289 val->intval = battery->capacity_now * 100/ in acpi_battery_get_property()
296 (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)},