Searched refs:power_unit (Results 1 – 2 of 2) sorted by relevance
/linux-4.1.27/drivers/acpi/ |
D | battery.c | 149 int power_unit; member 344 return (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA) ? in acpi_battery_units() 365 {offsetof(struct acpi_battery, power_unit), 0}, 382 {offsetof(struct acpi_battery, power_unit), 0}, 480 battery->power_unit && battery->design_voltage) { in acpi_battery_get_info() 530 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA && in acpi_battery_get_state() 543 battery->power_unit && battery->design_voltage) { in acpi_battery_get_state() 614 if (battery->power_unit == ACPI_BATTERY_POWER_UNIT_MA) { in sysfs_add_battery() 701 if (battery->power_unit && dmi_name_in_vendors("LENOVO")) { in acpi_battery_quirks() 771 int power_unit; in acpi_battery_refresh() local [all …]
|
/linux-4.1.27/drivers/powercap/ |
D | intel_rapl.c | 175 unsigned int power_unit; member 675 units = rp->power_unit; in rapl_unit_xlate() 857 rp->power_unit = 1000000 / (1 << value); in rapl_check_unit_core() 863 rp->id, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_core() 882 rp->power_unit = (1 << value) * 1000; in rapl_check_unit_atom() 888 rp->id, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_atom()
|