Lines Matching refs:state_node
22 struct device_node *state_node) in init_state_node() argument
40 err = of_property_read_u32(state_node, "wakeup-latency-us", in init_state_node()
45 err = of_property_read_u32(state_node, "entry-latency-us", in init_state_node()
49 state_node); in init_state_node()
53 err = of_property_read_u32(state_node, "exit-latency-us", in init_state_node()
57 state_node); in init_state_node()
67 err = of_property_read_u32(state_node, "min-residency-us", in init_state_node()
71 state_node); in init_state_node()
75 err = of_property_read_string(state_node, "idle-state-name", &desc); in init_state_node()
77 desc = state_node->name; in init_state_node()
80 if (of_property_read_bool(state_node, "local-timer-stop")) in init_state_node()
87 strscpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN); in init_state_node()
96 static bool idle_state_valid(struct device_node *state_node, unsigned int idx, in idle_state_valid() argument
114 if (state_node != curr_state_node) in idle_state_valid()
153 struct device_node *state_node, *cpu_node; in dt_init_idle_driver() local
171 state_node = of_get_cpu_state_node(cpu_node, i); in dt_init_idle_driver()
172 if (!state_node) in dt_init_idle_driver()
175 match_id = of_match_node(matches, state_node); in dt_init_idle_driver()
181 if (!of_device_is_available(state_node)) { in dt_init_idle_driver()
182 of_node_put(state_node); in dt_init_idle_driver()
186 if (!idle_state_valid(state_node, i, cpumask)) { in dt_init_idle_driver()
188 state_node); in dt_init_idle_driver()
199 err = init_state_node(idle_state, match_id, state_node); in dt_init_idle_driver()
202 state_node, err); in dt_init_idle_driver()
206 of_node_put(state_node); in dt_init_idle_driver()
209 of_node_put(state_node); in dt_init_idle_driver()