Lines Matching refs:state_node
23 struct device_node *state_node)
41 err = of_property_read_u32(state_node, "wakeup-latency-us",
46 err = of_property_read_u32(state_node, "entry-latency-us",
50 state_node);
54 err = of_property_read_u32(state_node, "exit-latency-us",
58 state_node);
68 err = of_property_read_u32(state_node, "min-residency-us",
72 state_node);
76 err = of_property_read_string(state_node, "idle-state-name", &desc);
78 desc = state_node->name;
81 if (of_property_read_bool(state_node, "local-timer-stop"))
88 strncpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN - 1);
97 static bool idle_state_valid(struct device_node *state_node, unsigned int idx,
107 * cpumask_first(cpumask) since that's the CPU state_node was
115 if (state_node != curr_state_node)
154 struct device_node *state_node, *cpu_node;
172 state_node = of_get_cpu_state_node(cpu_node, i);
173 if (!state_node)
176 match_id = of_match_node(matches, state_node);
182 if (!of_device_is_available(state_node)) {
183 of_node_put(state_node);
187 if (!idle_state_valid(state_node, i, cpumask)) {
189 state_node);
200 err = init_state_node(idle_state, match_id, state_node);
203 state_node, err);
207 of_node_put(state_node);
210 of_node_put(state_node);