Lines Matching refs:child
607 if (dp->child) { in fc_remove_subtree()
608 fc_remove_subtree(dp->child); in fc_remove_subtree()
609 dp->child = NULL; in fc_remove_subtree()
627 ASSERT((dp->child == NULL) && (dp->peer == NULL)); in fc_remove_subtree()
650 if (dp->child) in fc_remove_device_tree()
651 fc_remove_device_tree(&dp->child); in fc_remove_device_tree()
656 ASSERT((dp->child == NULL) && (dp->peer == NULL)); in fc_remove_device_tree()
671 if (hp->child) in fc_find_node()
672 if ((p = fc_find_node(dip, hp->child)) != NULL) in fc_find_node()
681 fc_add_child(dev_info_t *child, dev_info_t *parent, struct fc_device_tree *hp) in fc_add_child() argument
686 q->dip = child; in fc_add_child()
692 p = fc_find_node(child, hp); in fc_add_child()
699 q->peer = p->child; in fc_add_child()
700 p->child = q; in fc_add_child()
706 fc_remove_child(dev_info_t *child, struct fc_device_tree *head) in fc_remove_child() argument
709 dev_info_t *parent = ddi_get_parent(child); in fc_remove_child()
719 c = fc_find_node(child, p); in fc_remove_child()
721 ASSERT(c->child == NULL); in fc_remove_child()
727 if (p->child == c) { in fc_remove_child()
728 p->child = c->peer; in fc_remove_child()
731 for (n = p->child; n->peer; n = n->peer) { in fc_remove_child()
754 if (p && p->child) in fc_child_node()
755 dip = p->child->dip; in fc_child_node()