Lines Matching refs:states
32 u32 *states;
79 u32 *states = __this_cpu_read(sbi_cpuidle_data.states);
80 u32 state = states[idx];
94 u32 *states = data->states;
114 state = states[idx];
220 * of a shared state for the domain, assumes the domain states are all
221 * deeper states.
223 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE;
224 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state;
225 drv->states[state_count - 1].enter_s2idle =
240 u32 *states;
247 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL);
248 if (!states) {
259 ret = sbi_dt_parse_state_node(state_node, &states[i]);
265 pr_debug("sbi-state %#x index %d\n", states[i], i);
277 /* Store states in the per-cpu struct. */
278 data->states = states;
309 drv->states[0].enter = sbi_cpuidle_enter_state;
310 drv->states[0].exit_latency = 1;
311 drv->states[0].target_residency = 1;
312 drv->states[0].power_usage = UINT_MAX;
313 strcpy(drv->states[0].name, "WFI");
314 strcpy(drv->states[0].desc, "RISC-V WFI");
317 * If no DT idle states are detected (ret == 0) let the driver
325 pr_debug("HART%ld: failed to parse DT idle states\n",
331 /* Initialize idle states from DT. */
334 pr_err("HART%ld: failed to init idle states\n",
355 * topology, hence it's fine to allow domain states to be picked.
364 struct genpd_power_state *state = &pd->states[pd->state_idx];
410 /* Use governor for CPU PM domains if it has some states to manage. */
411 pd_gov = pd->states ? &pm_domain_cpu_gov : NULL;