Lines Matching full:states

34 	struct genpd_power_state *state = &pd->states[pd->state_idx];  in psci_pd_power_off()
50 static int psci_pd_parse_state_nodes(struct genpd_power_state *states, in psci_pd_parse_state_nodes() argument
57 ret = psci_dt_parse_state_node(to_of_node(states[i].fwnode), in psci_pd_parse_state_nodes()
68 states[i].data = psci_state_buf; in psci_pd_parse_state_nodes()
76 kfree(states[i].data); in psci_pd_parse_state_nodes()
81 struct genpd_power_state **states, int *state_count) in psci_pd_parse_states() argument
85 /* Parse the domain idle states. */ in psci_pd_parse_states()
86 ret = of_genpd_parse_idle_states(np, states, state_count); in psci_pd_parse_states()
91 ret = psci_pd_parse_state_nodes(*states, *state_count); in psci_pd_parse_states()
93 kfree(*states); in psci_pd_parse_states()
98 static void psci_pd_free_states(struct genpd_power_state *states, in psci_pd_free_states() argument
104 kfree(states[i].data); in psci_pd_free_states()
105 kfree(states); in psci_pd_free_states()
113 struct genpd_power_state *states = NULL; in psci_pd_init() local
129 * Parse the domain idle states and let genpd manage the state selection in psci_pd_init()
132 ret = psci_pd_parse_states(np, &states, &state_count); in psci_pd_init()
138 pd->states = states; in psci_pd_init()
148 /* Use governor for CPU PM domains if it has some states to manage. */ in psci_pd_init()
153 psci_pd_free_states(states, state_count); in psci_pd_init()
242 * hence it's fine to allow domain states to be picked. in psci_cpuidle_domain_sync_state()