Home
last modified time | relevance | path

Searched refs:power_unit (Results 1 – 4 of 4) sorted by relevance

/drivers/acpi/
Dbattery.c133 int power_unit; member
396 {offsetof(struct acpi_battery, power_unit), 0},
413 {offsetof(struct acpi_battery, power_unit), 0},
499 battery->power_unit && battery->design_voltage) { in extract_battery_info()
598 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA && in acpi_battery_get_state()
610 battery->power_unit && battery->design_voltage) { in acpi_battery_get_state()
828 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA) { in sysfs_add_battery()
932 if (battery->power_unit && dmi_name_in_vendors("LENOVO")) { in acpi_battery_quirks()
1014 int power_unit; in acpi_battery_refresh() local
1019 power_unit = battery->power_unit; in acpi_battery_refresh()
[all …]
/drivers/power/supply/
Dsurface_battery.c51 __le32 power_unit; member
300 unit = get_unaligned_le32(&bat->bix.power_unit); in spwr_battery_recheck_full()
321 WARN_ON(unit != get_unaligned_le32(&bat->bix.power_unit)); in spwr_battery_recheck_full()
781 switch (get_unaligned_le32(&bat->bix.power_unit)) { in spwr_battery_register()
794 get_unaligned_le32(&bat->bix.power_unit)); in spwr_battery_register()
/drivers/powercap/
Dintel_rapl_common.c608 units = rp->power_unit; in rapl_unit_xlate()
791 rp->power_unit = 1000000 / (1 << value); in rapl_check_unit_core()
797 rp->name, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_core()
819 rp->power_unit = (1 << value) * 1000; in rapl_check_unit_atom()
825 rp->name, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_atom()
/drivers/platform/surface/
Dsurface3_power.c68 u32 power_unit; member
187 .power_unit = 0x01,