Lines Matching refs:node
116 dump_node(Prom_node *node)
124 node->props = NULL;
225 if (node->props == NULL)
226 node->props = new;
312 * Check if the Prom node passed in contains a property called
316 has_board_num(Prom_node *node)
318 Prop *prop = node->props;
321 * walk thru all properties in this PROM node and look for
336 * node. It has the type of int.
339 get_board_num(Prom_node *node)
341 Prop *prop = node->props;
344 * walk thru all properties in this PROM node and look for
406 * This function searches through the properties of the node passed in
428 * This function searches through the properties of the node passed in
451 * return the first node with the name matching.
457 Prom_node *node;
459 node = dev_find_node_by_type(root, "name", name);
461 return (node);
467 Prom_node *node;
469 node = dev_next_node_by_type(root, "name", name);
471 return (node);
475 * Search for and return a node of the required type. If no node is found,
481 Prom_node *node;
483 node = dev_find_node_by_type(root, "device_type", type);
485 return (node); /* not found */
489 * Start from the current node and return the next node besides the
495 Prom_node *node;
497 node = dev_next_node_by_type(root, "device_type", type);
499 return (node); /* not found */
503 * Search a device tree and return the first failed node that is found.
530 * Start from the current node and return the next node besides
567 * This function determines if the current Prom node is failed. This
571 node_failed(Prom_node *node)
573 return (node_status(node, "fail"));
577 node_status(Prom_node *node, char *status)
584 /* search the local node */
585 if ((value = get_prop_val(find_prop(node, "status"))) != NULL) {
610 * Search a Prom node and retrieve the property with the correct
623 (void) printf("%s", dgettext(TEXT_DOMAIN, "Prom node has "
636 * This function adds a board node to the board structure where that
637 * that node's physical component lives.
646 /* add this node to the Board list of the appropriate board */
652 /* find the node with the same board number */
658 /* now attach this prom node to the board list */
659 /* Insert this node at the end of the list */
683 /* find the first cpu node */
699 Prom_node *node;
714 if ((node = dev_find_node_by_type(root->child, type,
716 return (node);
719 if ((node = dev_find_node_by_type(root->sibling, type,
721 return (node);
729 Prom_node *node;
735 if ((node = dev_find_node_by_type(root->child, type,
737 return (node);
740 if ((node = dev_find_node_by_type(root->sibling, type,
742 return (node);
745 if ((node = dev_find_node_by_type(root->parent->sibling,
747 return (node);
754 * return the first node with the matching compatible.
759 Prom_node *node;
789 node = dev_find_node_by_compatible(root->child, compatible);
790 if (node != NULL)
791 return (node);
808 * Start from the current node and return the next node besides
814 Prom_node *node;
819 node = dev_find_node_by_compatible(root->child, compatible);
820 if (node != NULL)
821 return (node);
828 node = dev_find_node_by_compatible(root->sibling, compatible);
829 if (node != NULL)
830 return (node);