Home
last modified time | relevance | path

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

/illumos-gate/usr/src/cmd/hal/utils/
H A Dacpi.c287 char *reporting_unit; in battery_dynamic_update() local
340 reporting_unit = libhal_device_get_property_string(ctx, udi, in battery_dynamic_update()
350 if (reporting_unit && strcmp(reporting_unit, "mAh") == 0) { in battery_dynamic_update()
381 libhal_free_string(reporting_unit); in battery_dynamic_update()
439 libhal_free_string(reporting_unit); in battery_dynamic_update()
454 char reporting_unit[10]; in battery_static_update() local
486 strlcpy(reporting_unit, "mAh", sizeof (reporting_unit)); in battery_static_update()
490 strlcpy(reporting_unit, "mWh", sizeof (reporting_unit)); in battery_static_update()
513 if (reporting_unit && strcmp(reporting_unit, "mAh") == 0) { in battery_static_update()
533 if (reporting_unit && strcmp(reporting_unit, "mWh") == 0) { in battery_static_update()