/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 121 return (DI_NODE_NIL); in di_init_driver() 131 return (DI_NODE_NIL); in di_init_driver() 138 return (DI_NODE_NIL); in di_init_driver() 170 return (DI_NODE_NIL); in di_init_impl() 233 return (DI_NODE_NIL); in di_init_impl() 243 return (DI_NODE_NIL); in di_init_impl() 248 return (DI_NODE_NIL); in di_init_impl() 258 return (DI_NODE_NIL); in di_init_impl() 344 return (DI_NODE_NIL); in di_parent_node() 376 return (DI_NODE_NIL); in di_sibling_node() [all …]
|
/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | MP_GetAssociatedPathOidList.c | 42 di_node_t root_node = DI_NODE_NIL; in doDevInfoStuffForIntPort() 44 di_node_t vh_node = DI_NODE_NIL; in doDevInfoStuffForIntPort() 45 di_node_t ph_node = DI_NODE_NIL; in doDevInfoStuffForIntPort() 46 di_node_t sv_node = DI_NODE_NIL; in doDevInfoStuffForIntPort() 79 if (DI_NODE_NIL == root_node) { in doDevInfoStuffForIntPort() 88 while (DI_NODE_NIL != vh_node) { in doDevInfoStuffForIntPort() 92 while (DI_NODE_NIL != ph_node) { in doDevInfoStuffForIntPort() 145 if (DI_NODE_NIL == sv_node) { in doDevInfoStuffForIntPort() 200 di_node_t sv_node = DI_NODE_NIL; in doDevInfoStuffForTargetPort() 284 if (DI_NODE_NIL == root_node) { in doDevInfoStuffForTargetPort() [all …]
|
H A D | MP_GetInitiatorPortOidListPlugin.c | 42 di_node_t vh_node = DI_NODE_NIL; in getOidList() 43 di_node_t ph_node = DI_NODE_NIL; in getOidList() 54 while (DI_NODE_NIL != vh_node) { in getOidList() 58 while (DI_NODE_NIL != ph_node) { in getOidList() 122 di_node_t root_node = DI_NODE_NIL; in MP_GetInitiatorPortOidListPlugin() 133 if (DI_NODE_NIL == root_node) { in MP_GetInitiatorPortOidListPlugin()
|
H A D | MP_GetMultipathLusPlugin.c | 73 di_node_t sv_node = DI_NODE_NIL; in getOidList() 74 di_node_t sv_child_node = DI_NODE_NIL; in getOidList() 83 if (DI_NODE_NIL == sv_node) { in getOidList() 92 while (DI_NODE_NIL != sv_child_node) { in getOidList() 157 di_node_t root_node = DI_NODE_NIL; in MP_GetMultipathLusPlugin() 167 if (DI_NODE_NIL == root_node) { in MP_GetMultipathLusPlugin()
|
H A D | MP_GetMultipathLusDevProd.c | 49 di_node_t sv_node = DI_NODE_NIL; in getOidList() 50 di_node_t sv_child_node = DI_NODE_NIL; in getOidList() 61 if (DI_NODE_NIL == sv_node) { in getOidList() 69 while (DI_NODE_NIL != sv_child_node) { in getOidList() 120 di_node_t root_node = DI_NODE_NIL; in MP_GetMultipathLusDevProd() 205 if (DI_NODE_NIL == root_node) { in MP_GetMultipathLusDevProd()
|
H A D | MP_GetMPLogicalUnitProperties.c | 67 di_node_t root_node = DI_NODE_NIL; in getDeviceFileName() 68 di_node_t cur_node = DI_NODE_NIL; in getDeviceFileName() 93 if (DI_NODE_NIL == root_node) { in getDeviceFileName() 102 if (DI_NODE_NIL == cur_node) { in getDeviceFileName() 114 while (DI_NODE_NIL != cur_node) { in getDeviceFileName() 134 if (DI_NODE_NIL != cur_node) { in getDeviceFileName()
|
H A D | MP_GetMPLuOidListFromTPG.c | 134 di_node_t sv_node = DI_NODE_NIL; in getOidList() 135 di_node_t child_node = DI_NODE_NIL; in getOidList() 218 if (DI_NODE_NIL == sv_node) { in getOidList() 227 while (DI_NODE_NIL != child_node) { in getOidList() 345 di_node_t root_node = DI_NODE_NIL; in MP_GetMPLuOidListFromTPG() 394 if (DI_NODE_NIL == root_node) { in MP_GetMPLuOidListFromTPG()
|
/illumos-gate/usr/src/cmd/biosdev/ |
H A D | biosdev.c | 265 pb.di_node = DI_NODE_NIL; in search_tree_match_pcibdf() 299 usbs.node = DI_NODE_NIL; in search_tree_match_usbserialno() 330 return (DI_NODE_NIL); in search_children_match_busaddr() 349 return (DI_NODE_NIL); in search_children_match_busaddr() 360 di_node_t node, cnode = DI_NODE_NIL; in match_edd() 398 if (node == DI_NODE_NIL) { in match_edd() 436 busaddrbuf)) != DI_NODE_NIL) { in match_edd() 443 if (cnode == DI_NODE_NIL) in match_edd() 487 if (cnode != DI_NODE_NIL) { in match_edd() 547 if (root_node != DI_NODE_NIL) in cleanup_and_exit() [all …]
|
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 235 if (root_node == DI_NODE_NIL) { in svc_name_to_glvc_dev_path() 241 while (service_node != DI_NODE_NIL) { in svc_name_to_glvc_dev_path() 245 minor = di_minor_next(service_node, DI_NODE_NIL); in svc_name_to_glvc_dev_path() 247 while (minor != DI_NODE_NIL) { in svc_name_to_glvc_dev_path() 289 if (root_node == DI_NODE_NIL) { in svc_name_to_vldc_dev_path() 295 while (vldc_node != DI_NODE_NIL) { in svc_name_to_vldc_dev_path() 297 minor = di_minor_next(vldc_node, DI_NODE_NIL); in svc_name_to_vldc_dev_path() 299 while (minor != DI_NODE_NIL) { in svc_name_to_vldc_dev_path()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 469 return (DI_NODE_NIL); in pci_cfg_chassis_node() 704 di_node_t chasnode = DI_NODE_NIL; in pci_cfg_ap_path() 722 if (chasnode != DI_NODE_NIL) { in pci_cfg_ap_path() 779 if (chasnode == DI_NODE_NIL) in pci_cfg_ap_path() 1033 *ret_node = DI_NODE_NIL; in pci_cfg_snapshot() 1037 if (root_node == DI_NODE_NIL) in pci_cfg_snapshot() 1038 return (DI_NODE_NIL); in pci_cfg_snapshot() 1043 if (pci_node == DI_NODE_NIL) in pci_cfg_snapshot() 1055 if (node == DI_NODE_NIL) in pci_cfg_snapshot() 1109 if (root_node == DI_NODE_NIL || node == DI_NODE_NIL || in pci_cfg_creat_cb() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/hostbridge/ |
H A D | hb_i86pc.c | 88 if (devtree == DI_NODE_NIL) { in pci_hostbridges_find() 95 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find() 118 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find() 119 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL; in pci_hostbridges_find()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | adopt.c | 286 if ((root_node = di_init("/", DINFOCPYALL)) == DI_NODE_NIL || in get_prom_prop() 298 node != DI_NODE_NIL; in get_prom_prop() 305 if (node == DI_NODE_NIL) { in get_prom_prop() 390 if (root_node != DI_NODE_NIL) { in get_prom_prop()
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm.c | 205 for (cur = di_parent_node(pia->pia_devi); cur != DI_NODE_NIL; in pcieadm_find_nexus() 255 if (pia->pia_devi != DI_NODE_NIL) { in pcieadm_find_dip_cb() 284 pcip->pia_devi = DI_NODE_NIL; in pcieadm_find_dip() 289 if (pcip->pia_devi == DI_NODE_NIL) { in pcieadm_find_dip() 293 pcip->pia_nexus = DI_NODE_NIL; in pcieadm_find_dip() 295 if (pcip->pia_nexus == DI_NODE_NIL) { in pcieadm_find_dip() 602 if (pcieadm.pia_root == DI_NODE_NIL) { in main()
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_dio.c | 133 return ((di_parent_node(di) != DI_NODE_NIL) && in is_root_complex() 134 (di_parent_node(di_parent_node(di)) == DI_NODE_NIL)); in is_root_complex() 263 while ((di_child = di_child_node(di_parent)) != DI_NODE_NIL) { in create_children() 290 while ((di_peer = di_sibling_node(dev)) != DI_NODE_NIL) { in create_peers() 309 if (root == DI_NODE_NIL) { in device_tree_to_md()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | dev.c | 412 else if ((dnode = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in dev_fmri_present() 415 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_present() 424 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_present() 492 else if ((dnode = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in dev_fmri_replaced() 495 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_replaced() 504 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_replaced() 554 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_unusable() 601 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_service_state()
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_hostbridge.c | 198 if (devtree == DI_NODE_NIL) { in x86pi_gen_pci_pciexrc() 204 pnode != DI_NODE_NIL; pnode = di_drv_next_node(pnode)) in x86pi_gen_pci_pciexrc() 209 while (pnode != DI_NODE_NIL) { in x86pi_gen_pci_pciexrc() 210 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL; in x86pi_gen_pci_pciexrc()
|
H A D | x86pi_bay.c | 211 if (devtree == DI_NODE_NIL) { in bay_update_tnode() 216 dnode != DI_NODE_NIL; in bay_update_tnode() 223 while (sib != DI_NODE_NIL) { in bay_update_tnode() 231 if (dnode == DI_NODE_NIL) { in bay_update_tnode()
|
/illumos-gate/usr/src/cmd/fuser/ |
H A D | fuser.c | 239 if (*di_root == DI_NODE_NIL) { in i_get_dev_path() 241 if (*di_root == DI_NODE_NIL) { in i_get_dev_path() 249 if (di_node == DI_NODE_NIL) in i_get_dev_path() 377 di_node_t di_root = DI_NODE_NIL; in report() 393 if (di_root != DI_NODE_NIL) in report()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | pcibus_hba.c | 202 for (i = 0, cn = di_child_node(pn); cn != DI_NODE_NIL; in pci_iports_instantiate() 216 for (j = 0, sd = di_child_node(cn); sd != DI_NODE_NIL; in pci_iports_instantiate() 228 for (j = 0, sd = di_child_node(cn); sd != DI_NODE_NIL; in pci_iports_instantiate() 244 for (j = 0, smp = di_child_node(cn); smp != DI_NODE_NIL; in pci_iports_instantiate() 250 for (j = 0, smp = di_child_node(cn); smp != DI_NODE_NIL; in pci_iports_instantiate()
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_info.c | 144 if ((di_root = di_init(path, DINFOSUBTREE | DINFOHP)) == DI_NODE_NIL) in copy_devinfo() 213 for (child = di_child_node(dev); child != DI_NODE_NIL; in copy_devices() 294 if ((child_dev = di_hp_child(hp)) != DI_NODE_NIL) in copy_hotplug() 344 if ((child_dev = di_hp_child(port_hp)) != DI_NODE_NIL) { in copy_hotplug() 405 for (parent = node; parent != DI_NODE_NIL; in search_cb()
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sdevinfo.c | 51 if ((root_node = di_init("/", DINFOSUBTREE)) == DI_NODE_NIL) { in sysdef_devinfo() 76 while ((tmp = di_parent_node(tmp)) != DI_NODE_NIL) in dump_node()
|
/illumos-gate/usr/src/lib/libppt/common/ |
H A D | libppt.c | 184 di_node_t di_root = DI_NODE_NIL; in ppt_list_assigned() 192 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list_assigned() 251 if (di_root != DI_NODE_NIL) in ppt_list_assigned() 421 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list() 450 if (di_root != DI_NODE_NIL) in ppt_list()
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 223 if (root_node == DI_NODE_NIL) { in prtconf_devinfo() 253 if (target_node == DI_NODE_NIL) { in prtconf_devinfo() 348 di_node_t target = DI_NODE_NIL; in find_target_node() 717 while (node != DI_NODE_NIL) { in walk_driver() 766 while ((tmp = di_parent_node(tmp)) != DI_NODE_NIL) in dump_devs() 804 while ((tmp = di_parent_node(tmp)) != DI_NODE_NIL) in dump_devs() 1274 if (phci_node == DI_NODE_NIL) in dump_pathing_data() 1461 di_node_t node = DI_NODE_NIL; in link_lnode_disp() 1975 if (root == DI_NODE_NIL) { in do_productinfo() 1993 if (next_node != DI_NODE_NIL) in do_productinfo() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cs.c | 549 if (root == DI_NODE_NIL) { in is_xport_phys_in_pathlist() 555 DI_NODE_NIL) { in is_xport_phys_in_pathlist() 559 for (node = di_child_node(vhci); node != DI_NODE_NIL; in is_xport_phys_in_pathlist() 583 if ((phci = di_path_phci_node(path)) == DI_NODE_NIL) { in is_xport_phys_in_pathlist() 1103 DI_NODE_NIL) { in unconf_vhci_nodes() 1249 while (dnode != DI_NODE_NIL) { in unconf_non_vhci_nodes() 1445 DI_NODE_NIL) { in unconf_any_devinfo_nodes() 1451 if ((fp_node = di_drv_first_node("fp", root_node)) == DI_NODE_NIL) { in unconf_any_devinfo_nodes() 1466 while (fp_node != DI_NODE_NIL) { in unconf_any_devinfo_nodes() 1478 if (fp_node == DI_NODE_NIL) { in unconf_any_devinfo_nodes() [all …]
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo.c | 47 if ((root = di_init(path, DINFOCACHE)) == DI_NODE_NIL) { in devinfo_add() 52 if ((root = di_init(path, DINFOCPYALL)) == DI_NODE_NIL) { in devinfo_add() 76 (child_node = di_child_node (node)) != DI_NODE_NIL) { in devinfo_add_subtree() 81 } while ((node != DI_NODE_NIL) && in devinfo_add_subtree()
|