Lines Matching refs:niu_dip
99 static int vdds_destroy_niu_node(dev_info_t *niu_dip, uint64_t cookie);
582 dev_info_t *niu_dip; in vdds_create_niu_node() local
612 niu_dip = vdds_find_node(cookie, nexus_dip, in vdds_create_niu_node()
614 if (niu_dip == NULL) { in vdds_create_niu_node()
619 niu_dip = vdds_create_new_node(&cba, nexus_dip, in vdds_create_niu_node()
625 if (niu_dip != NULL) { in vdds_create_niu_node()
626 e_ddi_hold_devi(niu_dip); in vdds_create_niu_node()
632 niu_dip); in vdds_create_niu_node()
635 if ((niu_dip != NULL) && (e_ddi_branch_held(niu_dip))) in vdds_create_niu_node()
636 e_ddi_branch_rele(niu_dip); in vdds_create_niu_node()
640 DBG1(NULL, "returning niu_dip=0x%p", niu_dip); in vdds_create_niu_node()
641 return (niu_dip); in vdds_create_niu_node()
648 vdds_destroy_niu_node(dev_info_t *niu_dip, uint64_t cookie) in vdds_destroy_niu_node() argument
652 dev_info_t *nexus_dip = ddi_get_parent(niu_dip); in vdds_destroy_niu_node()
659 if (!e_ddi_branch_held(niu_dip)) in vdds_destroy_niu_node()
660 e_ddi_branch_hold(niu_dip); in vdds_destroy_niu_node()
665 ddi_release_devi(niu_dip); in vdds_destroy_niu_node()
666 rv = e_ddi_branch_destroy(niu_dip, &fdip, 0); in vdds_destroy_niu_node()
669 niu_dip); in vdds_destroy_niu_node()