| /Linux-v5.4/drivers/cpuidle/ |
| 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-mvebu-v7.c | 68 .state_count = 3, 83 .state_count = 2, 97 .state_count = 2,
|
| D | cpuidle-pseries.c | 223 drv->state_count = 0; in pseries_cpuidle_driver_init() 230 drv->states[drv->state_count] = /* structure copy */ in pseries_cpuidle_driver_init() 233 drv->state_count += 1; in pseries_cpuidle_driver_init()
|
| D | cpuidle-powernv.c | 58 for (i = index + 1; i < drv->state_count; i++) { in get_snooze_timeout() 196 drv->state_count = 0; in powernv_cpuidle_driver_init() 203 drv->states[drv->state_count] = /* structure copy */ in powernv_cpuidle_driver_init() 206 drv->state_count += 1; in powernv_cpuidle_driver_init()
|
| D | cpuidle-exynos.c | 89 .state_count = 2, 108 .state_count = 2,
|
| D | cpuidle-big_little.c | 71 .state_count = 2, 92 .state_count = 2,
|
| D | driver.c | 174 for (i = drv->state_count - 1; i >= 0 ; i--) { in __cpuidle_driver_init() 199 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
| D | cpuidle.c | 69 for (i = drv->state_count - 1; i >= 0; i--) in cpuidle_play_dead() 85 for (i = 1; i < drv->state_count; i++) { in find_deepest_state() 277 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state() 382 for (i = 1; i < drv->state_count; i++) { in cpuidle_poll_time()
|
| D | cpuidle-zynq.c | 48 .state_count = ZYNQ_MAX_STATES,
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/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 | 199 for (i = 0; i < perf->state_count; i++) { in extract_io() 501 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq() 509 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq() 702 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 749 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 758 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 773 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 808 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()
|
| /Linux-v5.4/drivers/acpi/ |
| D | processor_throttling.c | 243 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier() 246 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier() 317 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed() 379 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate() 522 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states() 532 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states() 678 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt() 695 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt() 835 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state() 850 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value() [all …]
|
| D | processor_perflib.c | 83 if (ppc >= pr->performance->state_count || in acpi_processor_get_platform_limit() 146 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit() 317 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states() 327 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states() 388 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
|
| /Linux-v5.4/security/apparmor/ |
| D | match.c | 146 size_t state_count, trans_count; in verify_table_headers() local 155 state_count = tables[YYTD_ID_BASE]->td_lolen; in verify_table_headers() 159 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen) in verify_table_headers() 165 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen) in verify_table_headers() 168 if (state_count != tables[YYTD_ID_DEF]->td_lolen) in verify_table_headers() 196 size_t i, state_count, trans_count; in verify_dfa() local 199 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in verify_dfa() 201 for (i = 0; i < state_count; i++) { in verify_dfa() 203 (DEFAULT_TABLE(dfa)[i] >= state_count)) in verify_dfa() 212 if (NEXT_TABLE(dfa)[i] >= state_count) in verify_dfa() [all …]
|
| /Linux-v5.4/drivers/soc/qcom/ |
| D | spm.c | 208 int state_count = 1; in qcom_cpuidle_init() local 235 idle_fns[state_count] = match_id->data; in qcom_cpuidle_init() 241 state_count++; in qcom_cpuidle_init() 244 if (state_count == 1) in qcom_cpuidle_init() 247 fns = devm_kcalloc(get_cpu_device(cpu), state_count, sizeof(*fns), in qcom_cpuidle_init() 252 for (i = 1; i < state_count; i++) in qcom_cpuidle_init()
|
| /Linux-v5.4/arch/arm/mach-tegra/ |
| D | cpuidle-tegra30.c | 38 .state_count = 2, 40 .state_count = 1,
|
| /Linux-v5.4/drivers/cpuidle/governors/ |
| D | ladder.c | 86 if (last_idx < drv->state_count - 1 && in ladder_select_state() 144 for (i = first_idx; i < drv->state_count; i++) { in ladder_enable_device() 154 if (i < drv->state_count - 1) in ladder_enable_device()
|
| D | teo.c | 153 for (i = 0; i < drv->state_count; i++) { in teo_update() 252 constraint_idx = drv->state_count; in teo_select() 255 for (i = 0; i < drv->state_count; i++) { in teo_select()
|
| /Linux-v5.4/drivers/xen/ |
| D | xen-acpi-processor.c | 144 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data() 149 dst_perf->state_count = _pr->performance->state_count; in xen_copy_pss_data() 150 for (i = 0; i < _pr->performance->state_count; i++) { in xen_copy_pss_data() 248 for (i = 0; i < perf->state_count; i++) { in push_pxx_to_hypervisor()
|
| /Linux-v5.4/arch/arm/mach-imx/ |
| D | cpuidle-imx5.c | 28 .state_count = 1,
|
| D | cpuidle-imx6sl.c | 45 .state_count = 2,
|
| /Linux-v5.4/arch/arm/mach-omap2/ |
| D | cpuidle44xx.c | 253 .state_count = ARRAY_SIZE(omap4_idle_data), 279 .state_count = ARRAY_SIZE(omap5_idle_data),
|
| /Linux-v5.4/arch/arm/mach-s3c64xx/ |
| D | cpuidle.c | 51 .state_count = 1,
|