Lines Matching refs:state_node

26 			   struct device_node *state_node)  in init_state_node()  argument
32 match_id = of_match_node(matches, state_node); in init_state_node()
48 err = of_property_read_u32(state_node, "wakeup-latency-us", in init_state_node()
53 err = of_property_read_u32(state_node, "entry-latency-us", in init_state_node()
57 state_node); in init_state_node()
61 err = of_property_read_u32(state_node, "exit-latency-us", in init_state_node()
65 state_node); in init_state_node()
75 err = of_property_read_u32(state_node, "min-residency-us", in init_state_node()
79 state_node); in init_state_node()
83 err = of_property_read_string(state_node, "idle-state-name", &desc); in init_state_node()
85 desc = state_node->name; in init_state_node()
88 if (of_property_read_bool(state_node, "local-timer-stop")) in init_state_node()
95 strncpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN - 1); in init_state_node()
104 static bool idle_state_valid(struct device_node *state_node, unsigned int idx, in idle_state_valid() argument
123 if (state_node != curr_state_node) in idle_state_valid()
162 struct device_node *state_node, *cpu_node; in dt_init_idle_driver() local
179 state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); in dt_init_idle_driver()
180 if (!state_node) in dt_init_idle_driver()
183 if (!of_device_is_available(state_node)) { in dt_init_idle_driver()
184 of_node_put(state_node); in dt_init_idle_driver()
188 if (!idle_state_valid(state_node, i, cpumask)) { in dt_init_idle_driver()
190 state_node); in dt_init_idle_driver()
201 err = init_state_node(idle_state, matches, state_node); in dt_init_idle_driver()
204 state_node, err); in dt_init_idle_driver()
208 of_node_put(state_node); in dt_init_idle_driver()
211 of_node_put(state_node); in dt_init_idle_driver()