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