/drivers/cpuidle/ |
D | cpuidle-cps.c | 105 .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()
|
D | cpuidle-mvebu-v7.c | 70 .state_count = 3, 86 .state_count = 2, 101 .state_count = 2,
|
D | cpuidle-pseries.c | 213 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()
|
D | cpuidle-powernv.c | 144 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()
|
D | cpuidle-big_little.c | 75 .state_count = 2, 97 .state_count = 2,
|
D | driver.c | 173 for (i = drv->state_count - 1; i >= 0 ; i--) { in __cpuidle_driver_init() 229 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
D | cpuidle-zynq.c | 61 .state_count = ZYNQ_MAX_STATES,
|
D | cpuidle-at91.c | 50 .state_count = AT91_MAX_STATES,
|
D | cpuidle-calxeda.c | 65 .state_count = 2,
|
D | cpuidle-clps711x.c | 39 .state_count = 1,
|
D | cpuidle-exynos.c | 55 .state_count = 2,
|
D | cpuidle-kirkwood.c | 54 .state_count = KIRKWOOD_MAX_STATES,
|
D | cpuidle-ux500.c | 111 .state_count = 2,
|
D | cpuidle.c | 61 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/ |
D | fsm.c | 30 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()
|
D | fsm.h | 25 int state_count, event_count; member
|
/drivers/isdn/mISDN/ |
D | fsm.c | 35 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()
|
D | fsm.h | 33 int state_count, event_count; member
|
/drivers/acpi/ |
D | processor_throttling.c | 260 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 …]
|
D | processor_perflib.c | 101 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/ |
D | ia64-acpi-cpufreq.c | 92 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()
|
D | acpi-cpufreq.c | 207 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()
|
D | powernow-k8.c | 728 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/ |
D | ladder.c | 90 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/ |
D | xen-acpi-processor.c | 151 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()
|