Home
last modified time | relevance | path

Searched refs:nodeid (Results 1 – 25 of 86) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/os/
H A Dddi_nodeid.c48 uint32_t nodeid; member
159 if ((np->nodeid + np->count) == xp->nodeid) { in np_coalesce()
183 impl_ddi_alloc_nodeid(int *nodeid) in impl_ddi_alloc_nodeid() argument
193 *nodeid = 0; in impl_ddi_alloc_nodeid()
198 x = (int)((unsigned int)np->nodeid); in impl_ddi_alloc_nodeid()
199 ++np->nodeid; in impl_ddi_alloc_nodeid()
214 *nodeid = x; in impl_ddi_alloc_nodeid()
221 uint32_t nodeid = (uint32_t)n; in impl_ddi_free_nodeid() local
244 if ((nodeid + 1) == np->nodeid) { in impl_ddi_free_nodeid()
245 np->nodeid = nodeid; in impl_ddi_free_nodeid()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_cpu.c105 pnode_t nodeid; in sbdp_disconnect_cpu() local
116 nodeid = ddi_get_nodeid(dip); in sbdp_disconnect_cpu()
124 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_disconnect_cpu()
149 if (SBDP_INJECT_ERROR(f, 1) || prom_serengeti_cpu_off(nodeid) != 0) { in sbdp_disconnect_cpu()
186 pnode_t nodeid; in sbdp_connect_cpu() local
197 nodeid = ddi_get_nodeid(dip); in sbdp_connect_cpu()
204 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_connect_cpu()
247 prom_serengeti_wakeupcpu(nodeid) != 0) { in sbdp_connect_cpu()
289 pnode_t nodeid; in sbdp_cpu_poweron() local
300 nodeid = cpunodes[cpuid].nodeid; in sbdp_cpu_poweron()
[all …]
H A Dsbdp_mem.c58 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 Dsbdp.c182 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 …]
/illumos-gate/usr/src/cmd/device_remap/
H A Ddevice_remap.pl95 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 …]
/illumos-gate/usr/src/uts/intel/promif/
H A Dprom_emul.c41 static prom_node_t *promif_find_node(pnode_t nodeid);
144 promif_find_node(pnode_t nodeid) in promif_find_node() argument
156 if (nodeid == OBP_NONODE) in promif_find_node()
167 if (cur->pn_nodeid == nodeid) in promif_find_node()
185 promif_nextnode(pnode_t nodeid) in promif_nextnode() argument
192 pnp = promif_find_node(nodeid); in promif_nextnode()
193 if (pnp && (nodeid == OBP_NONODE)) in promif_nextnode()
202 promif_childnode(pnode_t nodeid) in promif_childnode() argument
206 pnp = promif_find_node(nodeid); in promif_childnode()
230 promif_getproplen(pnode_t nodeid, char *name) in promif_getproplen() argument
[all …]
H A Dprom_prop.c36 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 Dprom_node.c51 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 Dpromif_stree.c58 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 …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses_facility.c464 const char *type, uint64_t nodeid) in ses_add_fac_common() argument
509 nodeid, &err) != 0) { in ses_add_fac_common()
526 ses_add_indicator(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_indicator() argument
535 TOPO_FAC_TYPE_INDICATOR, nodeid)) == NULL) in ses_add_indicator()
589 ses_add_sensor_common(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_sensor_common() argument
597 TOPO_FAC_TYPE_SENSOR, nodeid)) == NULL) in ses_add_sensor_common()
628 ses_add_sensor(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_sensor() argument
635 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, name, in ses_add_sensor()
697 ses_add_discrete(topo_mod_t *mod, tnode_t *pnode, uint64_t nodeid, in ses_add_discrete() argument
704 if ((tn = ses_add_sensor_common(mod, pnode, nodeid, name, in ses_add_discrete()
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_prop.c182 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 Dprom_node.c36 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 Dprom_vername.c48 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 Dmach_rootnex.c242 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 Dpromif.h65 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 Dpromif.h88 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/lib/libprtdiag_psr/sparc/serengeti/common/
H A Dserengeti.c147 static Board_node *serengeti_find_board(Sys_tree *root, int board, int nodeid);
772 int nodeid = -1; in add_node() local
789 nodeid = SG_PORTID_TO_NODEID(portid); in add_node()
793 if ((bnode = serengeti_find_board(root, board, nodeid)) == NULL) { in add_node()
794 bnode = serengeti_insert_board(root, board, nodeid); in add_node()
1583 int portid, nodeid, board; in display_failed_parts() local
1635 nodeid = SG_PORTID_TO_NODEID(portid); in display_failed_parts()
1638 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in display_failed_parts()
1652 nodeid = SG_PORTID_TO_NODEID(portid); in display_failed_parts()
1655 SG_SET_FRU_NAME_NODE(fru_name, nodeid); in display_failed_parts()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dpromif_impl.h82 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 Dontario.c75 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 Dimc_decode.c184 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 Dmp_startup.c241 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 Dmach_ddi_impl.c385 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/io/
H A Dopenprom.c1153 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()
1215 oprom_copychild(pnode_t nodeid, uint_t flag, char **buf, size_t *size) in oprom_copychild() argument
1218 pnode_t child = prom_childnode(nodeid); in oprom_copychild()
1247 oprom_copynode(pnode_t nodeid, uint_t flag, char **buf, size_t *size) in oprom_copynode() argument
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Dsysteminfo.c291 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/fs/smbsrv/
H A Dsmb2_qinfo_file.c332 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()

1234