Home
last modified time | relevance | path

Searched refs:state_count (Results 1 – 25 of 44) sorted by relevance

12

/drivers/cpuidle/
Dcpuidle-cps.c105 .state_count = STATE_COUNT,
129 cps_driver.state_count = STATE_CLOCK_GATED + 1; in cps_cpuidle_init()
131 cps_driver.state_count = STATE_NC_WAIT + 1; in cps_cpuidle_init()
133 cps_driver.state_count = STATE_WAIT + 1; in cps_cpuidle_init()
136 if (cps_driver.state_count < STATE_COUNT) { in cps_cpuidle_init()
138 switch (cps_driver.state_count - 1) { in cps_cpuidle_init()
156 for (i = STATE_NC_WAIT; i < cps_driver.state_count; i++) in cps_cpuidle_init()
Dcpuidle-mvebu-v7.c70 .state_count = 3,
86 .state_count = 2,
101 .state_count = 2,
Dcpuidle-pseries.c213 drv->state_count = 0; in pseries_cpuidle_driver_init()
220 drv->states[drv->state_count] = /* structure copy */ in pseries_cpuidle_driver_init()
223 drv->state_count += 1; in pseries_cpuidle_driver_init()
Dcpuidle-powernv.c144 drv->state_count = 0; in powernv_cpuidle_driver_init()
151 drv->states[drv->state_count] = /* structure copy */ in powernv_cpuidle_driver_init()
154 drv->state_count += 1; in powernv_cpuidle_driver_init()
Dcpuidle-big_little.c75 .state_count = 2,
97 .state_count = 2,
Ddriver.c173 for (i = drv->state_count - 1; i >= 0 ; i--) { in __cpuidle_driver_init()
229 if (!drv || !drv->state_count) in __cpuidle_register_driver()
Dcpuidle-zynq.c61 .state_count = ZYNQ_MAX_STATES,
Dcpuidle-at91.c50 .state_count = AT91_MAX_STATES,
Dcpuidle-calxeda.c65 .state_count = 2,
Dcpuidle-clps711x.c39 .state_count = 1,
Dcpuidle-exynos.c55 .state_count = 2,
Dcpuidle-kirkwood.c54 .state_count = KIRKWOOD_MAX_STATES,
Dcpuidle-ux500.c111 .state_count = 2,
Dcpuidle.c61 for (i = drv->state_count - 1; i >= CPUIDLE_DRIVER_STATE_START; i--) in cpuidle_play_dead()
79 for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) { in cpuidle_find_deepest_state()
/drivers/isdn/hisax/
Dfsm.c30 kzalloc(sizeof(FSMFNPTR) * fsm->state_count * fsm->event_count, GFP_KERNEL); in FsmNew()
35 if ((fnlist[i].state >= fsm->state_count) || (fnlist[i].event >= fsm->event_count)) { in FsmNew()
37 i, (long)fnlist[i].state, (long)fsm->state_count, in FsmNew()
40 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in FsmNew()
56 if ((fi->state >= fi->fsm->state_count) || (event >= fi->fsm->event_count)) { in FsmEvent()
58 (long)fi->state, (long)fi->fsm->state_count, event, (long)fi->fsm->event_count); in FsmEvent()
61 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in FsmEvent()
Dfsm.h25 int state_count, event_count; member
/drivers/isdn/mISDN/
Dfsm.c35 fsm->jumpmatrix = kzalloc(sizeof(FSMFNPTR) * fsm->state_count * in mISDN_FsmNew()
39 if ((fnlist[i].state >= fsm->state_count) || in mISDN_FsmNew()
43 i, (long)fnlist[i].state, (long)fsm->state_count, in mISDN_FsmNew()
46 fsm->jumpmatrix[fsm->state_count * fnlist[i].event + in mISDN_FsmNew()
63 if ((fi->state >= fi->fsm->state_count) || in mISDN_FsmEvent()
67 (long)fi->state, (long)fi->fsm->state_count, event, in mISDN_FsmEvent()
71 r = fi->fsm->jumpmatrix[fi->fsm->state_count * event + fi->state]; in mISDN_FsmEvent()
Dfsm.h33 int state_count, event_count; member
/drivers/acpi/
Dprocessor_throttling.c260 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier()
263 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier()
334 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed()
396 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate()
539 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states()
548 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states()
685 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt()
702 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt()
842 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state()
857 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value()
[all …]
Dprocessor_perflib.c101 if (ppc >= pr->performance->state_count) in acpi_processor_ppc_notifier()
200 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit()
352 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states()
361 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states()
422 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
/drivers/cpufreq/
Dia64-acpi-cpufreq.c92 for (i = 0; i < data->acpi_data.state_count; i++) { in extract_clock()
239 if (data->acpi_data.state_count <= 1) { in acpi_cpufreq_cpu_init()
258 (data->acpi_data.state_count + 1), in acpi_cpufreq_cpu_init()
267 for (i=0; i<data->acpi_data.state_count; i++) { in acpi_cpufreq_cpu_init()
276 for (i = 0; i <= data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
278 if (i < data->acpi_data.state_count) { in acpi_cpufreq_cpu_init()
297 for (i = 0; i < data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
Dacpi-cpufreq.c207 for (i = 0; i < perf->state_count; i++) { in extract_io()
493 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq()
501 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq()
715 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init()
757 (perf->state_count+1), GFP_KERNEL); in acpi_cpufreq_cpu_init()
765 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
781 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
822 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
Dpowernow-k8.c728 if (!data->acpi_data.state_count) in powernow_k8_acpi_pst_values()
752 if (data->acpi_data.state_count <= 1) { in powernow_k8_cpu_init_acpi()
769 * (data->acpi_data.state_count + 1)), GFP_KERNEL); in powernow_k8_cpu_init_acpi()
776 data->numps = data->acpi_data.state_count; in powernow_k8_cpu_init_acpi()
783 powernow_table[data->acpi_data.state_count].frequency = in powernow_k8_cpu_init_acpi()
809 data->acpi_data.state_count = 0; in powernow_k8_cpu_init_acpi()
819 for (i = 0; i < data->acpi_data.state_count; i++) { in fill_powernow_table_fidvid()
872 if (data->acpi_data.state_count) in powernow_k8_cpu_exit_acpi()
882 for (i = 0; i < data->acpi_data.state_count; i++) { in get_transition_latency()
/drivers/cpuidle/governors/
Dladder.c90 if (last_idx < drv->state_count - 1 && in ladder_select_state()
147 for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) { in ladder_enable_device()
157 if (i < drv->state_count - 1) in ladder_enable_device()
/drivers/xen/
Dxen-acpi-processor.c151 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data()
156 dst_perf->state_count = _pr->performance->state_count; in xen_copy_pss_data()
157 for (i = 0; i < _pr->performance->state_count; i++) { in xen_copy_pss_data()
255 for (i = 0; i < perf->state_count; i++) { in push_pxx_to_hypervisor()

12