/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);
|
H A D | prom_vercheck.c | 323 * Return the nodeid of the flashprom node in *nodeid. 327 prom_version_check(char *buf, size_t buflen, pnode_t *nodeid) argument 341 if (nodeid) 342 *nodeid = node;
|
/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/uts/intel/promif/ |
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_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_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/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/psm/promif/ieee1275/common/ |
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...] |
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...] |
/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
|
/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...] |
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mp_startup.c | 232 pnode_t nodeid = cpunodes[cpuid].nodeid; local 234 ASSERT(nodeid != (pnode_t)0); 235 (void) prom_startcpu(nodeid, (caddr_t)&cpu_startup, cpuid); 737 pnode_t nodeid = cpunodes[cpuid].nodeid; local 739 if (nodeid == (pnode_t)0)
|
/illumos-gate/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 54 (void) fprintf(stderr, gettext(" %s -c [nodeid <nodeid>]\n"), 128 get_nodeid_from_cfg(int *nodeid) argument 137 rc = sscanf(buf, "%d", nodeid); 160 "nodeid: %d\n"), progname, clnodeid); 163 "nodeid: %d\n"), progname, 0); 167 /* deliberately not i18n'd - "nodeid" is a keyword */ 168 (void) printf("nodeid %d\n", cfnodeid); 174 ncall_config(const int nodeid) argument 190 if (snprintf(buf, sizeof (buf), "%d", 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
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | openpromio.h | 112 * With return codes 1 and 2, also returns nodeid, a nodeid 118 int nodeid; /* Valid with positive return codes */ member in struct:openprom_opr64
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgsbbc.c | 642 int nodeid, len; local 662 if (prom_getprop(dnode, IOSRAM_CHOSEN_PROP, (caddr_t)&nodeid) <= 0) { 681 if (prom_phandle_to_path((phandle_t)nodeid, master_sbbc, 685 nodeid);
|
/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/chicago/os/ |
H A D | chicago.c | 307 plat_fill_mc(pnode_t nodeid) argument 314 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
|
/illumos-gate/usr/src/uts/sun4u/enchilada/os/ |
H A D | enchilada.c | 355 plat_fill_mc(pnode_t nodeid) argument 362 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
|
/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/sun4u/os/ |
H A D | mach_ddi_impl.c | 136 * determine the board number associated with this nodeid 385 pnode_t nodeid; local 388 nodeid = (pnode_t)ddi_get_nodeid(dip); 390 if (cpunodes[i].nodeid == nodeid) {
|
/illumos-gate/usr/src/uts/sun4u/schumacher/os/ |
H A D | schumacher.c | 338 plat_fill_mc(pnode_t nodeid) argument 345 if ((prom_getprop(nodeid, "portid", (caddr_t)&portid) == -1) ||
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | iscsi_boot.c | 280 pnode_t nodeid; local 338 nodeid = prom_finddevice((char *)iscsi_network_path); 339 proplen = prom_getproplen(nodeid, BP_LOCAL_MAC_ADDRESS); 341 if (prom_getprop(nodeid, BP_LOCAL_MAC_ADDRESS,
|
/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...] |