Home
last modified time | relevance | path

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

/titanic_41/usr/src/cmd/hal/hald/
H A Dutil_pm.c141 int remaining_time = 0; in util_compute_time_remaining() local
201 remaining_time = ((double) chargeLevel / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()
211 remaining_time = ((double) (chargeLastFull - chargeLevel) / (double) chargeRate) * 60 * 60; in util_compute_time_remaining()
215 if (remaining_time < 0) { in util_compute_time_remaining()
216 HAL_WARNING (("remaining_time %i, returning -1", remaining_time)); in util_compute_time_remaining()
217 remaining_time = -1; in util_compute_time_remaining()
220 else if (remaining_time > 60*60*60) { in util_compute_time_remaining()
222 remaining_time = -1; in util_compute_time_remaining()
225 return remaining_time; in util_compute_time_remaining()
/titanic_41/usr/src/cmd/hal/utils/
H A Dacpi.c288 int remaining_time; in battery_dynamic_update() local
395 remaining_time = util_compute_time_remaining(udi, reporting_rate, in battery_dynamic_update()
401 if (charging && ((remaining_time < 30) || ((remaining_time < 300) && in battery_dynamic_update()
403 remaining_time = util_compute_time_remaining(udi, in battery_dynamic_update()
425 remaining_time = 0; in battery_dynamic_update()
427 if (remaining_time < 0) { in battery_dynamic_update()
431 } else if (remaining_time >= 0) { in battery_dynamic_update()
433 "battery.remaining_time", remaining_time); in battery_dynamic_update()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c1960 int remaining_time; member
1977 tp->remaining_time, in report_routes()
2024 tp->remaining_time -= time; in age_table()
2025 if (tp->remaining_time <= 0) { in age_table()
2122 tp->remaining_time = ttl; in record_router()
2133 tp->remaining_time = ttl; in record_router()