Lines Matching refs:design_capacity
106 int design_capacity; member
170 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged()
180 ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity) && in acpi_battery_is_degraded()
181 battery->full_charge_capacity < battery->design_capacity; in acpi_battery_is_degraded()
251 if (!ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in acpi_battery_get_property()
254 val->intval = battery->design_capacity * 1000; in acpi_battery_get_property()
273 else if (ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in acpi_battery_get_property()
274 full_capacity = battery->design_capacity; in acpi_battery_get_property()
388 {offsetof(struct acpi_battery, design_capacity), 0},
405 {offsetof(struct acpi_battery, design_capacity), 0},
488 battery->full_charge_capacity = battery->design_capacity; in extract_battery_info()
491 battery->design_capacity = battery->design_capacity * in extract_battery_info()
816 !ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in sysfs_add_battery()
886 if (battery->design_capacity * battery->design_voltage / 1000 in find_battery()
888 battery->design_capacity * 10 == dmi_capacity) in find_battery()
915 battery->full_charge_capacity = battery->design_capacity; in acpi_battery_quirks()
932 battery->design_capacity = in acpi_battery_quirks()
933 battery->design_capacity * in acpi_battery_quirks()