/drivers/cpuidle/ |
D | cpuidle-cps.c | 102 .state_count = STATE_COUNT, 126 cps_driver.state_count = STATE_CLOCK_GATED + 1; in cps_cpuidle_init() 128 cps_driver.state_count = STATE_NC_WAIT + 1; in cps_cpuidle_init() 130 cps_driver.state_count = STATE_WAIT + 1; in cps_cpuidle_init() 133 if (cps_driver.state_count < STATE_COUNT) { in cps_cpuidle_init() 135 switch (cps_driver.state_count - 1) { in cps_cpuidle_init() 153 for (i = STATE_NC_WAIT; i < cps_driver.state_count; i++) in cps_cpuidle_init()
|
D | cpuidle-mvebu-v7.c | 68 .state_count = 3, 83 .state_count = 2, 97 .state_count = 2,
|
D | cpuidle-powernv.c | 44 for (i = index + 1; i < drv->state_count; i++) { in get_snooze_timeout() 172 drv->state_count = 0; in powernv_cpuidle_driver_init() 179 drv->states[drv->state_count] = /* structure copy */ in powernv_cpuidle_driver_init() 182 drv->state_count += 1; in powernv_cpuidle_driver_init()
|
D | cpuidle-pseries.c | 216 drv->state_count = 0; in pseries_cpuidle_driver_init() 223 drv->states[drv->state_count] = /* structure copy */ in pseries_cpuidle_driver_init() 226 drv->state_count += 1; in pseries_cpuidle_driver_init()
|
D | cpuidle-exynos.c | 92 .state_count = 2, 111 .state_count = 2,
|
D | cpuidle-big_little.c | 74 .state_count = 2, 95 .state_count = 2,
|
D | driver.c | 171 for (i = drv->state_count - 1; i >= 0 ; i--) { in __cpuidle_driver_init() 226 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
D | cpuidle-zynq.c | 59 .state_count = ZYNQ_MAX_STATES,
|
D | cpuidle-at91.c | 48 .state_count = AT91_MAX_STATES,
|
D | cpuidle-calxeda.c | 69 .state_count = 2,
|
D | cpuidle-clps711x.c | 39 .state_count = 1,
|
D | cpuidle-kirkwood.c | 52 .state_count = KIRKWOOD_MAX_STATES,
|
D | cpuidle-ux500.c | 109 .state_count = 2,
|
/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 | 256 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier() 259 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier() 330 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed() 392 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate() 535 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states() 544 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states() 690 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt() 707 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt() 847 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state() 862 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value() [all …]
|
D | processor_perflib.c | 97 if (ppc >= pr->performance->state_count) in acpi_processor_ppc_notifier() 196 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit() 348 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states() 357 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states() 418 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
|
/drivers/cpufreq/ |
D | ia64-acpi-cpufreq.c | 91 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 | 213 for (i = 0; i < perf->state_count; i++) { in extract_io() 504 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq() 512 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq() 728 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 770 (perf->state_count+1), GFP_KERNEL); in acpi_cpufreq_cpu_init() 778 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 794 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 835 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
|
D | powernow-k8.c | 721 if (!data->acpi_data.state_count) in powernow_k8_acpi_pst_values() 745 if (data->acpi_data.state_count <= 1) { in powernow_k8_cpu_init_acpi() 762 * (data->acpi_data.state_count + 1)), GFP_KERNEL); in powernow_k8_cpu_init_acpi() 769 data->numps = data->acpi_data.state_count; in powernow_k8_cpu_init_acpi() 776 powernow_table[data->acpi_data.state_count].frequency = in powernow_k8_cpu_init_acpi() 802 data->acpi_data.state_count = 0; in powernow_k8_cpu_init_acpi() 812 for (i = 0; i < data->acpi_data.state_count; i++) { in fill_powernow_table_fidvid() 865 if (data->acpi_data.state_count) in powernow_k8_cpu_exit_acpi() 874 for (i = 0; i < data->acpi_data.state_count; i++) { in get_transition_latency()
|
/drivers/soc/qcom/ |
D | spm.c | 215 int state_count = 1; in qcom_cpuidle_init() local 239 idle_fns[state_count] = match_id->data; in qcom_cpuidle_init() 245 state_count++; in qcom_cpuidle_init() 248 if (state_count == 1) in qcom_cpuidle_init() 251 fns = devm_kcalloc(get_cpu_device(cpu), state_count, sizeof(*fns), in qcom_cpuidle_init() 256 for (i = 1; i < state_count; i++) in qcom_cpuidle_init()
|
/drivers/cpuidle/governors/ |
D | ladder.c | 85 if (last_idx < drv->state_count - 1 && in ladder_select_state() 142 for (i = CPUIDLE_DRIVER_STATE_START; i < drv->state_count; i++) { in ladder_enable_device() 152 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()
|