Lines Matching refs:phandle
263 struct node *get_node_by_phandle(struct node *tree, cell_t phandle)
267 assert((phandle != 0) && (phandle != -1));
269 if (tree->phandle == phandle)
273 node = get_node_by_phandle(child, phandle);
291 static cell_t phandle = 1;
293 if ((node->phandle != 0) && (node->phandle != -1))
294 return node->phandle;
296 assert(! get_property(node, "linux,phandle"));
298 while (get_node_by_phandle(root, phandle))
299 phandle++;
301 node->phandle = phandle;
303 build_property("linux,phandle",
304 data_append_cell(empty_data, phandle),
307 return node->phandle;