Lines Matching refs:cdev
472 dev_info_t *pdev, *cdev;
491 cdev = fc_phandle_to_dip(fc_handle_to_phandle_head(rp), ch);
508 if (cdev != NULL) {
510 if (cdev != rp->child)
527 if (cdev)
559 * If cdev is NULL, we have to create the child, otherwise, the
564 if (cdev == NULL)
583 if (ndi_devi_alloc(pdev, nodename, DEVI_SID_NODEID, &cdev)) {
593 nodeid = ddi_get_nodeid(cdev);
594 i_ndi_set_nodeid(cdev, (int)ch);
604 } else if (strcmp(ddi_node_name(cdev), nodename) != 0) {
606 ddi_node_name(cdev), nodename);
607 if (ndi_devi_set_nodename(cdev, nodename, 0)) {
613 if (fc_ndi_prop_update(DDI_DEV_T_NONE, cdev, "name",
617 (void) ndi_devi_free(cdev);
624 fc_add_dip_to_phandle(fc_handle_to_phandle_head(rp), cdev, ch);
629 fc_add_child(cdev, pdev, fc_handle_to_dtree(rp));
631 rp->cdip = cdev;
646 dev_info_t *cdev;
655 cdev = fc_phandle_to_dip(fc_handle_to_phandle_head(rp), h);
656 if (cdev != rp->cdip)
668 if ((ddi_get_parent(cdev) == ap) && (cdev == rp->child)) {
670 "*not* binding <%s> dip %p\n", ddi_node_name(cdev), cdev);
673 ddi_node_name(cdev), cdev);
675 (void) ndi_devi_bind_driver(cdev, 0);