Home
last modified time | relevance | path

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

/openbmc/linux/drivers/acpi/
H A Dbattery.c128 int power_unit; member
389 {offsetof(struct acpi_battery, power_unit), 0},
406 {offsetof(struct acpi_battery, power_unit), 0},
501 battery->power_unit && battery->design_voltage) { in extract_battery_info()
600 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA && in acpi_battery_get_state()
612 battery->power_unit && battery->design_voltage) { in acpi_battery_get_state()
848 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA) { in sysfs_add_battery()
951 if (battery->power_unit && dmi_name_in_vendors("LENOVO")) { in acpi_battery_quirks()
1033 int power_unit; in acpi_battery_refresh() local
1038 power_unit = battery->power_unit; in acpi_battery_refresh()
[all …]
/openbmc/u-boot/arch/x86/cpu/ivybridge/
H A Dmodel_206ax.c165 unsigned power_unit; in set_power_limits() local
177 power_unit = 2 << ((msr.lo & 0xf) - 1); in set_power_limits()
186 debug("CPU TDP: %u Watts\n", tdp / power_unit); in set_power_limits()
/openbmc/linux/drivers/power/supply/
H A 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()
H A Dqcom_battmgr.c142 __le32 power_unit; member
1018 battmgr->unit = le32_to_cpu(resp->info.power_unit); in qcom_battmgr_sc8280xp_callback()
/openbmc/u-boot/arch/x86/cpu/broadwell/
H A Dcpu.c652 unsigned power_unit; in cpu_set_power_limits() local
665 power_unit = 2 << ((msr.lo & 0xf) - 1); in cpu_set_power_limits()
674 debug("CPU TDP: %u Watts\n", tdp / power_unit); in cpu_set_power_limits()
/openbmc/linux/drivers/powercap/
H A Dintel_rapl_common.c618 units = rd->power_unit; in rapl_unit_xlate()
935 rd->power_unit = 1000000 / (1 << value); in rapl_check_unit_core()
941 rd->rp->name, rd->name, rd->energy_unit, rd->time_unit, rd->power_unit); in rapl_check_unit_core()
963 rd->power_unit = (1 << value) * 1000; in rapl_check_unit_atom()
969 rd->rp->name, rd->name, rd->energy_unit, rd->time_unit, rd->power_unit); in rapl_check_unit_atom()
1150 rd->power_unit = 1000000 / (1 << value); in rapl_check_unit_tpmi()
1156 rd->rp->name, rd->name, rd->energy_unit, rd->time_unit, rd->power_unit); in rapl_check_unit_tpmi()
/openbmc/linux/include/linux/
H A Dintel_rapl.h118 unsigned int power_unit; member
/openbmc/linux/drivers/platform/surface/
H A Dsurface3_power.c68 u32 power_unit; member
186 .power_unit = 0x01,
/openbmc/phosphor-host-ipmid/include/dbus-sdr/
H A Dsdrutils.hpp313 power_unit = 0x09, enumerator
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dsdrutils.cpp61 {"state", std::make_pair(SensorTypeCodes::power_unit,