/linux/drivers/cpuidle/ |
H A 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 …]
|
H A 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()
|
H A D | cpuidle-psci.c | 224 unsigned int state_count, int cpu) in psci_dt_cpu_init_topology() argument 242 drv->states[state_count - 1].enter_s2idle = psci_enter_s2idle_domain_idle_state; in psci_dt_cpu_init_topology() 244 drv->states[state_count - 1].enter = psci_enter_domain_idle_state; in psci_dt_cpu_init_topology() 253 unsigned int state_count, int cpu) in psci_dt_cpu_init_idle() argument 260 state_count++; /* Add WFI state too */ in psci_dt_cpu_init_idle() 261 psci_states = devm_kcalloc(dev, state_count, sizeof(*psci_states), in psci_dt_cpu_init_idle() 266 for (i = 1; i < state_count; i++) { in psci_dt_cpu_init_idle() 280 if (i != state_count) in psci_dt_cpu_init_idle() 284 ret = psci_dt_cpu_init_topology(drv, data, state_count, cpu); in psci_dt_cpu_init_idle() 294 unsigned int cpu, unsigned int state_count) in psci_cpu_init_idle() argument [all …]
|
H A D | cpuidle-riscv-sbi.c | 210 unsigned int state_count, int cpu) in sbi_dt_cpu_init_topology() argument 225 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; in sbi_dt_cpu_init_topology() 226 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; in sbi_dt_cpu_init_topology() 227 drv->states[state_count - 1].enter_s2idle = in sbi_dt_cpu_init_topology() 237 unsigned int state_count) in sbi_cpuidle_dt_init_states() argument 248 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL); in sbi_cpuidle_dt_init_states() 253 for (i = 1; i < state_count; i++) { in sbi_cpuidle_dt_init_states() 266 if (i != state_count) in sbi_cpuidle_dt_init_states() 270 ret = sbi_dt_cpu_init_topology(drv, data, state_count, cpu); in sbi_cpuidle_dt_init_states() 291 unsigned int state_count = 0; in sbi_cpuidle_init_cpu() local [all …]
|
H A D | cpuidle-mvebu-v7.c | 72 .state_count = 3, 87 .state_count = 2, 102 .state_count = 2,
|
H A 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()
|
H A D | cpuidle-exynos.c | 89 .state_count = 2, 108 .state_count = 2,
|
H A D | cpuidle-big_little.c | 72 .state_count = 2, 94 .state_count = 2,
|
H A D | cpuidle-zynq.c | 48 .state_count = ZYNQ_MAX_STATES,
|
/linux/security/apparmor/ |
H A D | policy_compat.c | 154 unsigned int state_count; in compute_fperms() local 159 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in compute_fperms() 161 table = kvcalloc(state_count * 2, sizeof(struct aa_perms), GFP_KERNEL); in compute_fperms() 164 *size = state_count * 2; in compute_fperms() 166 for (state = 0; state < state_count; state++) { in compute_fperms() 179 int state_count; in compute_xmatch_perms() local 183 state_count = xmatch->tables[YYTD_ID_BASE]->td_lolen; in compute_xmatch_perms() 185 perms = kvcalloc(state_count, sizeof(struct aa_perms), GFP_KERNEL); in compute_xmatch_perms() 188 *size = state_count; in compute_xmatch_perms() 191 for (state = 1; state < state_count; state++) in compute_xmatch_perms() [all …]
|
H A D | match.c | 105 size_t state_count, trans_count; in verify_table_headers() local 114 state_count = tables[YYTD_ID_BASE]->td_lolen; in verify_table_headers() 118 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen) in verify_table_headers() 124 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen) in verify_table_headers() 127 if (state_count != tables[YYTD_ID_DEF]->td_lolen) in verify_table_headers() 155 size_t i, state_count, trans_count; in verify_dfa() local 158 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen; in verify_dfa() 160 if (state_count == 0) in verify_dfa() 162 for (i = 0; i < state_count; i++) { in verify_dfa() 164 (DEFAULT_TABLE(dfa)[i] >= state_count)) in verify_dfa() [all...] |
/linux/drivers/isdn/mISDN/ |
H A 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/drivers/acpi/ |
H A D | processor_throttling.c | 234 if (target_state >= p_throttling->state_count) { in acpi_processor_throttling_notifier() 236 target_state = p_throttling->state_count - 1; in acpi_processor_throttling_notifier() 306 if (throttling_limit >= pr->throttling.state_count) { in acpi_processor_tstate_has_changed() 368 if (!pr->throttling.state_count) { in acpi_processor_reevaluate_tstate() 510 pr->throttling.state_count = tss->package.count; in acpi_processor_get_throttling_states() 520 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_processor_get_throttling_states() 666 duty_mask = pr->throttling.state_count - 1; in acpi_processor_get_throttling_fadt() 683 state = pr->throttling.state_count - duty_value; in acpi_processor_get_throttling_fadt() 819 for (i = 0; i < pr->throttling.state_count; i++) { in acpi_get_throttling_state() 834 if (state >= 0 && state <= pr->throttling.state_count) { in acpi_get_throttling_value() [all …]
|
/linux/arch/arm/mach-omap2/ |
H A D | pm33xx-core.c | 384 int state_count = 1; in amx3_idle_init() local 400 states[state_count].wfi_flags = 0; in amx3_idle_init() 403 states[state_count].wfi_flags |= WFI_FLAG_WAKE_M3 | in amx3_idle_init() 406 state_count++; in amx3_idle_init() 409 idle_states = kcalloc(state_count, sizeof(*idle_states), GFP_KERNEL); in amx3_idle_init() 413 for (i = 1; i < state_count; i++) in amx3_idle_init()
|
H A D | cpuidle44xx.c | 267 .state_count = ARRAY_SIZE(omap4_idle_data), 294 .state_count = ARRAY_SIZE(omap5_idle_data),
|
H A D | cpuidle34xx.c | 324 .state_count = ARRAY_SIZE(omap3_idle_data), 394 .state_count = ARRAY_SIZE(omap3_idle_data),
|
/linux/drivers/cpuidle/governors/ |
H A D | teo.c | 187 for (i = 0; i < drv->state_count; i++) { in teo_update() 216 idx_timer = drv->state_count; in teo_update() 307 if (drv->state_count < 2) { in teo_select() 316 for (i = 1; i < drv->state_count; i++) { in teo_select() 359 cpu_data->state_bins[drv->state_count-1].intercepts; in teo_select()
|
H A D | ladder.c | 88 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()
|
/linux/drivers/cpufreq/ |
H A D | acpi-cpufreq.c | 204 for (i = 0; i < perf->state_count; i++) { in extract_io() 507 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq() 515 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq() 747 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init() 794 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 803 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 818 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init() 875 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
|
H A 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/drivers/xen/ |
H A 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/arch/arm/mach-imx/ |
H A D | cpuidle-imx5.c | 28 .state_count = 1,
|
H A D | cpuidle-imx6sl.c | 46 .state_count = 2,
|
H A D | cpuidle-imx7ulp.c | 53 .state_count = 3,
|
/linux/arch/arm/mach-s3c/ |
H A D | cpuidle-s3c64xx.c | 50 .state_count = 1,
|