Lines Matching refs:phandle
558 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
562 if (!phandle_is_valid(phandle)) { in get_node_by_phandle()
567 if (tree->phandle == phandle) { in get_node_by_phandle()
574 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
621 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
624 if (phandle_is_valid(node->phandle)) in get_node_phandle()
625 return node->phandle; in get_node_phandle()
627 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
628 phandle++; in get_node_phandle()
630 node->phandle = phandle; in get_node_phandle()
633 d = data_append_cell(d, phandle); in get_node_phandle()
647 return node->phandle; in get_node_phandle()