/Linux-v5.10/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 | 157 unsigned int state_count, int cpu) in psci_dt_cpu_init_topology() argument 172 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 180 unsigned int state_count, int cpu) in psci_dt_cpu_init_idle() argument 187 state_count++; /* Add WFI state too */ in psci_dt_cpu_init_idle() 188 psci_states = devm_kcalloc(dev, state_count, sizeof(*psci_states), in psci_dt_cpu_init_idle() 193 for (i = 1; i < state_count; i++) { in psci_dt_cpu_init_idle() 207 if (i != state_count) in psci_dt_cpu_init_idle() 211 ret = psci_dt_cpu_init_topology(drv, data, state_count, cpu); in psci_dt_cpu_init_idle() 221 unsigned int cpu, unsigned int state_count) in psci_cpu_init_idle() argument 237 ret = psci_dt_cpu_init_idle(dev, drv, cpu_node, state_count, cpu); in psci_cpu_init_idle()
|
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-exynos.c | 89 .state_count = 2, 108 .state_count = 2,
|
D | cpuidle.c | 70 for (i = drv->state_count - 1; i >= 0; i--) in cpuidle_play_dead() 86 for (i = 1; i < drv->state_count; i++) { in find_deepest_state() 284 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state() 389 for (i = 1; i < drv->state_count; i++) { in cpuidle_poll_time() 584 for (i = 0; i < drv->state_count; i++) { in __cpuidle_register_device()
|
D | cpuidle-big_little.c | 71 .state_count = 2, 92 .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 | driver.c | 166 for (i = 0; i < drv->state_count; i++) { in __cpuidle_driver_init() 207 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
D | cpuidle-zynq.c | 48 .state_count = ZYNQ_MAX_STATES,
|
/Linux-v5.10/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.10/arch/arm/mach-omap2/ |
D | pm33xx-core.c | 349 int state_count = 1; in amx3_idle_init() local 365 states[state_count].wfi_flags = 0; in amx3_idle_init() 368 states[state_count].wfi_flags |= WFI_FLAG_WAKE_M3 | in amx3_idle_init() 371 state_count++; in amx3_idle_init() 374 idle_states = kcalloc(state_count, sizeof(*idle_states), GFP_KERNEL); in amx3_idle_init() 378 for (i = 1; i < state_count; i++) in amx3_idle_init()
|
/Linux-v5.10/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.10/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 | 202 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() 706 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 753 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 762 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 777 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 812 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.10/security/apparmor/ |
D | match.c | 149 size_t state_count, trans_count; in verify_table_headers() local 158 state_count = tables[YYTD_ID_BASE]->td_lolen; in verify_table_headers() 162 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen) in verify_table_headers() 168 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen) in verify_table_headers() 171 if (state_count != tables[YYTD_ID_DEF]->td_lolen) in verify_table_headers() 199 size_t i, state_count, trans_count; in verify_dfa() local 202 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in verify_dfa() 204 if (state_count == 0) in verify_dfa() 206 for (i = 0; i < state_count; i++) { in verify_dfa() 208 (DEFAULT_TABLE(dfa)[i] >= state_count)) in verify_dfa() [all …]
|
/Linux-v5.10/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 | 157 for (i = 0; i < drv->state_count; i++) { in teo_update() 265 constraint_idx = drv->state_count; in teo_select() 268 for (i = 0; i < drv->state_count; i++) { in teo_select()
|
/Linux-v5.10/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.10/arch/arm/mach-imx/ |
D | cpuidle-imx5.c | 28 .state_count = 1,
|
D | cpuidle-imx6sl.c | 45 .state_count = 2,
|
D | cpuidle-imx7ulp.c | 53 .state_count = 3,
|