/illumos-gate/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vername.c | 48 pnode_t nodeid; local 61 nodeid = prom_finddevice("/openprom"); 62 if (nodeid == (pnode_t)-1) 65 proplen = prom_bounded_getprop(nodeid, "version", buf, buflen - 1);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_nodeid.c | 30 * DDI nodeid management ... 45 * Allocating a nodeid won't cause memory allocation. 46 * Freeing a nodeid does cause memory allocation. 50 uint32_t nodeid; member in struct:available 161 if ((np->nodeid + np->count) == xp->nodeid) { 185 impl_ddi_alloc_nodeid(int *nodeid) argument 195 *nodeid = 0; 200 x = (int)((unsigned int)np->nodeid); 201 ++np->nodeid; 223 uint32_t nodeid = (uint32_t)n; local 298 uint32_t nodeid = (uint32_t)n; local [all...] |
H A D | autoconf.c | 366 pnode_t nodeid; local 370 nodeid = prom_nextnode(0); 372 nodeid = DEVI_SID_NODEID; 375 nodeid, -1, NULL, KM_SLEEP);
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_prop.c | 38 prom_getproplen(pnode_t nodeid, caddr_t name) argument 40 return (promif_getproplen(nodeid, name)); 44 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) argument 46 return (promif_getprop(nodeid, name, value)); 50 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) argument 52 return (promif_nextprop(nodeid, previous, next)); 73 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) argument
|
H A D | prom_node.c | 41 * Return the root nodeid. 42 * Calling prom_nextnode(0) returns the root nodeid. 53 prom_nextnode(pnode_t nodeid) argument 55 return (promif_nextnode(nodeid)); 59 prom_childnode(pnode_t nodeid) argument 62 return (promif_childnode(nodeid));
|
H A D | prom_emul.c | 37 static prom_node_t *promif_find_node(pnode_t nodeid); 159 promif_find_node(pnode_t nodeid) argument 161 if (nodeid == OBP_NONODE) 167 return (find_node_work(promif_top, nodeid)); 171 promif_nextnode(pnode_t nodeid) argument 178 pnp = promif_find_node(nodeid); 179 if (pnp && (nodeid == OBP_NONODE)) 188 promif_childnode(pnode_t nodeid) argument 192 pnp = promif_find_node(nodeid); 216 promif_getproplen(pnode_t nodeid, cha argument 240 promif_getprop(pnode_t nodeid, char *name, void *value) argument 279 promif_nextprop(pnode_t nodeid, char *name, char *next) argument [all...] |
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 95 my ($self, $nodeid) = @_; 99 unpack("CCx2NNN", substr($self->{NODES}, $nodeid * 16, 16)); 166 my ($self, $nodeid, $propname, $type) = @_; 169 %node = $self->getnode($nodeid); 176 $nodeid++; 177 %node = $self->getnode($nodeid); 179 return $nodeid; 191 my ($self, $nodeid, $propname, $type) = @_; 194 $propid = $self->findprop($nodeid, $propname, $type); 202 my ($self, $nodeid, [all...] |
/illumos-gate/usr/src/uts/sun4u/starfire/io/ |
H A D | memctrl.c | 88 mc_get_asr_addr(pnode_t nodeid) argument 94 rlen = prom_getproplen(nodeid, "reg"); 98 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) 108 mc_get_idle_addr(pnode_t nodeid) argument 114 rlen = prom_getproplen(nodeid, "reg"); 118 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) 128 mc_get_dimm_size(pnode_t nodeid) argument 135 rlen = prom_getproplen(nodeid, "reg"); 139 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) 160 mc_get_alignment_mask(pnode_t nodeid) argument 202 mc_read_asr(pnode_t nodeid, uint_t *mcregp) argument 218 mc_write_asr(pnode_t nodeid, uint_t mcreg) argument [all...] |
H A D | drmach.c | 375 pnode_t nodeid; local 383 nodeid = prom_childnode(prom_rootnode()); 386 np->here = (void *)(uintptr_t)nodeid; 389 while (nodeid != OBP_NONODE) { 394 nodeid = prom_nextnode(nodeid); 397 np->here = (void *)(uintptr_t)nodeid; 425 pnode_t nodeid; local 427 nodeid = np->get_dnode(np); 428 if (nodeid 465 pnode_t nodeid; local 484 pnode_t nodeid; local 601 drmach_prom_select(pnode_t nodeid, void *arg, uint_t flags) argument 926 pnode_t nodeid; local 1056 pnode_t nodeid; local 1079 pnode_t nodeid; local 1102 pnode_t nodeid; local 1124 pnode_t nodeid; local 3135 pnode_t nodeid; local 3633 pnode_t nodeid; local [all...] |
/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_stree.c | 58 static prom_node_t *find_node(pnode_t nodeid); 99 promif_stree_parentnode(pnode_t nodeid) argument 103 pnp = find_node(nodeid); 112 promif_stree_childnode(pnode_t nodeid) argument 116 pnp = find_node(nodeid); 124 promif_stree_nextnode(pnode_t nodeid) argument 131 pnp = find_node(nodeid); 132 if (pnp && (nodeid == OBP_NONODE)) 141 promif_stree_getproplen(pnode_t nodeid, char *name) argument 145 pnp = find_node(nodeid); 153 promif_stree_getprop(pnode_t nodeid, char *name, void *value) argument 177 promif_stree_nextprop(pnode_t nodeid, char *name, char *next) argument 216 find_node(pnode_t nodeid) argument 275 promif_stree_setprop(pnode_t nodeid, char *name, void *value, int len) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 104 pnode_t nodeid; local 115 nodeid = ddi_get_nodeid(dip); 119 * The check for determining if nodeid is valid is done inside 123 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { 148 if (SBDP_INJECT_ERROR(f, 1) || prom_serengeti_cpu_off(nodeid) != 0) { 185 pnode_t nodeid; local 196 nodeid = ddi_get_nodeid(dip); 199 * The check for determining if nodeid is valid is done inside 203 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { 246 prom_serengeti_wakeupcpu(nodeid) ! 288 pnode_t nodeid; local 363 pnode_t nodeid; local 486 pnode_t nodeid; local 528 pnode_t nodeid; local 568 sbdp_find_nearby_cpu_by_portid(pnode_t nodeid, processorid_t portid) argument [all...] |
H A D | sbdp.c | 182 sbdp_get_bd_and_wnode_num(pnode_t nodeid, int *bd, int *wnode) argument 190 if (sbdp_is_node_bad(nodeid)) 193 if ((portid = get_portid(nodeid, NULL)) == -1) 210 pnode_t nodeid; 219 nodeid = ddi_get_nodeid(dip); 222 * Portid has encoded the nodeid and the agent id. The top 228 if (sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) < 0) 256 pnode_t nodeid; local 264 nodeid = ddi_get_nodeid(dip); 266 if (sbdp_is_node_bad(nodeid)) 924 sbdp_get_comp_status(pnode_t nodeid) argument [all...] |
H A D | sbdp_mem.c | 58 static pnode_t mc_get_sibling_cpu(pnode_t nodeid); 59 static int mc_get_sibling_cpu_impl(pnode_t nodeid); 60 static sbd_cond_t mc_check_sibling_cpu(pnode_t nodeid); 141 pnode_t nodeid; 148 mem.nodes = &nodeid; 156 if (mem.nmem == 0 || nodeid != node) 159 dip = e_ddi_nodeid_to_dip(nodeid); 527 pnode_t nodeid = cph->busy_mc->node; local 530 dip = e_ddi_nodeid_to_dip(nodeid); 660 sbdp_get_reg_addr(pnode_t nodeid, uint64_ argument 733 mc_get_idle_reg(pnode_t nodeid, uint64_t *addr, uint_t *asi) argument 1265 pnode_t nodeid; local 1407 sbdp_get_meminfo(pnode_t nodeid, int mc, uint64_t *size, uint64_t *base_pa) argument 1446 mc_get_sibling_cpu(pnode_t nodeid) argument 1466 mc_check_sibling_cpu(pnode_t nodeid) argument 1506 mc_read_regs(pnode_t nodeid, mc_regs_t *mc_regsp) argument 1573 mc_get_addr(pnode_t nodeid, int mc, uint_t *asi) argument [all...] |
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | promif_impl.h | 82 extern pnode_t promif_stree_nextnode(pnode_t nodeid); 83 extern pnode_t promif_stree_childnode(pnode_t nodeid); 84 extern pnode_t promif_stree_parentnode(pnode_t nodeid); 88 extern char *promif_stree_nextprop(pnode_t nodeid, char *name, char *next);
|
/illumos-gate/usr/src/uts/sun4v/ontario/os/ |
H A D | ontario.c | 75 pnode_t nodeid; local 85 nodeid = prom_finddevice(ONTARIO_IDE_PATHNAME); 86 if (nodeid == OBP_BADNODE) {
|
/illumos-gate/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_prop.c | 182 prom_getproplen(pnode_t nodeid, caddr_t name) argument 189 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ 202 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) argument 217 if ((len = prom_getproplen(nodeid, name)) <= 0) 223 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ 238 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) argument 245 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ 259 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) argument 268 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: phandle */ 280 prom_setprop(pnode_t nodeid, caddr_ argument [all...] |
H A D | prom_node.c | 36 prom_nextnode(pnode_t nodeid) argument 43 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ 54 prom_childnode(pnode_t nodeid) argument 61 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ 181 * Return the root nodeid. 182 * Calling prom_nextnode(0) returns the root nodeid. 193 prom_parentnode(pnode_t nodeid) argument 200 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ 274 * Returns the nodeid of /aliases. 289 * Returns the nodeid o [all...] |
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | promif.h | 67 extern pnode_t prom_childnode(pnode_t nodeid); 68 extern pnode_t prom_nextnode(pnode_t nodeid); 73 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 74 extern int prom_getprop(pnode_t nodeid, caddr_t name, 76 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 87 extern int prom_bounded_getprop(pnode_t nodeid,
|
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | promif.h | 89 extern pnode_t prom_childnode(pnode_t nodeid); 90 extern pnode_t prom_nextnode(pnode_t nodeid); 91 extern pnode_t prom_parentnode(pnode_t nodeid); 105 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 106 extern int prom_getprop(pnode_t nodeid, caddr_t name, 108 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 110 extern int prom_setprop(pnode_t nodeid, caddr_t name, 124 extern int prom_bounded_getprop(pnode_t nodeid,
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses_facility.c | 454 const char *type, uint64_t nodeid) 499 nodeid, &err) != 0) { 516 ses_add_indicator(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, argument 525 TOPO_FAC_TYPE_INDICATOR, nodeid)) == NULL) 579 ses_add_sensor_common(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, argument 587 TOPO_FAC_TYPE_SENSOR, nodeid)) == NULL) 618 ses_add_sensor(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, argument 625 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, name, 687 ses_add_discrete(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, argument 694 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, nam 453 ses_add_fac_common(topo_mod_t *mod, tnode_t *pnode, const char *name, const char *type, uint64_t nodeid) argument 724 ses_add_psu_status(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid) argument 764 uint64_t type, nodeid; local 865 uint64_t index, nodeid; local 950 uint64_t type, nodeid; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mach_rootnex.c | 241 int nodeid; local 266 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, dev, 267 DDI_PROP_DONTPASS, "nodeid", -1); 268 if (portid == -1 && nodeid == -1) 270 "or nodeid property in %s\n", 279 if (nodeid != -1) 280 (void) sprintf(p, "SSM Node %d", nodeid); 298 int portid, nodeid; local 369 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, child, 370 DDI_PROP_DONTPASS, "nodeid", [all...] |
/illumos-gate/usr/src/uts/common/avs/ncall/ |
H A D | ncall_stub.c | 64 ncall_stub_nodename(int nodeid) argument 66 if (nodeid == nodeinfo.nc_nodeid) 74 ncall_stub_mirror(int nodeid) argument
|
H A D | ncall.c | 449 ncall_nodename(int nodeid) argument 452 return ((*ncall_modules->module->ncall_nodename)(nodeid)); 459 ncall_mirror(int nodeid) argument 462 return ((*ncall_modules->module->ncall_mirror)(nodeid)); 710 int nodeid; local 735 while ((nodeid = ncall_nextnode(&sequence)) > 0) { 736 nodename = ncall_nodename(nodeid); 739 * return a valid nodeid, and it being disabled 741 * Discard the nodeid if this happens. 753 nodelist[slot].nc_nodeid = nodeid; [all...] |
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 148 static Board_node *serengeti_find_board(Sys_tree *root, int board, int nodeid); 773 int nodeid = -1; local 790 nodeid = SG_PORTID_TO_NODEID(portid); 794 if ((bnode = serengeti_find_board(root, board, nodeid)) == NULL) { 795 bnode = serengeti_insert_board(root, board, nodeid); 1586 int portid, nodeid, board; local 1638 nodeid = SG_PORTID_TO_NODEID(portid); 1641 SG_SET_FRU_NAME_NODE(fru_name, nodeid); 1655 nodeid = SG_PORTID_TO_NODEID(portid); 1658 SG_SET_FRU_NAME_NODE(fru_name, nodeid); 1810 int nodeid, board, mcid; local 1832 int nodeid, board, mcid; local 1860 serengeti_find_board(Sys_tree *root, int board, int nodeid) argument 1877 serengeti_insert_board(Sys_tree *root, int board, int nodeid) argument [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | systeminfo.c | 280 * to locate a given nodeid in the device tree. 283 pnode_t nodeid; member in struct:i_path_findnode 293 if (ddi_get_nodeid(dev) == (int)f->nodeid) { 310 * Get the nodeid of the given pathname, if such a mapping exists. 313 fn.nodeid = prom_finddevice(path); 314 if (fn.nodeid != OBP_BADNODE) { 316 * Find the nodeid in our copy of the device tree and return
|