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