/linux-6.1.9/drivers/cpuidle/ |
D | dt_idle_genpd.c | 26 struct genpd_power_state *states, int state_count) in pd_parse_state_nodes() argument 31 for (i = 0; i < state_count; i++) { in pd_parse_state_nodes() 57 int *state_count) in pd_parse_states() argument 62 ret = of_genpd_parse_idle_states(np, states, state_count); in pd_parse_states() 67 ret = pd_parse_state_nodes(parse_state, *states, *state_count); in pd_parse_states() 75 unsigned int state_count) in pd_free_states() argument 79 for (i = 0; i < state_count; i++) in pd_free_states() 86 pd_free_states(pd->states, pd->state_count); in dt_idle_pd_free() 96 int ret, state_count = 0; in dt_idle_pd_alloc() local 110 ret = pd_parse_states(np, parse_state, &states, &state_count); in dt_idle_pd_alloc() [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 | 228 unsigned int state_count, int cpu) in psci_dt_cpu_init_topology() argument 243 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 244 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology() 252 unsigned int state_count, int cpu) in psci_dt_cpu_init_idle() argument 259 state_count++; /* Add WFI state too */ in psci_dt_cpu_init_idle() 260 psci_states = devm_kcalloc(dev, state_count, sizeof(*psci_states), in psci_dt_cpu_init_idle() 265 for (i = 1; i < state_count; i++) { in psci_dt_cpu_init_idle() 279 if (i != state_count) in psci_dt_cpu_init_idle() 283 ret = psci_dt_cpu_init_topology(drv, data, state_count, cpu); in psci_dt_cpu_init_idle() 293 unsigned int cpu, unsigned int state_count) in psci_cpu_init_idle() argument [all …]
|
D | cpuidle-riscv-sbi.c | 239 unsigned int state_count, int cpu) in sbi_dt_cpu_init_topology() argument 254 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; in sbi_dt_cpu_init_topology() 255 drv->states[state_count - 1].enter_s2idle = in sbi_dt_cpu_init_topology() 265 unsigned int state_count) in sbi_cpuidle_dt_init_states() argument 277 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL); in sbi_cpuidle_dt_init_states() 284 for (i = 1; i < state_count; i++) { in sbi_cpuidle_dt_init_states() 297 if (i != state_count) { in sbi_cpuidle_dt_init_states() 303 ret = sbi_dt_cpu_init_topology(drv, data, state_count, cpu); in sbi_cpuidle_dt_init_states() 327 unsigned int state_count = 0; in sbi_cpuidle_init_cpu() local 359 state_count = ret + 1; /* Include WFI state as well */ in sbi_cpuidle_init_cpu() [all …]
|
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 | 72 for (i = drv->state_count - 1; i >= 0; i--) in cpuidle_play_dead() 88 for (i = 1; i < drv->state_count; i++) { in find_deepest_state() 287 for (i = entered_state + 1; i < drv->state_count; i++) { in cpuidle_enter_state() 409 for (i = 1; i < drv->state_count; i++) { in cpuidle_poll_time() 610 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() 211 if (!drv || !drv->state_count) in __cpuidle_register_driver()
|
/linux-6.1.9/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-6.1.9/drivers/acpi/ |
D | processor_throttling.c | 236 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier() 238 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier() 308 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed() 370 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate() 512 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states() 522 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states() 668 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt() 685 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt() 821 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state() 836 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value() [all …]
|
D | processor_perflib.c | 80 if (ppc >= pr->performance->state_count || in acpi_processor_get_platform_limit() 143 if (!pr || !pr->performance || !pr->performance->state_count) in acpi_processor_get_bios_limit() 312 pr->performance->state_count = pss->package.count; in acpi_processor_get_performance_states() 322 for (i = 0; i < pr->performance->state_count; i++) { in acpi_processor_get_performance_states() 384 pr->performance->state_count = last_invalid; in acpi_processor_get_performance_states()
|
/linux-6.1.9/arch/arm/mach-omap2/ |
D | pm33xx-core.c | 389 int state_count = 1; in amx3_idle_init() local 405 states[state_count].wfi_flags = 0; in amx3_idle_init() 408 states[state_count].wfi_flags |= WFI_FLAG_WAKE_M3 | in amx3_idle_init() 411 state_count++; in amx3_idle_init() 414 idle_states = kcalloc(state_count, sizeof(*idle_states), GFP_KERNEL); in amx3_idle_init() 418 for (i = 1; i < state_count; i++) in amx3_idle_init()
|
/linux-6.1.9/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 | 207 for (i = 0; i < perf->state_count; i++) { in extract_io() 510 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq() 518 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq() 753 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 800 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 809 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 824 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 881 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-6.1.9/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-6.1.9/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 | 203 for (i = 0; i < drv->state_count; i++) { in teo_update() 314 if (drv->state_count < 2) { in teo_select() 331 for (i = 1; i < drv->state_count; i++) { in teo_select()
|
/linux-6.1.9/drivers/xen/ |
D | xen-acpi-processor.c | 145 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data() 150 dst_perf->state_count = _pr->performance->state_count; in xen_copy_pss_data() 151 for (i = 0; i < _pr->performance->state_count; i++) { in xen_copy_pss_data() 249 for (i = 0; i < perf->state_count; i++) { in push_pxx_to_hypervisor()
|
/linux-6.1.9/drivers/idle/ |
D | intel_idle.c | 1557 state = &drv->states[drv->state_count++]; in intel_idle_init_cstates_acpi() 1896 drv->states[drv->state_count] = cpuidle_state_table[cstate]; in intel_idle_init_cstates_icpu() 1899 drv->states[drv->state_count].enter = intel_idle_irq; in intel_idle_init_cstates_icpu() 1904 drv->states[drv->state_count].enter = intel_idle_ibrs; in intel_idle_init_cstates_icpu() 1908 drv->states[drv->state_count].enter = intel_idle_xstate; in intel_idle_init_cstates_icpu() 1910 if ((disabled_states_mask & BIT(drv->state_count)) || in intel_idle_init_cstates_icpu() 1914 drv->states[drv->state_count].flags |= CPUIDLE_FLAG_OFF; in intel_idle_init_cstates_icpu() 1916 if (intel_idle_state_needs_timer_stop(&drv->states[drv->state_count])) in intel_idle_init_cstates_icpu() 1917 drv->states[drv->state_count].flags |= CPUIDLE_FLAG_TIMER_STOP; in intel_idle_init_cstates_icpu() 1919 drv->state_count++; in intel_idle_init_cstates_icpu() [all …]
|
/linux-6.1.9/arch/arm/mach-imx/ |
D | cpuidle-imx5.c | 28 .state_count = 1,
|
D | cpuidle-imx6sl.c | 46 .state_count = 2,
|