Lines Matching refs:states
32 u32 *states;
99 u32 *states = __this_cpu_read(sbi_cpuidle_data.states);
100 u32 state = states[idx];
114 u32 *states = data->states;
134 state = states[idx];
251 * of a shared state for the domain, assumes the domain states are all
252 * deeper states.
254 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE;
255 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state;
256 drv->states[state_count - 1].enter_s2idle =
271 u32 *states;
278 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL);
279 if (!states) {
290 ret = sbi_dt_parse_state_node(state_node, &states[i]);
296 pr_debug("sbi-state %#x index %d\n", states[i], i);
308 /* Store states in the per-cpu struct. */
309 data->states = states;
340 drv->states[0].enter = sbi_cpuidle_enter_state;
341 drv->states[0].exit_latency = 1;
342 drv->states[0].target_residency = 1;
343 drv->states[0].power_usage = UINT_MAX;
344 strcpy(drv->states[0].name, "WFI");
345 strcpy(drv->states[0].desc, "RISC-V WFI");
348 * If no DT idle states are detected (ret == 0) let the driver
356 pr_debug("HART%ld: failed to parse DT idle states\n",
362 /* Initialize idle states from DT. */
365 pr_err("HART%ld: failed to init idle states\n",
386 * topology, hence it's fine to allow domain states to be picked.
395 struct genpd_power_state *state = &pd->states[pd->state_idx];
441 /* Use governor for CPU PM domains if it has some states to manage. */
442 pd_gov = pd->states ? &pm_domain_cpu_gov : NULL;