Lines Matching refs:child

168     else if (prev->child)  in ofw_get_next_node()
170 np = prev->child; in ofw_get_next_node()
194 prev = np->parent->child; in ofw_node_destroy()
198 np->parent->child = RT_NULL; in ofw_node_destroy()
702 struct rt_ofw_node *child = RT_NULL; in rt_ofw_get_child_by_tag() local
706 rt_ofw_foreach_child_node(parent, child) in rt_ofw_get_child_by_tag()
708 if (rt_ofw_node_tag_equ(child, tag)) in rt_ofw_get_child_by_tag()
715 return child; in rt_ofw_get_child_by_tag()
720 struct rt_ofw_node *child = RT_NULL; in rt_ofw_get_child_by_compatible() local
724 rt_ofw_foreach_child_node(parent, child) in rt_ofw_get_child_by_compatible()
726 if (ofw_node_index_of_compatible(child, compatible) >= 0) in rt_ofw_get_child_by_compatible()
733 return child; in rt_ofw_get_child_by_compatible()
742 struct rt_ofw_node *child; in rt_ofw_get_child_count() local
746 rt_ofw_foreach_child_node(np, child) in rt_ofw_get_child_count()
765 struct rt_ofw_node *child; in rt_ofw_get_available_child_count() local
769 rt_ofw_foreach_available_child_node(np, child) in rt_ofw_get_available_child_count()
811 next = prev ? prev->sibling : parent->child; in rt_ofw_get_next_child()
932 cpu_np = ofw_node_cpus->child; in rt_ofw_get_next_cpu_node()
1004 struct rt_ofw_node *np = ofw_node_cpus->child; in rt_ofw_get_cpu_id()
1362 struct rt_ofw_node *np = RT_NULL, *child; in rt_ofw_append_child() local
1389 if (parent->child) in rt_ofw_append_child()
1391 rt_ofw_foreach_child_node(parent, child) in rt_ofw_append_child()
1393 if (!child->sibling) in rt_ofw_append_child()
1395 child->sibling = np; in rt_ofw_append_child()
1396 rt_ofw_node_put(child); in rt_ofw_append_child()
1403 parent->child = np; in rt_ofw_append_child()