/drivers/cpuidle/ |
D | cpuidle-psci-domain.c | 51 int state_count) in psci_pd_parse_state_nodes() argument 56 for (i = 0; i < state_count; i++) { in psci_pd_parse_state_nodes() 81 struct genpd_power_state **states, int *state_count) in psci_pd_parse_states() argument 86 ret = of_genpd_parse_idle_states(np, states, state_count); in psci_pd_parse_states() 91 ret = psci_pd_parse_state_nodes(*states, *state_count); in psci_pd_parse_states() 99 unsigned int state_count) in psci_pd_free_states() argument 103 for (i = 0; i < state_count; i++) in psci_pd_free_states() 114 int ret = -ENOMEM, state_count = 0; in psci_pd_init() local 132 ret = psci_pd_parse_states(np, &states, &state_count); in psci_pd_init() 139 pd->state_count = state_count; in psci_pd_init() [all …]
|
D | cpuidle-cps.c | 98 .state_count = STATE_COUNT, 122 cps_driver.state_count = STATE_CLOCK_GATED + 1; in cps_cpuidle_init() 124 cps_driver.state_count = STATE_NC_WAIT + 1; in cps_cpuidle_init() 126 cps_driver.state_count = STATE_WAIT + 1; in cps_cpuidle_init() 129 if (cps_driver.state_count < STATE_COUNT) { in cps_cpuidle_init() 131 switch (cps_driver.state_count - 1) { in cps_cpuidle_init() 149 for (i = STATE_NC_WAIT; i < cps_driver.state_count; i++) in cps_cpuidle_init()
|
D | cpuidle-psci.c | 236 unsigned int state_count, int cpu) in psci_dt_cpu_init_topology() argument 251 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 252 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology() 260 unsigned int state_count, int cpu) in psci_dt_cpu_init_idle() argument 267 state_count++; /* Add WFI state too */ in psci_dt_cpu_init_idle() 268 psci_states = devm_kcalloc(dev, state_count, sizeof(*psci_states), in psci_dt_cpu_init_idle() 273 for (i = 1; i < state_count; i++) { in psci_dt_cpu_init_idle() 287 if (i != state_count) in psci_dt_cpu_init_idle() 291 ret = psci_dt_cpu_init_topology(drv, data, state_count, cpu); in psci_dt_cpu_init_idle() 301 unsigned int cpu, unsigned int state_count) in psci_cpu_init_idle() argument [all …]
|
D | cpuidle-mvebu-v7.c | 68 .state_count = 3, 83 .state_count = 2, 97 .state_count = 2,
|
D | cpuidle-powernv.c | 58 for (i = index + 1; i < drv->state_count; i++) { in get_snooze_timeout() 193 drv->state_count = 0; in powernv_cpuidle_driver_init() 200 drv->states[drv->state_count] = /* structure copy */ in powernv_cpuidle_driver_init() 203 drv->state_count += 1; in powernv_cpuidle_driver_init()
|
D | cpuidle.c | 71 for (i = drv->state_count - 1; i >= 0; i--) in cpuidle_play_dead() 87 for (i = 1; i < drv->state_count; i++) { in find_deepest_state() 297 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state() 417 for (i = 1; i < drv->state_count; i++) { in cpuidle_poll_time() 618 for (i = 0; i < drv->state_count; i++) { in __cpuidle_register_device()
|
D | cpuidle-exynos.c | 89 .state_count = 2, 108 .state_count = 2,
|
D | cpuidle-pseries.c | 330 drv->state_count = 0; in pseries_cpuidle_driver_init() 337 drv->states[drv->state_count] = /* structure copy */ in pseries_cpuidle_driver_init() 340 drv->state_count += 1; in pseries_cpuidle_driver_init()
|
D | cpuidle-big_little.c | 71 .state_count = 2, 92 .state_count = 2,
|
D | driver.c | 166 for (i = 0; i < drv->state_count; i++) { in __cpuidle_driver_init() 211 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
D | cpuidle-zynq.c | 48 .state_count = ZYNQ_MAX_STATES,
|
D | cpuidle-at91.c | 48 .state_count = AT91_MAX_STATES,
|
D | cpuidle-clps711x.c | 35 .state_count = 1,
|
D | cpuidle-calxeda.c | 58 .state_count = 2,
|
/drivers/isdn/mISDN/ |
D | fsm.c | 27 kzalloc(array3_size(sizeof(FSMFNPTR), fsm->state_count, in mISDN_FsmNew() 34 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew() 38 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew() 41 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew() 59 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent() 63 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent() 67 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
|
D | fsm.h | 24 int state_count, event_count; member
|
/drivers/acpi/ |
D | processor_throttling.c | 236 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier() 238 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier() 308 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed() 370 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate() 512 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states() 522 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states() 668 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt() 685 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt() 821 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state() 836 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value() [all …]
|
D | processor_perflib.c | 80 ppc >= pr->performance->state_count) in acpi_processor_get_platform_limit() 158 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit() 334 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states() 344 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states() 406 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
|
/drivers/cpufreq/ |
D | ia64-acpi-cpufreq.c | 96 for (i = 0; i < data->acpi_data.state_count; i++) { in extract_clock() 225 if (data->acpi_data.state_count <= 1) { in acpi_cpufreq_cpu_init() 243 freq_table = kcalloc(data->acpi_data.state_count + 1, in acpi_cpufreq_cpu_init() 253 for (i=0; i<data->acpi_data.state_count; i++) { in acpi_cpufreq_cpu_init() 262 for (i = 0; i <= data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init() 264 if (i < data->acpi_data.state_count) { in acpi_cpufreq_cpu_init() 279 for (i = 0; i < data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
|
D | acpi-cpufreq.c | 203 for (i = 0; i < perf->state_count; i++) { in extract_io() 505 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq() 513 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq() 748 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 795 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 804 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 819 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 876 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
|
D | powernow-k8.c | 714 if (!data->acpi_data.state_count) in powernow_k8_acpi_pst_values() 738 if (data->acpi_data.state_count <= 1) { in powernow_k8_cpu_init_acpi() 755 * (data->acpi_data.state_count + 1)), GFP_KERNEL); in powernow_k8_cpu_init_acpi() 760 data->numps = data->acpi_data.state_count; in powernow_k8_cpu_init_acpi() 767 powernow_table[data->acpi_data.state_count].frequency = in powernow_k8_cpu_init_acpi() 793 data->acpi_data.state_count = 0; in powernow_k8_cpu_init_acpi() 803 for (i = 0; i < data->acpi_data.state_count; i++) { in fill_powernow_table_fidvid() 856 if (data->acpi_data.state_count) in powernow_k8_cpu_exit_acpi() 865 for (i = 0; i < data->acpi_data.state_count; i++) { in get_transition_latency()
|
/drivers/cpuidle/governors/ |
D | ladder.c | 87 if (last_idx < drv->state_count - 1 && in ladder_select_state() 143 for (i = first_idx; i < drv->state_count; i++) { in ladder_enable_device() 153 if (i < drv->state_count - 1) in ladder_enable_device()
|
D | teo.c | 203 for (i = 0; i < drv->state_count; i++) { in teo_update() 314 if (drv->state_count < 2) { in teo_select() 331 for (i = 1; i < drv->state_count; i++) { in teo_select()
|
/drivers/xen/ |
D | xen-acpi-processor.c | 145 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data() 150 dst_perf->state_count = _pr->performance->state_count; in xen_copy_pss_data() 151 for (i = 0; i < _pr->performance->state_count; i++) { in xen_copy_pss_data() 249 for (i = 0; i < perf->state_count; i++) { in push_pxx_to_hypervisor()
|
/drivers/idle/ |
D | intel_idle.c | 1310 state = &drv->states[drv->state_count++]; in intel_idle_init_cstates_acpi() 1601 drv->states[drv->state_count] = cpuidle_state_table[cstate]; in intel_idle_init_cstates_icpu() 1605 drv->states[drv->state_count].enter = intel_idle_ibrs; in intel_idle_init_cstates_icpu() 1608 if ((disabled_states_mask & BIT(drv->state_count)) || in intel_idle_init_cstates_icpu() 1612 drv->states[drv->state_count].flags |= CPUIDLE_FLAG_OFF; in intel_idle_init_cstates_icpu() 1614 if (intel_idle_state_needs_timer_stop(&drv->states[drv->state_count])) in intel_idle_init_cstates_icpu() 1615 drv->states[drv->state_count].flags |= CPUIDLE_FLAG_TIMER_STOP; in intel_idle_init_cstates_icpu() 1617 drv->state_count++; in intel_idle_init_cstates_icpu() 1637 drv->state_count = 1; in intel_idle_cpuidle_driver_init()
|