/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_nodeid.c | 244 if ((nodeid + 1) == np->nodeid) { in impl_ddi_free_nodeid() 245 np->nodeid = nodeid; in impl_ddi_free_nodeid() 265 if (nodeid < np->nodeid) { in impl_ddi_free_nodeid() 266 fp->nodeid = nodeid; in impl_ddi_free_nodeid() 272 if (nodeid < (np->nodeid + np->count)) in impl_ddi_free_nodeid() 280 fp->nodeid = nodeid; in impl_ddi_free_nodeid() 328 if (nodeid < np->nodeid) in impl_ddi_take_nodeid() 334 if ((nodeid) == np->nodeid) { in impl_ddi_take_nodeid() 382 fp->nodeid = np->nodeid; in impl_ddi_take_nodeid() 383 fp->count = nodeid - np->nodeid; in impl_ddi_take_nodeid() [all …]
|
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 95 my ($self, $nodeid) = @_; 169 %node = $self->getnode($nodeid); 176 $nodeid++; 177 %node = $self->getnode($nodeid); 179 return $nodeid; 205 return if ($seen->[$nodeid] == 1); 206 $seen->[$nodeid] = 1; 208 %node = $self->getnode($nodeid); 213 $nodeid++; 214 %node = $self->getnode($nodeid); [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 105 pnode_t nodeid; in sbdp_disconnect_cpu() local 116 nodeid = ddi_get_nodeid(dip); in sbdp_disconnect_cpu() 186 pnode_t nodeid; in sbdp_connect_cpu() local 197 nodeid = ddi_get_nodeid(dip); in sbdp_connect_cpu() 289 pnode_t nodeid; in sbdp_cpu_poweron() local 300 nodeid = cpunodes[cpuid].nodeid; in sbdp_cpu_poweron() 364 pnode_t nodeid; in sbdp_cpu_poweroff() local 379 nodeid = cpunodes[cpuid].nodeid; in sbdp_cpu_poweroff() 487 pnode_t nodeid; in sbdp_get_cpuid() local 529 pnode_t nodeid; in sbdp_cpu_get_impl() local [all …]
|
H A D | sbdp_mem.c | 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() 530 dip = e_ddi_nodeid_to_dip(nodeid); in sbdp_move_memory() 738 ASSERT(nodeid != OBP_NONODE); in mc_get_idle_reg() 744 "for dnode=0x%x\n", nodeid); in mc_get_idle_reg() 750 "for dnode=0x%x\n", nodeid); in mc_get_idle_reg() 1265 pnode_t nodeid; in sbdphw_get_base_physaddr() local 1274 nodeid = ddi_get_nodeid(dip); in sbdphw_get_base_physaddr() [all …]
|
H A D | sbdp.c | 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() 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() 309 len = prom_getproplen(nodeid, "reg"); in sbdp_get_unit_num() 924 sbdp_get_comp_status(pnode_t nodeid) in sbdp_get_comp_status() argument 934 if (sbdp_is_node_bad(nodeid)) { in sbdp_get_comp_status() [all …]
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_emul.c | 161 promif_find_node(pnode_t nodeid) in promif_find_node() argument 163 if (nodeid == OBP_NONODE) in promif_find_node() 169 return (find_node_work(promif_top, nodeid)); in promif_find_node() 173 promif_nextnode(pnode_t nodeid) in promif_nextnode() argument 180 pnp = promif_find_node(nodeid); in promif_nextnode() 181 if (pnp && (nodeid == OBP_NONODE)) in promif_nextnode() 190 promif_childnode(pnode_t nodeid) in promif_childnode() argument 194 pnp = promif_find_node(nodeid); in promif_childnode() 222 pnp = promif_find_node(nodeid); in promif_getproplen() 248 pnp = promif_find_node(nodeid); in promif_getprop() [all …]
|
H A D | prom_prop.c | 36 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() argument 38 return (promif_getproplen(nodeid, name)); in prom_getproplen() 42 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() argument 44 return (promif_getprop(nodeid, name, value)); in prom_getprop() 48 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() argument 50 return (promif_nextprop(nodeid, previous, next)); in prom_nextprop() 71 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop() argument
|
H A D | prom_node.c | 51 prom_nextnode(pnode_t nodeid) in prom_nextnode() argument 53 return (promif_nextnode(nodeid)); in prom_nextnode() 57 prom_childnode(pnode_t nodeid) in prom_childnode() argument 60 return (promif_childnode(nodeid)); in prom_childnode()
|
/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_stree.c | 103 pnp = find_node(nodeid); in promif_stree_parentnode() 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() 145 pnp = find_node(nodeid); in promif_stree_getproplen() 159 pnp = find_node(nodeid); in promif_stree_getprop() 184 pnp = find_node(nodeid); in promif_stree_nextprop() 216 find_node(pnode_t nodeid) in find_node() argument 219 if (nodeid == OBP_NONODE) in find_node() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses_facility.c | 464 const char *type, uint64_t nodeid) in ses_add_fac_common() argument 509 nodeid, &err) != 0) { in ses_add_fac_common() 535 TOPO_FAC_TYPE_INDICATOR, nodeid)) == NULL) in ses_add_indicator() 597 TOPO_FAC_TYPE_SENSOR, nodeid)) == NULL) in ses_add_sensor_common() 774 uint64_t type, nodeid; in ses_node_enum_facility() local 781 nodeid = ses_node_id(np); in ses_node_enum_facility() 846 if (ses_add_psu_status(mod, tn, nodeid) != 0) in ses_node_enum_facility() 875 uint64_t index, nodeid; in ses_add_enclosure_sensors() local 917 nodeid = ses_node_id(child); in ses_add_enclosure_sensors() 960 uint64_t type, nodeid; in ses_enc_enum_facility() local [all …]
|
/illumos-gate/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()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mach_rootnex.c | 242 int nodeid; in rootnex_ctl_reportdev_impl() local 267 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, dev, in rootnex_ctl_reportdev_impl() 269 if (portid == -1 && nodeid == -1) in rootnex_ctl_reportdev_impl() 280 if (nodeid != -1) in rootnex_ctl_reportdev_impl() 281 (void) sprintf(p, "SSM Node %d", nodeid); in rootnex_ctl_reportdev_impl() 299 int portid, nodeid; in rootnex_name_child_impl() local 364 nodeid = ddi_prop_get_int(DDI_DEV_T_ANY, child, in rootnex_name_child_impl() 375 if (portid == -1 && nodeid == -1 && in rootnex_name_child_impl() 380 if (nodeid != -1) in rootnex_name_child_impl() 381 (void) snprintf(name, namelen, "%x,0", nodeid); in rootnex_name_child_impl()
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | promif.h | 65 extern pnode_t prom_childnode(pnode_t nodeid); 66 extern pnode_t prom_nextnode(pnode_t nodeid); 71 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 72 extern int prom_getprop(pnode_t nodeid, caddr_t name, 74 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 85 extern int prom_bounded_getprop(pnode_t nodeid,
|
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | promif.h | 88 extern pnode_t prom_childnode(pnode_t nodeid); 89 extern pnode_t prom_nextnode(pnode_t nodeid); 90 extern pnode_t prom_parentnode(pnode_t nodeid); 104 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 105 extern int prom_getprop(pnode_t nodeid, caddr_t name, 107 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 109 extern int prom_setprop(pnode_t nodeid, caddr_t name, 123 extern int prom_bounded_getprop(pnode_t nodeid,
|
/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/lib/libprtdiag_psr/sparc/serengeti/common/ |
H A D | serengeti.c | 772 int nodeid = -1; in add_node() local 789 nodeid = SG_PORTID_TO_NODEID(portid); in add_node() 1583 int portid, nodeid, board; in display_failed_parts() local 1806 int nodeid, board, mcid; in print_us3_memory_line() local 1810 nodeid = SG_PORTID_TO_NODEID(portid); in print_us3_memory_line() 1813 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in print_us3_memory_line() 1828 int nodeid, board, mcid; in print_us3_failed_memory_line() local 1832 nodeid = SG_PORTID_TO_NODEID(portid); in print_us3_failed_memory_line() 1835 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in print_us3_failed_memory_line() 1886 bnode->node_id = nodeid; in serengeti_insert_board() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/common/mc/imc/ |
H A D | imc_decode.c | 184 uint32_t nodeid, tadid, channelid; in imc_decode_sad() local 240 nodeid = IMC_SAD_ILEAVE_SKX_TARGET(ileavetgt); in imc_decode_sad() 250 imc->imc_sockets[i].isock_nodeid == nodeid) { in imc_decode_sad() 259 dec->ids_fail_data = nodeid; in imc_decode_sad() 320 nodeid = ileavetgt; in imc_decode_sad() 332 nodeid = IMC_NODEID_IVY_BRD_UPPER(ileavetgt) | in imc_decode_sad() 344 nodeid = socket->isock_nodeid; in imc_decode_sad() 361 nodeid = tadid = channelid = UINT32_MAX; in imc_decode_sad() 371 if (imc->imc_sockets[i].isock_nodeid == nodeid) { in imc_decode_sad() 378 dec->ids_fail_data = nodeid; in imc_decode_sad() [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 241 pnode_t nodeid = cpunodes[cpuid].nodeid; in start_cpu() local 243 ASSERT(nodeid != (pnode_t)0); in start_cpu() 244 (void) prom_startcpu(nodeid, (caddr_t)&cpu_startup, cpuid); in start_cpu() 746 pnode_t nodeid = cpunodes[cpuid].nodeid; in start_other_cpus() local 748 if (nodeid == (pnode_t)0) in start_other_cpus()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | systeminfo.c | 291 pnode_t nodeid; member 301 if (ddi_get_nodeid(dev) == (int)f->nodeid) { in i_path_find_node() 321 fn.nodeid = prom_finddevice(path); in path_to_devinfo() 322 if (fn.nodeid != OBP_BADNODE) { in path_to_devinfo()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | openprom.c | 1153 oprom_copyprop(pnode_t nodeid, uint_t flag, nvlist_t *nvl) in oprom_copyprop() argument 1164 proplen = prom_getproplen(nodeid, "name"); in oprom_copyprop() 1168 nodeid); in oprom_copyprop() 1173 (void) prom_getprop(nodeid, "name", propval); in oprom_copyprop() 1185 while (propname = (char *)prom_nextprop(nodeid, buf1, buf2)) { in oprom_copyprop() 1190 proplen = prom_getproplen(nodeid, propname); in oprom_copyprop() 1198 (void) prom_getprop(nodeid, propname, propval); in oprom_copyprop() 1218 pnode_t child = prom_childnode(nodeid); in oprom_copychild() 1258 (void) nvlist_add_int32(nvl, "@nodeid", (int32_t)nodeid); in oprom_copynode() 1261 if (error = oprom_copyprop(nodeid, flag, nvl)) in oprom_copynode() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_qinfo_file.c | 332 u_longlong_t nodeid; in smb2_qif_internal() local 336 nodeid = sa->sa_vattr.va_nodeid; in smb2_qif_internal() 340 nodeid = 0; in smb2_qif_internal() 344 nodeid); /* q */ in smb2_qif_internal() 737 uint64_t nodeid; in smb2_qif_id_info() local 746 nodeid = (uint64_t)sa->sa_vattr.va_nodeid; in smb2_qif_id_info() 752 nodeid, /* q */ in smb2_qif_id_info()
|