Lines Matching refs:pnode
120 /* clear out pointers in pnode */
407 get_node_name(Prom_node *pnode)
411 if (pnode == NULL) {
415 prop = pnode->props;
429 get_node_type(Prom_node *pnode)
433 if (pnode == NULL) {
437 prop = pnode->props;
506 Prom_node *pnode;
516 if ((pnode = find_failed_node(root->child)) != NULL)
517 return (pnode);
520 if ((pnode = find_failed_node(root->sibling)) != NULL)
521 return (pnode);
533 Prom_node *pnode;
540 if ((pnode = find_failed_node(root->child)) != NULL) {
541 return (pnode);
545 if ((pnode = find_failed_node(root->sibling)) != NULL) {
546 return (pnode);
552 if ((pnode = find_failed_node(parent->sibling)) != NULL)
553 return (pnode);
611 find_prop(Prom_node *pnode, const char *name)
615 if (pnode == NULL) {
619 if (pnode->props == NULL) {
625 prop = pnode->props;
637 add_node(Sys_tree *root, Prom_node *pnode)
644 if ((board = get_board_num(pnode)) == -1) {
657 pnode->sibling = NULL;
659 bnode->nodes = pnode;
664 p->sibling = pnode;
677 Prom_node *pnode;
681 pnode = dev_find_node(board->nodes, name);
684 while (pnode != NULL) {
685 if ((get_id(pnode) & mask) == id)
686 return (pnode);
688 pnode = dev_next_node(pnode, name);