/titanic_44/usr/src/uts/common/os/ |
H A D | ddi_nodeid.c | 50 uint32_t nodeid; member 161 if ((np->nodeid + np->count) == xp->nodeid) { in np_coalesce() 185 impl_ddi_alloc_nodeid(int *nodeid) in impl_ddi_alloc_nodeid() argument 195 *nodeid = 0; in impl_ddi_alloc_nodeid() 200 x = (int)((unsigned int)np->nodeid); in impl_ddi_alloc_nodeid() 201 ++np->nodeid; in impl_ddi_alloc_nodeid() 216 *nodeid = x; in impl_ddi_alloc_nodeid() 223 uint32_t nodeid = (uint32_t)n; in impl_ddi_free_nodeid() local 246 if ((nodeid + 1) == np->nodeid) { in impl_ddi_free_nodeid() 247 np->nodeid = nodeid; in impl_ddi_free_nodeid() [all …]
|
/titanic_44/usr/src/uts/sun4u/starfire/io/ |
H A D | memctrl.c | 88 mc_get_asr_addr(pnode_t nodeid) in mc_get_asr_addr() argument 94 rlen = prom_getproplen(nodeid, "reg"); in mc_get_asr_addr() 98 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) in mc_get_asr_addr() 108 mc_get_idle_addr(pnode_t nodeid) in mc_get_idle_addr() argument 114 rlen = prom_getproplen(nodeid, "reg"); in mc_get_idle_addr() 118 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) in mc_get_idle_addr() 128 mc_get_dimm_size(pnode_t nodeid) in mc_get_dimm_size() argument 135 rlen = prom_getproplen(nodeid, "reg"); in mc_get_dimm_size() 139 if (prom_getprop(nodeid, "reg", (caddr_t)®) < 0) in mc_get_dimm_size() 160 mc_get_alignment_mask(pnode_t nodeid) in mc_get_alignment_mask() argument [all …]
|
H A D | drmach.c | 375 pnode_t nodeid; in drmach_node_obp_walk() local 383 nodeid = prom_childnode(prom_rootnode()); in drmach_node_obp_walk() 386 np->here = (void *)(uintptr_t)nodeid; in drmach_node_obp_walk() 389 while (nodeid != OBP_NONODE) { in drmach_node_obp_walk() 394 nodeid = prom_nextnode(nodeid); in drmach_node_obp_walk() 397 np->here = (void *)(uintptr_t)nodeid; in drmach_node_obp_walk() 425 pnode_t nodeid; in drmach_node_get_dip() local 427 nodeid = np->get_dnode(np); in drmach_node_get_dip() 428 if (nodeid == OBP_NONODE) in drmach_node_get_dip() 434 dip = e_ddi_nodeid_to_dip(nodeid); in drmach_node_get_dip() [all …]
|
/titanic_44/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, $nameid, $arcid, $ret, $seen) = @_; [all …]
|
/titanic_44/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 104 pnode_t nodeid; in sbdp_disconnect_cpu() local 115 nodeid = ddi_get_nodeid(dip); in sbdp_disconnect_cpu() 123 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_disconnect_cpu() 148 if (SBDP_INJECT_ERROR(f, 1) || prom_serengeti_cpu_off(nodeid) != 0) { in sbdp_disconnect_cpu() 185 pnode_t nodeid; in sbdp_connect_cpu() local 196 nodeid = ddi_get_nodeid(dip); in sbdp_connect_cpu() 203 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_connect_cpu() 246 prom_serengeti_wakeupcpu(nodeid) != 0) { in sbdp_connect_cpu() 288 pnode_t nodeid; in sbdp_cpu_poweron() local 299 nodeid = cpunodes[cpuid].nodeid; in sbdp_cpu_poweron() [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; in sbdp_get_mem_dip() local 148 mem.nodes = &nodeid; in sbdp_get_mem_dip() 156 if (mem.nmem == 0 || nodeid != node) in sbdp_get_mem_dip() 159 dip = e_ddi_nodeid_to_dip(nodeid); in sbdp_get_mem_dip() 527 pnode_t nodeid = cph->busy_mc->node; in sbdp_move_memory() local 530 dip = e_ddi_nodeid_to_dip(nodeid); in sbdp_move_memory() 660 sbdp_get_reg_addr(pnode_t nodeid, uint64_t *pa) in sbdp_get_reg_addr() argument [all …]
|
H A D | sbdp.c | 182 sbdp_get_bd_and_wnode_num(pnode_t nodeid, int *bd, int *wnode) in sbdp_get_bd_and_wnode_num() argument 190 if (sbdp_is_node_bad(nodeid)) in sbdp_get_bd_and_wnode_num() 193 if ((portid = get_portid(nodeid, NULL)) == -1) in sbdp_get_bd_and_wnode_num() 210 pnode_t nodeid; in sbdp_get_board_num() 219 nodeid = ddi_get_nodeid(dip); in sbdp_get_board_num() 228 if (sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) < 0) in sbdp_get_board_num() 256 pnode_t nodeid; in sbdp_get_unit_num() local 264 nodeid = ddi_get_nodeid(dip); in sbdp_get_unit_num() 266 if (sbdp_is_node_bad(nodeid)) in sbdp_get_unit_num() 269 if (prom_getprop(nodeid, "device_type", (caddr_t)dev_type) < 0) { in sbdp_get_unit_num() [all …]
|
/titanic_44/usr/src/uts/intel/promif/ |
H A D | prom_prop.c | 38 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() argument 40 return (promif_getproplen(nodeid, name)); in prom_getproplen() 44 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() argument 46 return (promif_getprop(nodeid, name, value)); in prom_getprop() 50 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() argument 52 return (promif_nextprop(nodeid, previous, next)); in prom_nextprop() 73 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop() argument
|
H A D | prom_emul.c | 37 static prom_node_t *promif_find_node(pnode_t nodeid); 159 promif_find_node(pnode_t nodeid) in promif_find_node() argument 161 if (nodeid == OBP_NONODE) in promif_find_node() 167 return (find_node_work(promif_top, nodeid)); in promif_find_node() 171 promif_nextnode(pnode_t nodeid) in promif_nextnode() argument 178 pnp = promif_find_node(nodeid); in promif_nextnode() 179 if (pnp && (nodeid == OBP_NONODE)) in promif_nextnode() 188 promif_childnode(pnode_t nodeid) in promif_childnode() argument 192 pnp = promif_find_node(nodeid); in promif_childnode() 216 promif_getproplen(pnode_t nodeid, char *name) in promif_getproplen() argument [all …]
|
H A D | prom_node.c | 53 prom_nextnode(pnode_t nodeid) in prom_nextnode() argument 55 return (promif_nextnode(nodeid)); in prom_nextnode() 59 prom_childnode(pnode_t nodeid) in prom_childnode() argument 62 return (promif_childnode(nodeid)); in prom_childnode()
|
/titanic_44/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) in promif_stree_parentnode() argument 103 pnp = find_node(nodeid); in promif_stree_parentnode() 112 promif_stree_childnode(pnode_t nodeid) in promif_stree_childnode() argument 116 pnp = find_node(nodeid); in promif_stree_childnode() 124 promif_stree_nextnode(pnode_t nodeid) in promif_stree_nextnode() argument 131 pnp = find_node(nodeid); in promif_stree_nextnode() 132 if (pnp && (nodeid == OBP_NONODE)) in promif_stree_nextnode() 141 promif_stree_getproplen(pnode_t nodeid, char *name) in promif_stree_getproplen() argument 145 pnp = find_node(nodeid); in promif_stree_getproplen() [all …]
|
/titanic_44/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses_facility.c | 454 const char *type, uint64_t nodeid) in ses_add_fac_common() argument 499 nodeid, &err) != 0) { in ses_add_fac_common() 516 ses_add_indicator(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_indicator() argument 525 TOPO_FAC_TYPE_INDICATOR, nodeid)) == NULL) in ses_add_indicator() 579 ses_add_sensor_common(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_sensor_common() argument 587 TOPO_FAC_TYPE_SENSOR, nodeid)) == NULL) in ses_add_sensor_common() 618 ses_add_sensor(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_sensor() argument 625 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, name, in ses_add_sensor() 687 ses_add_discrete(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_discrete() argument 694 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, name, in ses_add_discrete() [all …]
|
/titanic_44/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_prop.c | 182 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() argument 189 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ in prom_getproplen() 202 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() argument 217 if ((len = prom_getproplen(nodeid, name)) <= 0) in prom_getprop() 223 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ in prom_getprop() 238 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop() argument 245 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: package */ in prom_bounded_getprop() 259 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() argument 268 ci[3] = p1275_phandle2cell((phandle_t)nodeid); /* Arg1: phandle */ in prom_nextprop() 280 prom_setprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_setprop() argument [all …]
|
H A D | prom_node.c | 36 prom_nextnode(pnode_t nodeid) in prom_nextnode() argument 43 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ in prom_nextnode() 54 prom_childnode(pnode_t nodeid) in prom_childnode() argument 61 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ in prom_childnode() 193 prom_parentnode(pnode_t nodeid) in prom_parentnode() argument 200 ci[3] = p1275_dnode2cell(nodeid); /* Arg1: input phandle */ in prom_parentnode()
|
/titanic_44/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vername.c | 48 pnode_t nodeid; in prom_version_name() local 61 nodeid = prom_finddevice("/openprom"); in prom_version_name() 62 if (nodeid == (pnode_t)-1) in prom_version_name() 65 proplen = prom_bounded_getprop(nodeid, "version", buf, buflen - 1); in prom_version_name()
|
/titanic_44/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,
|
/titanic_44/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,
|
/titanic_44/usr/src/uts/sun4u/io/ |
H A D | mach_rootnex.c | 241 int nodeid; in rootnex_ctl_reportdev_impl() local 266 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, dev, in rootnex_ctl_reportdev_impl() 268 if (portid == -1 && nodeid == -1) in rootnex_ctl_reportdev_impl() 279 if (nodeid != -1) in rootnex_ctl_reportdev_impl() 280 (void) sprintf(p, "SSM Node %d", nodeid); in rootnex_ctl_reportdev_impl() 298 int portid, nodeid; in rootnex_name_child_impl() local 369 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, child, in rootnex_name_child_impl() 380 if (portid == -1 && nodeid == -1 && in rootnex_name_child_impl() 385 if (nodeid != -1) in rootnex_name_child_impl() 386 (void) snprintf(name, namelen, "%x,0", nodeid); in rootnex_name_child_impl()
|
/titanic_44/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);
|
/titanic_44/usr/src/uts/sun4v/ontario/os/ |
H A D | ontario.c | 75 pnode_t nodeid; in load_platform_drivers() local 85 nodeid = prom_finddevice(ONTARIO_IDE_PATHNAME); in load_platform_drivers() 86 if (nodeid == OBP_BADNODE) { in load_platform_drivers()
|
/titanic_44/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; in add_node() local 790 nodeid = SG_PORTID_TO_NODEID(portid); in add_node() 794 if ((bnode = serengeti_find_board(root, board, nodeid)) == NULL) { in add_node() 795 bnode = serengeti_insert_board(root, board, nodeid); in add_node() 1586 int portid, nodeid, board; in display_failed_parts() local 1638 nodeid = SG_PORTID_TO_NODEID(portid); in display_failed_parts() 1641 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in display_failed_parts() 1655 nodeid = SG_PORTID_TO_NODEID(portid); in display_failed_parts() 1658 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in display_failed_parts() [all …]
|
/titanic_44/usr/src/uts/common/avs/ncall/ |
H A D | ncall.c | 449 ncall_nodename(int nodeid) in ncall_nodename() argument 452 return ((*ncall_modules->module->ncall_nodename)(nodeid)); in ncall_nodename() 459 ncall_mirror(int nodeid) in ncall_mirror() argument 462 return ((*ncall_modules->module->ncall_mirror)(nodeid)); in ncall_mirror() 710 int nodeid; in ncallgetnodes() local 735 while ((nodeid = ncall_nextnode(&sequence)) > 0) { in ncallgetnodes() 736 nodename = ncall_nodename(nodeid); in ncallgetnodes() 753 nodelist[slot].nc_nodeid = nodeid; in ncallgetnodes()
|
H A D | ncall_stub.c | 64 ncall_stub_nodename(int nodeid) in ncall_stub_nodename() argument 66 if (nodeid == nodeinfo.nc_nodeid) in ncall_stub_nodename() 74 ncall_stub_mirror(int nodeid) in ncall_stub_mirror() argument
|
/titanic_44/usr/src/uts/sun4u/os/ |
H A D | mach_ddi_impl.c | 385 pnode_t nodeid; in dip_to_cpu_id() local 388 nodeid = (pnode_t)ddi_get_nodeid(dip); in dip_to_cpu_id() 390 if (cpunodes[i].nodeid == nodeid) { in dip_to_cpu_id()
|
/titanic_44/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 232 pnode_t nodeid = cpunodes[cpuid].nodeid; in start_cpu() local 234 ASSERT(nodeid != (pnode_t)0); in start_cpu() 235 (void) prom_startcpu(nodeid, (caddr_t)&cpu_startup, cpuid); in start_cpu() 737 pnode_t nodeid = cpunodes[cpuid].nodeid; in start_other_cpus() local 739 if (nodeid == (pnode_t)0) in start_other_cpus()
|