| /illumos-gate/usr/src/lib/libdevinfo/ |
| H A D | devinfo.c | 123 return (DI_NODE_NIL); in di_init_driver() 133 return (DI_NODE_NIL); in di_init_driver() 140 return (DI_NODE_NIL); in di_init_driver() 174 return (DI_NODE_NIL); in di_init_impl() 195 return (DI_NODE_NIL); in di_init_impl() 218 return (DI_NODE_NIL); in di_init_impl() 225 return (DI_NODE_NIL); in di_init_impl() 237 return (DI_NODE_NIL); in di_init_impl() 247 return (DI_NODE_NIL); in di_init_impl() 252 return (DI_NODE_NIL); in di_init_impl() [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() 199 di_node_t root_node = DI_NODE_NIL; in doDevInfoStuffForTargetPort() 200 di_node_t sv_node = DI_NODE_NIL; 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 | 88 static di_node_t root_node = DI_NODE_NIL; 94 static di_node_t root_allnode = DI_NODE_NIL; 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() 340 for (cnode = di_child_node(node); cnode != 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() [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 | 467 } while ((curnode = di_parent_node(curnode)) != DI_NODE_NIL); in pci_cfg_chassis_node() 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() 795 } while ((curnode = di_parent_node(curnode)) != DI_NODE_NIL); in pci_cfg_ap_path() 910 } while ((curnode = di_parent_node(curnode)) != DI_NODE_NIL); in pci_cfg_is_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() [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/lib/libi2c/common/ |
| H A D | libi2c.c | 386 if (dn == DI_NODE_NIL) in i2c_node_to_path() 598 return (DI_NODE_NIL); in i2c_path_find_ctrl() 611 return (DI_NODE_NIL); in i2c_path_find_mux() 628 return (DI_NODE_NIL); in i2c_path_find_port() 699 return (DI_NODE_NIL); in i2c_path_find_device() 734 if (cur_devi == DI_NODE_NIL) { in i2c_path_parse() 754 if (cur_devi == DI_NODE_NIL) { in i2c_path_parse() 763 if (cur_devi == DI_NODE_NIL) { in i2c_path_parse() 773 if (cur_devi == DI_NODE_NIL) { in i2c_path_parse()
|
| H A D | libi2c_mux.c | 47 if (iter->mi_cur == DI_NODE_NIL) { in i2c_mux_discover_step() 54 if (iter->mi_cur == DI_NODE_NIL) { in i2c_mux_discover_step() 145 iter->mi_cur = DI_NODE_NIL; in i2c_mux_discover_init()
|
| H A D | libi2c_device.c | 307 for (di_node_t di = di_child_node(dpi->dpi_port); di != DI_NODE_NIL; in i2c_device_discover_port() 411 map->dmi_node == DI_NODE_NIL) { in i2c_device_discover_step() 433 map->dmi_node == DI_NODE_NIL) { in i2c_device_discover_step() 606 if (dn == DI_NODE_NIL) { in i2c_device_info_snap() 746 if (root == DI_NODE_NIL) { in i2c_port_dev_init_by_path() 767 dev_dn = DI_NODE_NIL; in i2c_port_dev_init_by_path() 781 if (dev_dn != DI_NODE_NIL) { in i2c_port_dev_init_by_path()
|
| /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/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/cmd/pcieadm/ |
| H A D | pcieadm.c | 193 if (pcip->pia_root == DI_NODE_NIL) { in pcieadm_di_root() 195 if (pcip->pia_root == DI_NODE_NIL) { in pcieadm_di_root() 219 for (cur = di_parent_node(pia->pia_devi); cur != DI_NODE_NIL; in pcieadm_find_nexus() 269 if (pia->pia_devi != DI_NODE_NIL) { in pcieadm_find_dip_cb() 298 pcip->pia_devi = DI_NODE_NIL; in pcieadm_find_dip() 303 if (pcip->pia_devi == DI_NODE_NIL) { in pcieadm_find_dip() 307 pcip->pia_nexus = DI_NODE_NIL; in pcieadm_find_dip() 309 if (pcip->pia_nexus == DI_NODE_NIL) { in pcieadm_find_dip()
|
| /illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | dev.c | 417 else if ((dnode = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in dev_fmri_present() 420 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_present() 429 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_present() 496 else if ((dnode = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in dev_fmri_replaced() 499 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_replaced() 508 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_replaced() 557 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_unusable() 603 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_service_state()
|
| /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/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/test/i2c-tests/tests/ioctl/ |
| H A D | i2c_ioctl_util.c | 75 if (root == DI_NODE_NIL) { in i2c_ioctl_test_init_devi() 130 return (DI_NODE_NIL); in i2c_ioctl_test_find_by_addr() 147 return (DI_NODE_NIL); in i2c_ioctl_test_find_mux() 176 return (DI_NODE_NIL); in i2c_ioctl_test_find_device()
|
| /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/lib/libppt/common/ |
| H A D | libppt.c | 187 di_node_t di_root = DI_NODE_NIL; in ppt_list_assigned() 195 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list_assigned() 254 if (di_root != DI_NODE_NIL) in ppt_list_assigned() 424 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list() 453 if (di_root != DI_NODE_NIL) in ppt_list()
|