Lines Matching refs:cdev
473 dev_info_t *pdev, *cdev; in fco_new_device() local
492 cdev = fc_phandle_to_dip(fc_handle_to_phandle_head(rp), ch); in fco_new_device()
509 if (cdev != NULL) { in fco_new_device()
511 if (cdev != rp->child) in fco_new_device()
528 if (cdev) in fco_new_device()
565 if (cdev == NULL) in fco_new_device()
584 if (ndi_devi_alloc(pdev, nodename, DEVI_SID_NODEID, &cdev)) { in fco_new_device()
594 nodeid = ddi_get_nodeid(cdev); in fco_new_device()
595 i_ndi_set_nodeid(cdev, (int)ch); in fco_new_device()
605 } else if (strcmp(ddi_node_name(cdev), nodename) != 0) { in fco_new_device()
607 ddi_node_name(cdev), nodename); in fco_new_device()
608 if (ndi_devi_set_nodename(cdev, nodename, 0)) { in fco_new_device()
614 if (fc_ndi_prop_update(DDI_DEV_T_NONE, cdev, "name", in fco_new_device()
618 (void) ndi_devi_free(cdev); in fco_new_device()
625 fc_add_dip_to_phandle(fc_handle_to_phandle_head(rp), cdev, ch); in fco_new_device()
630 fc_add_child(cdev, pdev, fc_handle_to_dtree(rp)); in fco_new_device()
632 rp->cdip = cdev; in fco_new_device()
647 dev_info_t *cdev; in fco_finish_device() local
656 cdev = fc_phandle_to_dip(fc_handle_to_phandle_head(rp), h); in fco_finish_device()
657 if (cdev != rp->cdip) in fco_finish_device()
669 if ((ddi_get_parent(cdev) == ap) && (cdev == rp->child)) { in fco_finish_device()
671 "*not* binding <%s> dip %p\n", ddi_node_name(cdev), cdev); in fco_finish_device()
674 ddi_node_name(cdev), cdev); in fco_finish_device()
676 (void) ndi_devi_bind_driver(cdev, 0); in fco_finish_device()