/osnet-11/usr/src/lib/libprtdiag/common/ |
H A D | prom.c | 95 Prom_node *pnode; local 104 if ((pnode = find_device(bnode, 0x1F, SBUS_NAME)) == NULL) { 105 pnode = find_pci_bus(bnode->nodes, 0x1F, 1); 112 for (pnode = dev_find_node(pnode, "flashprom"); pnode != NULL; 113 pnode = dev_next_node(pnode, "flashprom")) { 114 if (find_prop(pnode, "version") != NULL) { 115 disp_prom_version(pnode); [all...] |
H A D | pdevinfo_sun4u.c | 165 Prom_node *pnode; local 172 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) == 179 pnode->parent = root; 180 pnode->sibling = NULL; 181 pnode->child = NULL; 184 dump_node(pnode); 200 name = get_node_name(pnode); 201 type = get_node_type(pnode); 202 model = (char *)get_prop_val(find_prop(pnode, "model")); 217 if (has_board_num(pnode)) { [all...] |
H A D | pdevinfo_sun4v.c | 151 Prom_node *pnode; local 158 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) == 165 pnode->parent = root; 166 pnode->sibling = NULL; 167 pnode->child = NULL; 170 dump_node(pnode); 181 name = get_node_name(pnode); 182 type = get_node_type(pnode); 183 compatible = (char *)get_prop_val(find_prop(pnode, "compatible")); 197 if (has_board_num(pnode)) { [all...] |
H A D | libdevinfo_sun4u.c | 54 static void dump_di_node(Prom_node *pnode, di_node_t di_node); 76 Prom_node *pnode; local 84 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) == 91 pnode->parent = root; 92 pnode->sibling = NULL; 93 pnode->child = NULL; 96 dump_di_node(pnode, di_node); 98 name = get_node_name(pnode); 99 type = get_node_type(pnode); 102 model = (char *)get_prop_val(find_prop(pnode, "mode 198 dump_di_node(Prom_node *pnode, di_node_t di_node) argument [all...] |
H A D | pdevinfo_funcs.c | 120 /* clear out pointers in pnode */ 407 get_node_name(Prom_node *pnode) argument 411 if (pnode == NULL) { 415 prop = pnode->props; 429 get_node_type(Prom_node *pnode) argument 433 if (pnode == NULL) { 437 prop = pnode->props; 506 Prom_node *pnode; local 516 if ((pnode = find_failed_node(root->child)) != NULL) 517 return (pnode); 533 Prom_node *pnode; local 611 find_prop(Prom_node *pnode, const char *name) argument 637 add_node(Sys_tree *root, Prom_node *pnode) argument 677 Prom_node *pnode; local [all...] |
H A D | display_funcs.c | 115 Prom_node *pnode; local 121 pnode = dev_find_node(root, option_str); 122 if (pnode == NULL) { 126 value_str = get_prop_val(find_prop(pnode, pf_str));
|
H A D | io.c | 63 Prom_node *pnode; local 66 pnode = dev_find_node(node, "pci"); 68 while (pnode != NULL) { 72 tmp_id = get_id(pnode); 73 tmp_bus = get_pci_bus(pnode); 80 pnode = dev_next_node(pnode, "pci"); 82 return (pnode); 92 get_pci_bus(Prom_node *pnode) argument 97 if ((value = (int *)get_prop_val(find_prop(pnode, "bu 116 get_pci_device(Prom_node *pnode) argument 133 get_pci_to_pci_device(Prom_node *pnode) argument 247 get_sbus_slot(Prom_node *pnode) argument [all...] |
H A D | memory.c | 130 Prom_node *pnode; local 138 for (pnode = dev_find_node(bnode->nodes, "memory-controller"); 139 pnode != NULL; 140 pnode = dev_next_node(pnode, "memory-controller")) { 143 portid = (*(int *)get_prop_val(find_prop(pnode, "portid"))); 147 find_prop(pnode, MEM_CFG_PROP_NAME)); 180 find_prop(pnode, "bank-status"));
|
/osnet-11/usr/src/lib/fm/topo/modules/sun4u/hostbridge/common/ |
H A D | hb_sun4u.c | 118 di_node_t pnode; local 128 pnode = di_drv_first_node(PCI, devtree); 129 while (pnode != DI_NODE_NIL) { 130 if (busorrc_add(mod, &buses, pnode) < 0) { 133 pnode = di_drv_next_node(pnode); 135 pnode = di_drv_first_node(PSYCHO, devtree); 136 while (pnode != DI_NODE_NIL) { 137 if (busorrc_add(mod, &buses, pnode) < 0) { 140 pnode [all...] |
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_node.c | 132 tnode_t *pnode = node->tn_parent; local 149 topo_node_lock(pnode); 159 --pnode->tn_refs; 160 if (pnode->tn_refs == 0) 161 topo_node_destroy(pnode); 164 topo_node_unlock(pnode); 276 * name under the given pnode. 279 topo_node_range_get(topo_mod_t *mod, tnode_t *pnode, const char *name, argument 284 topo_node_lock(pnode); 286 assert((pnode 316 node_create_seterror(topo_mod_t *mod, tnode_t *pnode, topo_nodehash_t *nhp, int err) argument 338 topo_node_range_create(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max) argument 389 node_extend_seterror(topo_mod_t *mod, tnode_t *pnode, topo_nodehash_t *nhp, int err) argument 424 topo_node_range_extend(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t incr, topo_instance_t *min, topo_instance_t *max) argument 493 topo_node_range_destroy(tnode_t *pnode, const char *name) argument 531 topo_node_lookup(tnode_t *pnode, const char *name, topo_instance_t inst) argument 569 node_bind_seterror(topo_mod_t *mod, tnode_t *pnode, tnode_t *node, boolean_t pnode_locked, int err) argument 640 topo_node_bind(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t inst, nvlist_t *fmri) argument 729 topo_node_facbind(topo_mod_t *mod, tnode_t *pnode, const char *name, const char *type) argument [all...] |
H A D | topo_list.c | 142 topo_child_first(tnode_t *pnode) argument 147 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL; 159 topo_child_next(tnode_t *pnode, tnode_t *node) argument 166 return (topo_child_first(pnode));
|
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/hostbridge/common/ |
H A D | hb_i86pc.c | 82 di_node_t pnode, cnode; local 93 pnode = di_drv_first_node(PCI, devtree); 94 while (pnode != DI_NODE_NIL) { 95 if (hb_process(mod, ptn, hbcnt, pnode) < 0) { 101 pnode = di_drv_next_node(pnode); 104 pnode = di_drv_first_node(NPE, devtree); 105 while (pnode != DI_NODE_NIL) { 106 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL; 131 pnode [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/bay/common/ |
H A D | bay_util.c | 206 get_int_prop(di_node_t dnode, di_path_t pnode, char *prop_name) argument 216 (dnode == DI_NODE_NIL && pnode == DI_PATH_NIL)) { 221 if (pnode != DI_PATH_NIL) { 223 di_path_prop_next(pnode, di_path_prop)) != DI_PROP_NIL) { 278 get_phy(di_node_t dnode, di_path_t pnode) argument 285 rv = get_str_prop(dnode, pnode, SCSI_ADDR_PROP_ATTACHED_PORT_PM, p); 305 phy = get_int_prop(dnode, pnode, PHY_NUM); 315 phy = get_int_prop(dnode, pnode, SCSI_ADDR_PROP_SATA_PHY); 321 phy = get_int_prop(dnode, pnode, SCSI_ADDR_PROP_TARGET); 335 get_str_prop(di_node_t dnode, di_path_t pnode, cha argument 406 di_path_t pnode = DI_PATH_NIL; local 459 di_path_t pnode = DI_PATH_NIL; local [all...] |
H A D | bay_common.c | 83 bay_set_auth(topo_mod_t *mod, tnode_t *pnode, tnode_t *tn) argument 90 if (mod == NULL || pnode == NULL || tn == NULL) { 102 auth = topo_mod_auth(mod, pnode); 203 bay_create_tnode(topo_mod_t *mod, tnode_t *pnode, tnode_t **tnode, bay_t *bayp) argument 213 f, topo_node_name(pnode), instance); 216 auth = topo_mod_auth(mod, pnode); 219 cmp_str(topo_node_name(pnode), "hc") ? NULL : pnode, 229 *tnode = topo_node_bind(mod, pnode, BAY, instance, fmri); 248 rv = bay_set_auth(mod, pnode, *tnod [all...] |
/osnet-11/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl.c | 95 Prop *find_prop(Prom_node *pnode, const char *name); 105 void add_node(Sys_tree *root, Prom_node *pnode); 305 Prom_node *pnode, *cpu; local 313 for (pnode = board->nodes; pnode != NULL; pnode = pnode->sibling) { 316 name = get_node_name(pnode); 321 portid = (int *)get_prop_val(find_prop(pnode, "portid")); 322 freq = (HZ_TO_MHZ(get_cpu_freq(pnode 445 Prom_node *pnode; local 679 Prom_node *pnode; local 823 find_prop(Prom_node *pnode, const char *name) argument 844 add_node(Sys_tree *root, Prom_node *pnode) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/dimm/common/ |
H A D | dimm_sun4v.c | 199 create_one_dimm(topo_mod_t *mod, tnode_t *pnode, int inst, mem_dimm_map_t *dp) argument 214 auth = topo_mod_auth(mod, pnode); 215 if ((fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, "dimm", 220 cnode = mem_tnode_create(mod, pnode, "dimm", inst, 264 mem_inst_create(topo_mod_t *mod, tnode_t *pnode, int pflen, mem_dimm_map_t *dp) argument 277 return (create_one_dimm(mod, pnode, inst, dp)); 279 fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, 282 cnode = mem_tnode_create(mod, pnode, nodename, inst, 287 cnode = mem_tnode_create(mod, pnode, nodename, inst, 297 mem_range_create(topo_mod_t *mod, tnode_t *pnode, in argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/ |
H A D | x86pi_hostbridge.c | 189 di_node_t devtree, pnode, cnode; local 200 for (pnode = di_drv_first_node(PCI, devtree); 201 pnode != DI_NODE_NIL; pnode = di_drv_next_node(pnode)) 202 if (x86pi_bdf(mod, pnode) == bdf) 203 return (pci_process(mod, tn_hbr, pnode)); 205 pnode = di_drv_first_node(NPE, devtree); 206 while (pnode != DI_NODE_NIL) { 207 for (cnode = di_child_node(pnode); cnod [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/ |
H A D | chip_intel.c | 161 mc_add_dimms(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, argument 180 if (topo_node_range_create(mod, pnode, DIMM, 0, 214 channum = topo_node_instance(pnode); 228 fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, 235 if ((dnode = topo_node_bind(mod, pnode, DIMM, dimm_number, 268 pnode, smbid, label); 288 mc_add_channel(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, argument 299 if (mkrsrc(mod, pnode, DRAMCHANNEL, channel, auth, &fmri) != 0) { 303 if ((mc_channel = topo_node_bind(mod, pnode, DRAMCHANNEL, channel, 335 mc_nb_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, argument 436 mc_node_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *auth) argument 480 onchip_mc_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, const char *name, nvlist_t *auth) argument 488 mc_offchip_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *auth) argument [all...] |
H A D | chip.c | 147 create_node(topo_mod_t *mod, tnode_t *pnode, nvlist_t *auth, char *name, argument 153 if (mkrsrc(mod, pnode, name, inst, auth, &fmri) != 0) { 186 cnode = topo_node_bind(mod, pnode, name, inst, fmri); 198 create_strand(topo_mod_t *mod, tnode_t *pnode, nvlist_t *cpu, argument 216 if ((strand = topo_node_lookup(pnode, STRAND_NODE_NAME, strandid)) 222 if ((strand = create_node(mod, pnode, auth, STRAND_NODE_NAME, 325 create_core(topo_mod_t *mod, tnode_t *pnode, nvlist_t *cpu, argument 342 if ((core = topo_node_lookup(pnode, CORE_NODE_NAME, coreid)) == NULL) { 343 if ((core = create_node(mod, pnode, auth, CORE_NODE_NAME, 457 create_chip(topo_mod_t *mod, tnode_t *pnode, topo_instance_ argument 667 create_chips(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, nvlist_t *auth, int mc_offchip) argument 706 chip_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *smbios_enabled) argument [all...] |
H A D | chip_amd.c | 369 amd_rank_create(topo_mod_t *mod, tnode_t *pnode, nvlist_t *dimmnvl, argument 390 if (topo_node_resource(pnode, &pfmri, &err) < 0) { 396 if (topo_node_range_create(mod, pnode, RANK_NODE_NAME, 0, ncs) < 0) { 402 if (topo_prop_get_uint64(pnode, PGNAME(DIMM), "size", &dsz, 412 if (mkrsrc(mod, pnode, RANK_NODE_NAME, i, auth, &fmri) < 0) { 417 if ((ranknode = topo_node_bind(mod, pnode, RANK_NODE_NAME, i, 467 amd_dimm_create(topo_mod_t *mod, uint16_t chip_smbid, tnode_t *pnode, argument 490 if (topo_node_range_create(mod, pnode, name, 0, MAX_DIMMNUM) < 0) { 502 if (mkrsrc(mod, pnode, name, num, auth, &fmri) < 0) { 524 if ((dimmnode = topo_node_bind(mod, pnode, nam 588 amd_cs_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *mc, nvlist_t *auth) argument 644 amd_dramchan_create(topo_mod_t *mod, tnode_t *pnode, const char *name, nvlist_t *auth) argument 725 amd_mc_create(topo_mod_t *mod, uint16_t smbid, tnode_t *pnode, const char *name, nvlist_t *auth, int32_t procnodeid, int32_t procnodes_per_pkg, int family, int model, int *nerrp) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/common/ |
H A D | opl_ioboard.c | 250 di_node_t pnode; local 301 for (pnode = di_drv_first_node(OPL_PX_DRV, opl_devtree); 302 pnode != DI_NODE_NIL; 303 pnode = di_drv_next_node(pnode)) { 308 char *ba = di_bus_addr(pnode); 324 ioboard_list[psb].rcs[hb][rc] = pnode;
|
/osnet-11/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cs.c | 1060 unconf_vhci_nodes(di_path_t pnode, di_node_t fp_node, char *xport_phys, argument 1072 while (pnode != DI_PATH_NIL) { 1081 pnode = di_path_next_client(fp_node, pnode); 1085 iret1 = di_path_prop_lookup_bytes(pnode, PORT_WWN_PROP, 1088 iret2 = di_path_prop_lookup_ints(pnode, LUN_PROP, &lunnump); 1096 pnode = di_path_next_client(fp_node, pnode); 1102 if ((client_node = di_path_client_node(pnode)) == 1107 pnode [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/usb/common/ |
H A D | usb.c | 82 usb_children_instantiate(topo_mod_t *mod, tnode_t *pnode, 89 usb_enum_from_pci(topo_mod_t *mod, tnode_t *pnode, 101 usb_enum_from_hostbridge(topo_mod_t *mod, tnode_t *pnode, 339 usb_set_host_fru(topo_mod_t *mod, tnode_t *pnode, tnode_t *tn) argument 346 if (topo_node_fru(pnode, &fru, NULL, &err) != 0) { 366 usb_process_host_controllers(topo_mod_t *mod, tnode_t *pnode, argument 377 topo_node_name(pnode)); 379 if (topo_node_resource(pnode, &pfmri, &err) < 0) { 410 if ((rn = usb_tnode_create(mod, pnode, USB_BUS, i++, 465 usb_process_single_host(topo_mod_t *mod, tnode_t *pnode, argument 653 usb_enum_from_pci(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, topo_instance_t max, void *arg, void *data) argument 673 usb_enum_from_hostbridge(topo_mod_t *mod, tnode_t *pnode, usb_enum_data_t *data) argument 1259 tnode_t *pnode = topo_node_parent(tn); local 1283 usb_declare_dev_and_if(topo_mod_t *mod, tnode_t *pnode, di_node_t pdn, int seq) argument 1425 usb_children_instantiate(topo_mod_t *mod, tnode_t *pnode, di_node_t pn, int depth) argument [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/ses/common/ |
H A D | ses_dev.c | 284 ses_di_node_add_pathinfo(ses_di_node_t *dnode, di_path_t pnode, argument 292 if (((path = di_path_devfs_path(pnode)) != NULL) && 302 if (((di_path_prop_lookup_strings(pnode, 310 if (((di_path_prop_lookup_strings(pnode, 318 if (((di_path_prop_lookup_strings(pnode, 380 di_path_t pnode; local 431 for (pnode = di_path_client_next_path(node, NULL); pnode; 432 pnode = di_path_client_next_path(node, pnode)) [all...] |
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | findevs.c | 197 di_node_t pnode; local 263 if ((pnode = get_parent_bus(node, args)) != NULL) { 264 devpath = di_devfs_path(pnode); 369 di_node_t pnode; local 371 pnode = di_parent_node(node); 372 if (pnode != DI_NODE_NIL) { 374 devpath = di_devfs_path(pnode); 382 node = pnode; 658 di_node_t pnode; local 666 pnode 1355 di_node_t pnode; local 1599 di_node_t pnode; local 1725 di_node_t pnode; local [all...] |