Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/pmdomain/
Dgovernor.c273 int state_idx = genpd->state_count - 1; in _default_power_down_ok() local
285 while (state_idx >= 0) { in _default_power_down_ok()
286 if (next_wakeup_allows_state(genpd, state_idx, now)) { in _default_power_down_ok()
290 state_idx--; in _default_power_down_ok()
293 if (state_idx < 0) { in _default_power_down_ok()
294 state_idx = 0; in _default_power_down_ok()
301 genpd->state_idx = gd->cached_power_down_state_idx; in _default_power_down_ok()
326 while (!__default_power_down_ok(pd, state_idx)) { in _default_power_down_ok()
327 if (state_idx == 0) { in _default_power_down_ok()
331 state_idx--; in _default_power_down_ok()
[all …]
Dcore.c301 genpd->states[genpd->state_idx].idle_time += delta; in genpd_update_accounting()
702 unsigned int state_idx = genpd->state_idx; in _genpd_power_on() local
718 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_on()
733 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) in _genpd_power_on()
736 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; in _genpd_power_on()
753 unsigned int state_idx = genpd->state_idx; in _genpd_power_off() local
769 timed = timed && genpd->gd && !genpd->states[state_idx].fwnode; in _genpd_power_off()
784 if (elapsed_ns <= genpd->states[state_idx].power_off_latency_ns) in _genpd_power_off()
787 genpd->states[state_idx].power_off_latency_ns = elapsed_ns; in _genpd_power_off()
859 if (child->state_idx < child->state_count - 1) in genpd_power_off()
[all …]
/linux-6.12.1/drivers/cpuidle/
Ddt_idle_states.c157 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()
Dcpuidle-psci-domain.c35 struct genpd_power_state *state = &pd->states[pd->state_idx]; in psci_pd_power_off()
Dcpuidle-riscv-sbi.c357 struct genpd_power_state *state = &pd->states[pd->state_idx]; in sbi_cpuidle_pd_power_off()
/linux-6.12.1/drivers/cpuidle/governors/
Dteo.c254 struct cpuidle_device *dev, int state_idx, in teo_find_shallower_state() argument
259 for (i = state_idx - 1; i >= 0; i--) { in teo_find_shallower_state()
264 state_idx = i; in teo_find_shallower_state()
268 return state_idx; in teo_find_shallower_state()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddisplay_mode_core.h66 dml_uint_t state_idx,
71 dml_uint_t state_idx,
Ddisplay_mode_core.c8117 …dml_print("DML::%s: state_idx=%0d max_state_idx=%0d\n", __func__, mode_lib->ms.state_idx, mode_lib… in dml_core_mode_support()
8119 s->is_max_pwr_state = (mode_lib->ms.max_state_idx == mode_lib->ms.state_idx); in dml_core_mode_support()
8783 dml_print("DML::%s: mode_lib->ms.state_idx = %u\n", __func__, mode_lib->ms.state_idx); in dml_core_mode_programming()
10032 dml_uint_t state_idx) in dml_get_soc_state_bounding_box() argument
10034 dml_print("DML::%s: state_idx=%u (num_states=%u)\n", __func__, state_idx, states->num_states); in dml_get_soc_state_bounding_box()
10036 if (state_idx >= (dml_uint_t)states->num_states) { in dml_get_soc_state_bounding_box()
10037 …dml_print("DML::%s: ERROR: Invalid state_idx=%u! num_states=%u\n", __func__, state_idx, states->nu… in dml_get_soc_state_bounding_box()
10040 return (states->state_array[state_idx]); in dml_get_soc_state_bounding_box()
10047 dml_uint_t state_idx) in cache_ip_soc_cfg() argument
10049 mode_lib->ms.state_idx = state_idx; in cache_ip_soc_cfg()
[all …]
Ddisplay_mode_core_structs.h759 dml_uint_t state_idx; //<brief The power state idx for the power state under this computation member
/linux-6.12.1/net/netfilter/ipvs/
Dip_vs_proto_tcp.c515 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()
/linux-6.12.1/drivers/acpi/
Dprocessor_idle.c896 int pkg_count, state_idx = 1, loop; in acpi_processor_evaluate_lpi() local
936 for (loop = 3; state_idx <= pkg_count; loop++, state_idx++, lpi_state++) { in acpi_processor_evaluate_lpi()
972 lpi_state->index = state_idx; in acpi_processor_evaluate_lpi()
996 acpi_handle_debug(handle, "Found %d power states\n", state_idx); in acpi_processor_evaluate_lpi()
/linux-6.12.1/include/linux/
Dpm_domain.h197 unsigned int state_idx; /* state that genpd will go to when off */ member
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
Ddml2_core_shared_types.h333 unsigned int state_idx; // <brief min clk state table index for mode support call member
Ddml2_core_shared.c771 mode_lib->ms.state_idx = in_out_params->min_clk_index; in dml2_core_shared_mode_support()
Ddml2_core_dcn4_calcs.c7045 mode_lib->ms.state_idx = in_out_params->min_clk_index; in dml_core_mode_support()