Lines Matching refs:child
252 } else if (prev->child) { in __of_find_all_nodes()
253 np = prev->child; in __of_find_all_nodes()
645 next = prev ? prev->sibling : node->child; in __of_get_next_child()
652 #define __for_each_child_of_node(parent, child) \ argument
653 for (child = __of_get_next_child(parent, NULL); child != NULL; \
654 child = __of_get_next_child(parent, child))
696 next = prev ? prev->sibling : node->child; in of_get_next_available_child()
723 struct device_node *child; in of_get_child_by_name() local
725 for_each_child_of_node(node, child) in of_get_child_by_name()
726 if (child->name && (of_node_cmp(child->name, name) == 0)) in of_get_child_by_name()
728 return child; in of_get_child_by_name()
735 struct device_node *child; in __of_find_node_by_path() local
742 __for_each_child_of_node(parent, child) { in __of_find_node_by_path()
743 const char *name = strrchr(child->full_name, '/'); in __of_find_node_by_path()
744 if (WARN(!name, "malformed device_node %s\n", child->full_name)) in __of_find_node_by_path()
748 return child; in __of_find_node_by_path()
2078 struct device_node *child; in of_find_next_cache_node() local
2092 for_each_child_of_node(np, child) in of_find_next_cache_node()
2093 if (!strcmp(child->type, "cache")) in of_find_next_cache_node()
2094 return child; in of_find_next_cache_node()