Lines Matching refs:state_count
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()
362 ret = sbi_cpuidle_dt_init_states(dev, drv, cpu, state_count); in sbi_cpuidle_init_cpu()