Lines Matching refs:phandle
533 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
537 assert((phandle != 0) && (phandle != -1)); in get_node_by_phandle()
539 if (tree->phandle == phandle) { in get_node_by_phandle()
546 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
566 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
568 if ((node->phandle != 0) && (node->phandle != -1)) in get_node_phandle()
569 return node->phandle; in get_node_phandle()
571 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
572 phandle++; in get_node_phandle()
574 node->phandle = phandle; in get_node_phandle()
580 data_append_cell(empty_data, phandle))); in get_node_phandle()
586 data_append_cell(empty_data, phandle))); in get_node_phandle()
592 return node->phandle; in get_node_phandle()