Lines Matching refs:child
252 } else if (prev->child) { in __of_find_all_nodes()
253 np = prev->child; in __of_find_all_nodes()
648 next = prev ? prev->sibling : node->child; in __of_get_next_child()
655 #define __for_each_child_of_node(parent, child) \ argument
656 for (child = __of_get_next_child(parent, NULL); child != NULL; \
657 child = __of_get_next_child(parent, child))
699 next = prev ? prev->sibling : node->child; in of_get_next_available_child()
726 struct device_node *child; in of_get_child_by_name() local
728 for_each_child_of_node(node, child) in of_get_child_by_name()
729 if (child->name && (of_node_cmp(child->name, name) == 0)) in of_get_child_by_name()
731 return child; in of_get_child_by_name()
738 struct device_node *child; in __of_find_node_by_path() local
745 __for_each_child_of_node(parent, child) { in __of_find_node_by_path()
746 const char *name = strrchr(child->full_name, '/'); in __of_find_node_by_path()
747 if (WARN(!name, "malformed device_node %s\n", child->full_name)) in __of_find_node_by_path()
751 return child; in __of_find_node_by_path()
2081 struct device_node *child; in of_find_next_cache_node() local
2095 for_each_child_of_node(np, child) in of_find_next_cache_node()
2096 if (!strcmp(child->type, "cache")) in of_find_next_cache_node()
2097 return child; in of_find_next_cache_node()