Lines Matching refs:states
32 u32 *states; member
99 u32 *states = __this_cpu_read(sbi_cpuidle_data.states); in sbi_cpuidle_enter_state() local
100 u32 state = states[idx]; in sbi_cpuidle_enter_state()
114 u32 *states = data->states; in __sbi_enter_domain_idle_state() local
134 state = states[idx]; in __sbi_enter_domain_idle_state()
254 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; in sbi_dt_cpu_init_topology()
255 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; in sbi_dt_cpu_init_topology()
256 drv->states[state_count - 1].enter_s2idle = in sbi_dt_cpu_init_topology()
271 u32 *states; in sbi_cpuidle_dt_init_states() local
278 states = devm_kcalloc(dev, state_count, sizeof(*states), GFP_KERNEL); in sbi_cpuidle_dt_init_states()
279 if (!states) { in sbi_cpuidle_dt_init_states()
290 ret = sbi_dt_parse_state_node(state_node, &states[i]); in sbi_cpuidle_dt_init_states()
296 pr_debug("sbi-state %#x index %d\n", states[i], i); in sbi_cpuidle_dt_init_states()
309 data->states = states; in sbi_cpuidle_dt_init_states()
340 drv->states[0].enter = sbi_cpuidle_enter_state; in sbi_cpuidle_init_cpu()
341 drv->states[0].exit_latency = 1; in sbi_cpuidle_init_cpu()
342 drv->states[0].target_residency = 1; in sbi_cpuidle_init_cpu()
343 drv->states[0].power_usage = UINT_MAX; in sbi_cpuidle_init_cpu()
344 strcpy(drv->states[0].name, "WFI"); in sbi_cpuidle_init_cpu()
345 strcpy(drv->states[0].desc, "RISC-V WFI"); in sbi_cpuidle_init_cpu()
395 struct genpd_power_state *state = &pd->states[pd->state_idx]; in sbi_cpuidle_pd_power_off()
442 pd_gov = pd->states ? &pm_domain_cpu_gov : NULL; in sbi_pd_init()