Lines Matching refs:design_capacity
118 int design_capacity; member
182 if (battery->design_capacity <= battery->capacity_now) in acpi_battery_is_charged()
192 ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity) && in acpi_battery_is_degraded()
193 battery->full_charge_capacity < battery->design_capacity; in acpi_battery_is_degraded()
265 if (!ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in acpi_battery_get_property()
268 val->intval = battery->design_capacity * 1000; in acpi_battery_get_property()
287 else if (ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in acpi_battery_get_property()
288 full_capacity = battery->design_capacity; in acpi_battery_get_property()
404 {offsetof(struct acpi_battery, design_capacity), 0},
421 {offsetof(struct acpi_battery, design_capacity), 0},
501 battery->full_charge_capacity = battery->design_capacity; in extract_battery_info()
504 battery->design_capacity = battery->design_capacity * in extract_battery_info()
819 !ACPI_BATTERY_CAPACITY_VALID(battery->design_capacity)) in sysfs_add_battery()
887 if (battery->design_capacity * battery->design_voltage / 1000 in find_battery()
889 battery->design_capacity * 10 == dmi_capacity) in find_battery()
916 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()