/kernel/linux/linux-6.6/drivers/base/power/ |
H A D | domain_governor.c | 269 int state_idx = genpd->state_count - 1; in _default_power_down_ok() local 281 while (state_idx >= 0) { in _default_power_down_ok() 282 if (next_wakeup_allows_state(genpd, state_idx, now)) { in _default_power_down_ok() 286 state_idx--; in _default_power_down_ok() 289 if (state_idx < 0) { in _default_power_down_ok() 290 state_idx = 0; in _default_power_down_ok() 297 genpd->state_idx = gd->cached_power_down_state_idx; in _default_power_down_ok() 322 while (!__default_power_down_ok(pd, state_idx)) { in _default_power_down_ok() 323 if (state_idx == 0) { in _default_power_down_ok() 327 state_idx in _default_power_down_ok() [all...] |
H A D | domain.c | 245 genpd->states[genpd->state_idx].idle_time += delta; in genpd_update_accounting() 546 unsigned int state_idx = genpd->state_idx; in _genpd_power_on() local 562 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_on() 577 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on() 580 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on() 597 unsigned int state_idx = genpd->state_idx; in _genpd_power_off() local 613 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_off() 628 if (elapsed_ns <= genpd->states[state_idx] in _genpd_power_off() [all...] |
/kernel/linux/linux-5.10/drivers/cpuidle/ |
H A D | dt_idle_states.c | 158 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()
|
H A D | cpuidle-psci-domain.c | 34 struct genpd_power_state *state = &pd->states[pd->state_idx]; in psci_pd_power_off()
|
/kernel/linux/linux-6.6/drivers/cpuidle/ |
H A D | dt_idle_states.c | 157 unsigned int state_idx = start_idx; in dt_init_idle_driver() local 159 if (state_idx >= CPUIDLE_STATE_MAX) in dt_init_idle_driver() 193 if (state_idx == CPUIDLE_STATE_MAX) { in dt_init_idle_driver() 198 idle_state = &drv->states[state_idx++]; in dt_init_idle_driver() 215 drv->state_count = state_idx; in dt_init_idle_driver() 222 return state_idx - start_idx; in dt_init_idle_driver()
|
H A D | cpuidle-psci-domain.c | 34 struct genpd_power_state *state = &pd->states[pd->state_idx]; in psci_pd_power_off()
|
H A D | cpuidle-riscv-sbi.c | 395 struct genpd_power_state *state = &pd->states[pd->state_idx]; in sbi_cpuidle_pd_power_off()
|
/kernel/linux/linux-5.10/drivers/base/power/ |
H A D | domain_governor.c | 215 genpd->state_idx = genpd->cached_power_down_state_idx; in default_power_down_ok() 231 genpd->state_idx = genpd->state_count - 1; in default_power_down_ok() 234 while (!__default_power_down_ok(pd, genpd->state_idx)) { in default_power_down_ok() 235 if (genpd->state_idx == 0) { in default_power_down_ok() 239 genpd->state_idx--; in default_power_down_ok() 242 genpd->cached_power_down_state_idx = genpd->state_idx; in default_power_down_ok() 292 i = genpd->state_idx; in cpu_power_down_ok() 296 genpd->state_idx = i; in cpu_power_down_ok()
|
H A D | domain.c | 226 int state_idx = genpd->state_idx; in genpd_update_accounting() local 228 genpd->states[state_idx].idle_time = in genpd_update_accounting() 229 ktime_add(genpd->states[state_idx].idle_time, delta); in genpd_update_accounting() 413 unsigned int state_idx = genpd->state_idx; in _genpd_power_on() local 443 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on() 446 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on() 462 unsigned int state_idx = genpd->state_idx; in _genpd_power_off() local [all...] |
/kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
H A D | teo.c | 214 * @state_idx: Index of the capping idle state. 218 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state() 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() 217 teo_find_shallower_state(struct cpuidle_driver *drv, struct cpuidle_device *dev, int state_idx, u64 duration_ns) teo_find_shallower_state() argument
|
/kernel/linux/linux-6.6/drivers/cpuidle/governors/ |
H A D | teo.c | 345 * @state_idx: Index of the capping idle state. 350 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state() 355 for (i = state_idx - 1; i >= 0; i--) { in teo_find_shallower_state() 360 state_idx = i; in teo_find_shallower_state() 364 return state_idx; in teo_find_shallower_state() 349 teo_find_shallower_state(struct cpuidle_driver *drv, struct cpuidle_device *dev, int state_idx, s64 duration_ns, bool no_poll) teo_find_shallower_state() argument
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_proto_tcp.c | 515 int state_idx; in set_tcp_state() local 530 if ((state_idx = tcp_state_idx(th)) < 0) { in set_tcp_state() 531 IP_VS_DBG(8, "tcp_state_idx=%d!!!\n", state_idx); in set_tcp_state() 536 pd->tcp_state_table[state_off+state_idx].next_state[cp->state]; in set_tcp_state()
|
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_proto_tcp.c | 515 int state_idx; in set_tcp_state() local 530 if ((state_idx = tcp_state_idx(th)) < 0) { in set_tcp_state() 531 IP_VS_DBG(8, "tcp_state_idx=%d!!!\n", state_idx); in set_tcp_state() 536 pd->tcp_state_table[state_off+state_idx].next_state[cp->state]; in set_tcp_state()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | processor_idle.c | 902 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()
|
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | processor_idle.c | 901 int pkg_count, state_idx = 1, loop; in acpi_processor_evaluate_lpi() local 941 for (loop = 3; state_idx <= pkg_count; loop++, state_idx++, lpi_state++) { in acpi_processor_evaluate_lpi() 977 lpi_state->index = state_idx; in acpi_processor_evaluate_lpi() 1001 acpi_handle_debug(handle, "Found %d power states\n", state_idx); in acpi_processor_evaluate_lpi()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | pm_domain.h | 144 unsigned int state_idx; /* state that genpd will go to when off */ member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | pm_domain.h | 158 unsigned int state_idx; /* state that genpd will go to when off */ member
|