Lines Matching defs:node

113 dump_node(Prom_node *node)
121 node->props = NULL;
222 if (node->props == NULL)
223 node->props = new;
309 * Check if the Prom node passed in contains a property called
313 has_board_num(Prom_node *node)
315 Prop *prop = node->props;
318 * walk thru all properties in this PROM node and look for
333 * node. It has the type of int.
336 get_board_num(Prom_node *node)
338 Prop *prop = node->props;
341 * walk thru all properties in this PROM node and look for
403 * This function searches through the properties of the node passed in
425 * This function searches through the properties of the node passed in
448 * return the first node with the name matching.
454 Prom_node *node;
456 node = dev_find_node_by_type(root, "name", name);
458 return (node);
464 Prom_node *node;
466 node = dev_next_node_by_type(root, "name", name);
468 return (node);
472 * Search for and return a node of the required type. If no node is found,
478 Prom_node *node;
480 node = dev_find_node_by_type(root, "device_type", type);
482 return (node); /* not found */
486 * Start from the current node and return the next node besides the
492 Prom_node *node;
494 node = dev_next_node_by_type(root, "device_type", type);
496 return (node); /* not found */
500 * Search a device tree and return the first failed node that is found.
527 * Start from the current node and return the next node besides
564 * This function determines if the current Prom node is failed. This
568 node_failed(Prom_node *node)
570 return (node_status(node, "fail"));
574 node_status(Prom_node *node, const char *status)
581 /* search the local node */
582 if ((value = get_prop_val(find_prop(node, "status"))) != NULL) {
607 * Search a Prom node and retrieve the property with the correct
620 (void) printf("%s", dgettext(TEXT_DOMAIN, "Prom node has "
633 * This function adds a board node to the board structure where that
634 * that node's physical component lives.
643 /* add this node to the Board list of the appropriate board */
649 /* find the node with the same board number */
655 /* now attach this prom node to the board list */
656 /* Insert this node at the end of the list */
680 /* find the first cpu node */
696 Prom_node *node;
711 if ((node = dev_find_node_by_type(root->child, type,
713 return (node);
716 if ((node = dev_find_node_by_type(root->sibling, type,
718 return (node);
726 Prom_node *node;
732 if ((node = dev_find_node_by_type(root->child, type,
734 return (node);
737 if ((node = dev_find_node_by_type(root->sibling, type,
739 return (node);
742 if ((node = dev_find_node_by_type(root->parent->sibling,
744 return (node);
751 * return the first node with the matching compatible.
756 Prom_node *node;
786 node = dev_find_node_by_compatible(root->child, compatible);
787 if (node != NULL)
788 return (node);
805 * Start from the current node and return the next node besides
811 Prom_node *node;
816 node = dev_find_node_by_compatible(root->child, compatible);
817 if (node != NULL)
818 return (node);
825 node = dev_find_node_by_compatible(root->sibling, compatible);
826 if (node != NULL)
827 return (node);