/illumos-gate/usr/src/lib/mpapi/libmpscsi_vhci/common/ |
H A D | MP_GetMultipathLusPlugin.c | 65 static int getOidList(di_node_t root_node, MP_OID_LIST *pOidList) in getOidList() argument 82 sv_node = di_drv_first_node("scsi_vhci", root_node); in getOidList() 157 di_node_t root_node = DI_NODE_NIL; in MP_GetMultipathLusPlugin() local 166 root_node = di_init("/", DINFOCACHE); in MP_GetMultipathLusPlugin() 167 if (DI_NODE_NIL == root_node) { in MP_GetMultipathLusPlugin() 174 numNodes = getOidList(root_node, NULL); in MP_GetMultipathLusPlugin() 185 di_fini(root_node); in MP_GetMultipathLusPlugin() 199 di_fini(root_node); in MP_GetMultipathLusPlugin() 215 di_fini(root_node); in MP_GetMultipathLusPlugin() 231 numNodes = getOidList(root_node, *ppList); in MP_GetMultipathLusPlugin() [all …]
|
H A D | MP_GetInitiatorPortOidListPlugin.c | 36 static int getOidList(di_node_t root_node, MP_OID_LIST *pOidList) in getOidList() argument 52 vh_node = di_vhci_first_node(root_node); in getOidList() 122 di_node_t root_node = DI_NODE_NIL; in MP_GetInitiatorPortOidListPlugin() local 132 root_node = di_init("/", DINFOCACHE); in MP_GetInitiatorPortOidListPlugin() 133 if (DI_NODE_NIL == root_node) { in MP_GetInitiatorPortOidListPlugin() 140 numNodes = getOidList(root_node, NULL); in MP_GetInitiatorPortOidListPlugin() 171 numNodes = getOidList(root_node, *ppList); in MP_GetInitiatorPortOidListPlugin() 187 di_fini(root_node); in MP_GetInitiatorPortOidListPlugin()
|
H A D | MP_GetMultipathLusDevProd.c | 35 static int getOidList(di_node_t root_node, in getOidList() argument 60 sv_node = di_drv_first_node("scsi_vhci", root_node); in getOidList() 120 di_node_t root_node = DI_NODE_NIL; in MP_GetMultipathLusDevProd() local 204 root_node = di_init("/", DINFOCACHE); in MP_GetMultipathLusDevProd() 205 if (DI_NODE_NIL == root_node) { in MP_GetMultipathLusDevProd() 215 numNodes = getOidList(root_node, NULL, inqProductID, inqVendorID); in MP_GetMultipathLusDevProd() 223 di_fini(root_node); in MP_GetMultipathLusDevProd() 240 di_fini(root_node); in MP_GetMultipathLusDevProd() 265 numNodes = getOidList(root_node, *ppList, inqProductID, inqVendorID); in MP_GetMultipathLusDevProd() 281 di_fini(root_node); in MP_GetMultipathLusDevProd()
|
H A D | MP_GetAssociatedPathOidList.c | 42 di_node_t root_node = DI_NODE_NIL; in doDevInfoStuffForIntPort() local 78 root_node = di_init("/", DINFOCACHE); in doDevInfoStuffForIntPort() 79 if (DI_NODE_NIL == root_node) { in doDevInfoStuffForIntPort() 86 vh_node = di_vhci_first_node(root_node); in doDevInfoStuffForIntPort() 124 di_fini(root_node); in doDevInfoStuffForIntPort() 175 di_fini(root_node); in doDevInfoStuffForIntPort() 189 di_fini(root_node); in doDevInfoStuffForIntPort() 199 di_node_t root_node = DI_NODE_NIL; in doDevInfoStuffForTargetPort() local 282 root_node = di_init("/", DINFOCACHE); in doDevInfoStuffForTargetPort() 284 if (DI_NODE_NIL == root_node) { in doDevInfoStuffForTargetPort() [all …]
|
H A D | MP_GetMPLuOidListFromTPG.c | 131 static int getOidList(di_node_t root_node, int tpgID, in getOidList() argument 217 sv_node = di_drv_first_node("scsi_vhci", root_node); in getOidList() 345 di_node_t root_node = DI_NODE_NIL; in MP_GetMPLuOidListFromTPG() local 393 root_node = di_init("/", DINFOCACHE); in MP_GetMPLuOidListFromTPG() 394 if (DI_NODE_NIL == root_node) { in MP_GetMPLuOidListFromTPG() 404 numNodes = getOidList(root_node, sourceTpgID, tpList, NULL); in MP_GetMPLuOidListFromTPG() 416 di_fini(root_node); in MP_GetMPLuOidListFromTPG() 431 di_fini(root_node); in MP_GetMPLuOidListFromTPG() 464 numNodes = getOidList(root_node, sourceTpgID, tpList, *ppList); in MP_GetMPLuOidListFromTPG() 481 di_fini(root_node); in MP_GetMPLuOidListFromTPG()
|
H A D | MP_GetMPLogicalUnitProperties.c | 67 di_node_t root_node = DI_NODE_NIL; in getDeviceFileName() local 92 root_node = di_init("/", DINFOCACHE); in getDeviceFileName() 93 if (DI_NODE_NIL == root_node) { in getDeviceFileName() 101 cur_node = di_drv_first_node("scsi_vhci", root_node); in getDeviceFileName() 106 di_fini(root_node); in getDeviceFileName() 141 di_fini(root_node); in getDeviceFileName() 207 di_fini(root_node); in getDeviceFileName()
|
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 224 di_node_t root_node, service_node; in svc_name_to_glvc_dev_path() local 234 root_node = di_init_driver("glvc", DINFOCPYALL); in svc_name_to_glvc_dev_path() 235 if (root_node == DI_NODE_NIL) { in svc_name_to_glvc_dev_path() 239 service_node = di_drv_first_node("glvc", root_node); in svc_name_to_glvc_dev_path() 270 di_fini(root_node); in svc_name_to_glvc_dev_path() 281 di_node_t root_node, vldc_node; in svc_name_to_vldc_dev_path() local 288 root_node = di_init_driver("vldc", DINFOCPYALL); in svc_name_to_vldc_dev_path() 289 if (root_node == DI_NODE_NIL) { in svc_name_to_vldc_dev_path() 293 vldc_node = di_drv_first_node("vldc", root_node); in svc_name_to_vldc_dev_path() 321 di_fini(root_node); in svc_name_to_vldc_dev_path()
|
/illumos-gate/usr/src/common/mdesc/ |
H A D | mdesc_init_intern.c | 82 mdp->root_node = MDE_INVAL_ELEM_COOKIE; in md_init_intern() 120 if (mdp->root_node != MDE_INVAL_ELEM_COOKIE) { in md_init_intern() 124 mdp->root_node = (mde_cookie_t)idx; in md_init_intern() 138 if (mdp->root_node == MDE_INVAL_ELEM_COOKIE) { in md_init_intern() 160 if (md_get_prop_val((md_t *)mdp, mdp->root_node, in md_init_intern()
|
H A D | mdesc_rootnode.c | 41 return (mdp->root_node); in md_root_node()
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sdevinfo.c | 48 di_node_t root_node; in sysdef_devinfo() local 51 if ((root_node = di_init("/", DINFOSUBTREE)) == DI_NODE_NIL) { in sysdef_devinfo() 58 di_walk_node(root_node, DI_WALK_CLDFIRST, NULL, dump_node); in sysdef_devinfo() 60 di_fini(root_node); in sysdef_devinfo()
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | Sun_fcGetNumberOfAdapters.cc | 47 di_node_t root_node; in Sun_fcGetNumberOfAdapters() local 48 if ((root_node = di_init("/", DINFOSUBTREE|DINFOFORCE)) != DI_NODE_NIL) { in Sun_fcGetNumberOfAdapters() 49 di_fini(root_node); in Sun_fcGetNumberOfAdapters()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | adopt.c | 274 di_node_t root_node; in get_prom_prop() local 286 if ((root_node = di_init("/", DINFOCPYALL)) == DI_NODE_NIL || in get_prom_prop() 297 for (node = di_child_node(root_node); in get_prom_prop() 390 if (root_node != DI_NODE_NIL) { in get_prom_prop() 391 di_fini(root_node); in get_prom_prop()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | c2xml.c | 41 static xmlNodePtr root_node = NULL;/* root node pointer */ variable 191 examine_symbol(sym->ctype.base_type, root_node); in examine_symbol() 258 examine_macro(sym, root_node); in examine_namespace() 263 examine_symbol(sym, root_node); in examine_namespace() 308 root_node = xmlNewNode(NULL, BAD_CAST "parse"); in main() 309 xmlDocSetRootElement(doc, root_node); in main()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | mdescplugin.c | 44 picl_nodehdl_t root_node; variable 188 status = ptree_walk_tree_by_class(root_node, "disk", (void *)&lookup, in dsc_handler() 267 status = ptree_get_root(&root_node); in mdescplugin_init() 289 status = ptree_walk_tree_by_class(root_node, "cpu", NULL, add_cpu_prop); in mdescplugin_init()
|
H A D | disk_discovery.c | 34 extern picl_nodehdl_t root_node; 74 status = ptree_create_and_add_node(root_node, DISK_DISCOVERY_NAME, in disk_discovery()
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 1027 di_node_t root_node; in pci_cfg_snapshot() local 1036 root_node = di_init("/", DINFOCPYALL); in pci_cfg_snapshot() 1037 if (root_node == DI_NODE_NIL) in pci_cfg_snapshot() 1044 return (root_node); in pci_cfg_snapshot() 1047 node = di_drv_first_node(di_driver_name(pci_node), root_node); in pci_cfg_snapshot() 1056 return (root_node); in pci_cfg_snapshot() 1062 return (root_node); in pci_cfg_snapshot() 1072 return (root_node); in pci_cfg_snapshot() 1093 di_node_t root_node = DI_NODE_NIL; in pci_cfg_creat_cb() local 1108 root_node = pci_cfg_snapshot(pci_node, pci_minor, &node, &minor); in pci_cfg_creat_cb() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_sun4u.c | 82 Prom_node *root_node; /* root node of OBP device tree */ in do_prominfo() local 114 root_node = walk(&sys_tree, NULL, next(0)); in do_prominfo() 122 return (display(&sys_tree, root_node, &sys_kstat, syserrlog)); in do_prominfo()
|
H A D | pdevinfo_sun4v.c | 82 Prom_node *root_node; /* root node of OBP device tree */ in do_prominfo() local 122 root_node = sun4v_walk(&sys_tree, NULL, next(0)); in do_prominfo() 135 return (sun4v_display(&sys_tree, root_node, syserrlog, plafh)); in do_prominfo()
|
H A D | libdevinfo_sun4u.c | 409 Prom_node *root_node; /* root node of OBP device tree */ in do_devinfo() local 444 root_node = walk_di_tree(&sys_tree, NULL, di_root_node); in do_devinfo() 450 retval = display(&sys_tree, root_node, &sys_kstat, syserrlog); in do_devinfo()
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | pdevinfo.c | 176 di_node_t root_node; in prtconf_devinfo() local 215 root_node = di_init_impl(rootpath, flag, &fetch); in prtconf_devinfo() 221 root_node = di_init(rootpath, flag); in prtconf_devinfo() 223 if (root_node == DI_NODE_NIL) { in prtconf_devinfo() 240 walk_driver(root_node, &di_arg); in prtconf_devinfo() 245 di_fini(root_node); in prtconf_devinfo() 252 target_node = find_target_node(root_node); in prtconf_devinfo() 297 (void) di_walk_node(root_node, DI_WALK_CLDFIRST, &di_arg, in prtconf_devinfo() 304 di_fini(root_node); in prtconf_devinfo() 346 find_target_node(di_node_t root_node) in find_target_node() argument [all …]
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_ia_open.c | 96 di_node_t root_node, node; in dapl_ro_disallowed() local 115 if ((root_node = di_init("/", DINFOSUBTREE | DINFOPROP)) == DI_NODE_NIL) in dapl_ro_disallowed() 118 node = di_drv_first_node("daplt", root_node); in dapl_ro_disallowed() 136 di_fini(root_node); in dapl_ro_disallowed()
|
/illumos-gate/usr/src/cmd/biosdev/ |
H A D | biosdev.c | 88 static di_node_t root_node = DI_NODE_NIL; variable 185 ret = di_walk_minor(root_node, DDI_NT_BLOCK, 0, NULL, in build_disk_list() 395 node = search_tree_match_pcibdf(root_node, bd->interfacepath.pci.bus, in match_edd() 547 if (root_node != DI_NODE_NIL) in cleanup_and_exit() 548 di_fini(root_node); in cleanup_and_exit() 587 if ((root_node = di_init("/", DINFOCACHE)) == DI_NODE_NIL) { in main()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_pathname.c | 156 smb_node_t *root_node; in smb_pathname_reduce() local 204 root_node = share_root_node; in smb_pathname_reduce() 206 root_node = sr->sr_server->si_root_smb_node; in smb_pathname_reduce() 209 cur_node = root_node; in smb_pathname_reduce() 212 local_root_node = root_node; in smb_pathname_reduce() 432 smb_node_t *root_node, smb_node_t *cur_node, smb_node_t **dir_node, in smb_pathname() argument 451 ASSERT(root_node); in smb_pathname() 489 rootvp = root_node->vp; in smb_pathname() 584 fnode = root_node; in smb_pathname()
|
H A D | smb_fsops.c | 1848 smb_node_t *root_node, in smb_fsop_lookup_name() argument 1859 rc = smb_fsop_lookup_file(sr, cr, flags, root_node, dnode, name, in smb_fsop_lookup_name() 1866 rc = smb_fsop_lookup_stream(sr, cr, flags, root_node, tmp_node, sname, in smb_fsop_lookup_name() 1897 smb_node_t *root_node, in smb_fsop_lookup_file() argument 1932 rc = smb_fsop_lookup(sr, cr, flags, root_node, dnode, in smb_fsop_lookup_file() 1936 rc = smb_fsop_lookup(sr, cr, flags, root_node, dnode, name, in smb_fsop_lookup_file() 1966 smb_node_t *root_node, in smb_fsop_lookup_stream() argument 1993 &xattrdirvp, flags, root_node->vp, cr); in smb_fsop_lookup_stream() 2047 smb_node_t *root_node, in smb_fsop_lookup() argument 2093 &ret_flags, root_node ? root_node->vp : NULL, &attr, cr); in smb_fsop_lookup() [all …]
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | add_drv.c | 114 di_node_t root_node; /* for device tree snapshot */ in main() local 354 if ((root_node = di_init("/", DINFOSUBTREE | DINFOMINOR)) in main() 359 conflict = drv_name_conflict(root_node); in main() 360 di_fini(root_node); in main() 614 drv_name_conflict(di_node_t root_node) in drv_name_conflict() argument 619 if (di_walk_node(root_node, DI_WALK_SIBFIRST, NULL, devfs_node) == -1) { in drv_name_conflict()
|