Lines Matching refs:node

29 static struct device_node *__of_find_node_by_full_name(struct device_node *node,  in __of_find_node_by_full_name()  argument
34 if (node == NULL) in __of_find_node_by_full_name()
38 if (of_node_cmp(node->full_name, full_name) == 0) in __of_find_node_by_full_name()
39 return node; in __of_find_node_by_full_name()
41 for_each_child_of_node(node, child) { in __of_find_node_by_full_name()
55 struct device_node *node; in of_get_tree_max_phandle() local
62 for_each_of_allnodes(node) { in of_get_tree_max_phandle()
63 if (node->phandle != OF_PHANDLE_ILLEGAL && in of_get_tree_max_phandle()
64 node->phandle > phandle) in of_get_tree_max_phandle()
65 phandle = node->phandle; in of_get_tree_max_phandle()
77 static void __of_adjust_tree_phandles(struct device_node *node, in __of_adjust_tree_phandles() argument
85 if (node->phandle != 0 && node->phandle != OF_PHANDLE_ILLEGAL) in __of_adjust_tree_phandles()
86 node->phandle += phandle_delta; in __of_adjust_tree_phandles()
89 for_each_property_of_node(node, prop) { in __of_adjust_tree_phandles()
106 *(uint32_t *)prop->value = cpu_to_be32(node->phandle); in __of_adjust_tree_phandles()
110 for_each_child_of_node(node, child) in __of_adjust_tree_phandles()
114 static int __of_adjust_phandle_ref(struct device_node *node, in __of_adjust_phandle_ref() argument
165 refnode = __of_find_node_by_full_name(node, nodestr); in __of_adjust_phandle_ref()
211 static int __of_adjust_tree_phandle_references(struct device_node *node, in __of_adjust_tree_phandle_references() argument
220 if (node == NULL) in __of_adjust_tree_phandle_references()
223 for_each_property_of_node(node, rprop) { in __of_adjust_tree_phandle_references()
233 __func__, rprop->name, node->full_name); in __of_adjust_tree_phandle_references()
246 __func__, rprop->name, node->full_name); in __of_adjust_tree_phandle_references()
257 node->full_name); in __of_adjust_tree_phandle_references()
270 for_each_child_of_node(node, child) { in __of_adjust_tree_phandle_references()
278 __func__, child->name, node->full_name); in __of_adjust_tree_phandle_references()