Lines Matching defs:phandle
559 struct node *get_node_by_phandle(struct node *tree, cell_t phandle)
563 if (!phandle_is_valid(phandle)) {
568 if (tree->phandle == phandle) {
575 node = get_node_by_phandle(child, phandle);
631 d = data_append_cell(d, node->phandle);
638 static cell_t phandle = 1; /* FIXME: ick, static local */
640 if (phandle_is_valid(node->phandle))
641 return node->phandle;
643 while (get_node_by_phandle(root, phandle))
644 phandle++;
646 node->phandle = phandle;
648 add_phandle_property(node, "linux,phandle", PHANDLE_LEGACY);
649 add_phandle_property(node, "phandle", PHANDLE_EPAPR);
651 /* If the node *does* have a phandle property, we must
652 * be dealing with a self-referencing phandle, which will be
655 return node->phandle;
890 /* force allocation of a phandle for this node */