Lines Matching refs:child
92 struct node *child; in build_node() local
100 for_each_child(new, child) { in build_node()
101 child->parent = new; in build_node()
298 void add_child(struct node *parent, struct node *child) in add_child() argument
302 child->next_sibling = NULL; in add_child()
303 child->parent = parent; in add_child()
309 *p = child; in add_child()
328 struct node *child; in delete_node() local
331 for_each_child(node, child) in delete_node()
332 delete_node(child); in delete_node()
503 struct node *child; in get_subnode() local
505 for_each_child(node, child) in get_subnode()
506 if (streq(child->name, nodename)) in get_subnode()
507 return child; in get_subnode()
515 struct node *child; in get_node_by_path() local
528 for_each_child(tree, child) { in get_node_by_path()
529 if (p && strprefixeq(path, (size_t)(p - path), child->name)) in get_node_by_path()
530 return get_node_by_path(child, p+1); in get_node_by_path()
531 else if (!p && streq(path, child->name)) in get_node_by_path()
532 return child; in get_node_by_path()
540 struct node *child, *node; in get_node_by_label() local
549 for_each_child(tree, child) { in get_node_by_label()
550 node = get_node_by_label(child, label); in get_node_by_label()
560 struct node *child, *node; in get_node_by_phandle() local
573 for_each_child(tree, child) { in get_node_by_phandle()
574 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()