Home
last modified time | relevance | path

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

/drivers/base/power/
Ddomain_governor.c268 int state_idx = genpd->state_count - 1; in _default_power_down_ok() local
280 while (state_idx >= 0) { in _default_power_down_ok()
281 if (next_wakeup_allows_state(genpd, state_idx, now)) { in _default_power_down_ok()
285 state_idx--; in _default_power_down_ok()
288 if (state_idx < 0) { in _default_power_down_ok()
289 state_idx = 0; in _default_power_down_ok()
296 genpd->state_idx = genpd->cached_power_down_state_idx; in _default_power_down_ok()
317 while (!__default_power_down_ok(pd, state_idx)) { in _default_power_down_ok()
318 if (state_idx == 0) { in _default_power_down_ok()
322 state_idx--; in _default_power_down_ok()
[all …]
Ddomain.c242 int state_idx = genpd->state_idx; in genpd_update_accounting() local
244 genpd->states[state_idx].idle_time = in genpd_update_accounting()
245 ktime_add(genpd->states[state_idx].idle_time, delta); in genpd_update_accounting()
460 unsigned int state_idx = genpd->state_idx; in _genpd_power_on() local
490 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on()
493 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on()
509 unsigned int state_idx = genpd->state_idx; in _genpd_power_off() local
539 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns) in _genpd_power_off()
542 genpd->states[state_idx].power_off_latency_ns = elapsed_ns; in _genpd_power_off()
631 genpd->state_idx = 0; in genpd_power_off()
[all …]
/drivers/cpuidle/
Ddt_idle_states.c158 unsigned int state_idx = start_idx; in dt_init_idle_driver() local
160 if (state_idx >= CPUIDLE_STATE_MAX) in dt_init_idle_driver()
194 if (state_idx == CPUIDLE_STATE_MAX) { in dt_init_idle_driver()
199 idle_state = &drv->states[state_idx++]; in dt_init_idle_driver()
219 drv->state_count = state_idx; in dt_init_idle_driver()
226 return state_idx - start_idx; in dt_init_idle_driver()
Dcpuidle-psci-domain.c34 struct genpd_power_state *state = &pd->states[pd->state_idx]; in psci_pd_power_off()
/drivers/cpuidle/governors/
Dteo.c218 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state() argument
223 for (i = state_idx - 1; i >= 0; i--) { in teo_find_shallower_state()
227 state_idx = i; in teo_find_shallower_state()
231 return state_idx; in teo_find_shallower_state()
/drivers/acpi/
Dprocessor_idle.c902 int pkg_count, state_idx = 1, loop; in acpi_processor_evaluate_lpi() local
942 for (loop = 3; state_idx <= pkg_count; loop++, state_idx++, lpi_state++) { in acpi_processor_evaluate_lpi()
978 lpi_state->index = state_idx; in acpi_processor_evaluate_lpi()
1002 acpi_handle_debug(handle, "Found %d power states\n", state_idx); in acpi_processor_evaluate_lpi()