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