Searched refs:pnode (Results 1 - 25 of 101) sorted by relevance

12345

/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dprom.c95 Prom_node *pnode; local
104 if ((pnode = find_device(bnode, 0x1F, SBUS_NAME)) == NULL) {
105 pnode = find_pci_bus(bnode->nodes, 0x1F, 1);
112 for (pnode = dev_find_node(pnode, "flashprom"); pnode != NULL;
113 pnode = dev_next_node(pnode, "flashprom")) {
114 if (find_prop(pnode, "version") != NULL) {
115 disp_prom_version(pnode);
[all...]
H A Dpdevinfo_sun4u.c165 Prom_node *pnode; local
172 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) ==
179 pnode->parent = root;
180 pnode->sibling = NULL;
181 pnode->child = NULL;
184 dump_node(pnode);
200 name = get_node_name(pnode);
201 type = get_node_type(pnode);
202 model = (char *)get_prop_val(find_prop(pnode, "model"));
217 if (has_board_num(pnode)) {
[all...]
H A Dpdevinfo_sun4v.c151 Prom_node *pnode; local
158 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) ==
165 pnode->parent = root;
166 pnode->sibling = NULL;
167 pnode->child = NULL;
170 dump_node(pnode);
181 name = get_node_name(pnode);
182 type = get_node_type(pnode);
183 compatible = (char *)get_prop_val(find_prop(pnode, "compatible"));
197 if (has_board_num(pnode)) {
[all...]
H A Dlibdevinfo_sun4u.c54 static void dump_di_node(Prom_node *pnode, di_node_t di_node);
76 Prom_node *pnode; local
84 if ((pnode = (Prom_node *) malloc(sizeof (struct prom_node))) ==
91 pnode->parent = root;
92 pnode->sibling = NULL;
93 pnode->child = NULL;
96 dump_di_node(pnode, di_node);
98 name = get_node_name(pnode);
99 type = get_node_type(pnode);
102 model = (char *)get_prop_val(find_prop(pnode, "mode
198 dump_di_node(Prom_node *pnode, di_node_t di_node) argument
[all...]
H A Dpdevinfo_funcs.c123 /* clear out pointers in pnode */
410 get_node_name(Prom_node *pnode) argument
414 if (pnode == NULL) {
418 prop = pnode->props;
432 get_node_type(Prom_node *pnode) argument
436 if (pnode == NULL) {
440 prop = pnode->props;
509 Prom_node *pnode; local
519 if ((pnode = find_failed_node(root->child)) != NULL)
520 return (pnode);
536 Prom_node *pnode; local
614 find_prop(Prom_node *pnode, char *name) argument
640 add_node(Sys_tree *root, Prom_node *pnode) argument
680 Prom_node *pnode; local
[all...]
H A Ddisplay_funcs.c118 Prom_node *pnode; local
124 pnode = dev_find_node(root, option_str);
125 if (pnode == NULL) {
129 value_str = get_prop_val(find_prop(pnode, pf_str));
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/hostbridge/
H A Dhb_sun4u.c121 di_node_t pnode; local
131 pnode = di_drv_first_node(PCI, devtree);
132 while (pnode != DI_NODE_NIL) {
133 if (busorrc_add(mod, &buses, pnode) < 0) {
136 pnode = di_drv_next_node(pnode);
138 pnode = di_drv_first_node(PSYCHO, devtree);
139 while (pnode != DI_NODE_NIL) {
140 if (busorrc_add(mod, &buses, pnode) < 0) {
143 pnode
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/
H A Dchip_temp.c33 chip_create_core_temp_sensor(topo_mod_t *mod, tnode_t *pnode) argument
40 core = topo_node_instance(pnode);
41 if (topo_prop_get_int32(pnode, PGNAME(CORE), CORE_CHIP_ID, &chip,
63 if (topo_prop_get_int32(pnode, PGNAME(CORE), CORE_PROCNODE_ID,
74 return (topo_sensor_create_temp_sensor(mod, pnode, buf, "temp"));
78 chip_create_chip_temp_sensor(topo_mod_t *mod, tnode_t *pnode) argument
83 chip = topo_node_instance(pnode);
90 return (topo_sensor_create_temp_sensor(mod, pnode, buf, "temp"));
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/hostbridge/
H A Dhb_i86pc.c83 di_node_t pnode, cnode; local
94 pnode = di_drv_first_node(PCI, devtree);
95 while (pnode != DI_NODE_NIL) {
96 if (hb_process(mod, ptn, hbcnt, pnode) < 0) {
102 pnode = di_drv_next_node(pnode);
105 pnode = di_drv_first_node(NPE, devtree);
106 while (pnode != DI_NODE_NIL) {
107 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL;
132 pnode
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/
H A Dtopo_port.c42 port_range_create(topo_mod_t *mod, tnode_t *pnode, topo_instance_t min, argument
45 return (topo_node_range_create(mod, pnode, PORT, min, max));
54 port_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, argument
67 if ((auth = topo_mod_auth(mod, pnode)) == NULL) {
73 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, PORT,
80 if ((tn = topo_node_bind(mod, pnode, PORT, inst, fmri)) == NULL) {
89 if (topo_node_resource(pnode, &presource, &err) != 0) {
134 port_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, argument
139 tn = port_create_common(mod, pnode, inst, TOPO_PROP_PORT_TYPE_SFF);
147 port_create_usb(topo_mod_t *mod, tnode_t *pnode, topo_instance_ argument
[all...]
H A Dtopo_transceiver.c40 transceiver_range_create(topo_mod_t *mod, tnode_t *pnode, topo_instance_t min, argument
43 return (topo_node_range_create(mod, pnode, TRANSCEIVER, min, max));
47 transceiver_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, argument
61 if ((auth = topo_mod_auth(mod, pnode)) == NULL) {
67 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION,
74 if ((tn = topo_node_bind(mod, pnode, TRANSCEIVER, inst, fmri)) ==
124 transceiver_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, argument
131 if ((tn = transceiver_create_common(mod, pnode, inst,
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_node.c133 tnode_t *pnode; local
140 pnode = node->tn_parent;
153 topo_node_lock(pnode);
163 --pnode->tn_refs;
164 if (pnode->tn_refs == 0)
165 topo_node_destroy(pnode);
168 topo_node_unlock(pnode);
279 node_create_seterror(topo_mod_t *mod, tnode_t *pnode, topo_nodehash_t *nhp, argument
282 topo_node_unlock(pnode);
301 topo_node_range_create(topo_mod_t *mod, tnode_t *pnode, cons argument
352 topo_node_range_destroy(tnode_t *pnode, const char *name) argument
390 topo_node_lookup(tnode_t *pnode, const char *name, topo_instance_t inst) argument
428 node_bind_seterror(topo_mod_t *mod, tnode_t *pnode, tnode_t *node, boolean_t pnode_locked, int err) argument
450 topo_node_bind(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t inst, nvlist_t *fmri) argument
536 topo_node_facbind(topo_mod_t *mod, tnode_t *pnode, const char *name, const char *type) argument
849 topo_node_child_walk(topo_hdl_t *thp, tnode_t *pnode, topo_walk_cb_t cb_f, void *arg, int *errp) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/
H A Ddesktop.c156 Prom_node *pnode; local
163 pnode = find_failed_node(bnode->nodes);
164 if ((pnode != NULL) && !system_failed) {
177 while (pnode != NULL) {
183 value = get_prop_val(find_prop(pnode, "status"));
184 name = get_node_name(pnode);
188 pnode = next_failed_node(pnode);
217 get_sbus_slot(pnode), 0);
219 } else if (((name = get_node_name(pnode
343 Prom_node *pnode; local
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c237 Prom_node *pnode; local
247 pnode = find_failed_node(bnode->nodes);
248 if ((pnode != NULL) && !system_failed) {
261 while (pnode != NULL) {
266 value = get_prop_val(find_prop(pnode, "status"));
267 name = get_node_name(pnode);
271 pnode = next_failed_node(pnode);
292 "Card %d\n"), get_sbus_slot(pnode), 0);
294 } else if (((name = get_node_name(pnode)) !
865 Prom_node *pnode; local
1159 Prom_node *pnode; local
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c240 Prom_node *pnode; local
250 pnode = find_failed_node(bnode->nodes);
251 if ((pnode != NULL) && !system_failed) {
264 while (pnode != NULL) {
269 value = get_prop_val(find_prop(pnode, "status"));
270 name = get_node_name(pnode);
274 pnode = next_failed_node(pnode);
296 "Card %d\n"), get_sbus_slot(pnode), 0);
298 } else if (((name = get_node_name(pnode)) !
829 Prom_node *pnode; local
1366 Prom_node *pnode; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire/ioboard/
H A Diob_platform.c83 di_node_t pnode; local
98 pnode = di_drv_first_node(SCHIZO, devtree);
99 while (pnode != DI_NODE_NIL) {
103 pnode, IOB_BASEADDR, BUS_ADDRDIST, 6, 9, &brd, &br, &bus);
105 pnode = di_drv_next_node(pnode);
109 pnode = di_drv_next_node(pnode);
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dexport.c46 POLICY_LIST *plclist = NULL, *pnode; local
130 pnode = plclist;
131 while (pnode != NULL && !found) {
132 if (strcmp(policyname, pnode->plc.name) == 0) {
136 ret = kmf_verify_policy(&pnode->plc);
142 rv = kmf_add_policy_to_db(&pnode->plc, outfile,
145 pnode = pnode->next;
H A Dimport.c47 POLICY_LIST *plclist = NULL, *pnode; local
132 pnode = plclist;
133 while (pnode != NULL && !found) {
134 if (strcmp(policyname, pnode->plc.name) == 0) {
138 ret = kmf_verify_policy(&pnode->plc);
144 rv = kmf_add_policy_to_db(&pnode->plc, filename,
147 pnode = pnode->next;
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl.c93 Prop *find_prop(Prom_node *pnode, char *name);
103 void add_node(Sys_tree *root, Prom_node *pnode);
303 Prom_node *pnode, *cpu; local
311 for (pnode = board->nodes; pnode != NULL; pnode = pnode->sibling) {
314 name = get_node_name(pnode);
319 portid = (int *)get_prop_val(find_prop(pnode, "portid"));
320 freq = (HZ_TO_MHZ(get_cpu_freq(pnode
443 Prom_node *pnode; local
677 Prom_node *pnode; local
821 find_prop(Prom_node *pnode, char *name) argument
842 add_node(Sys_tree *root, Prom_node *pnode) argument
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/
H A Dserengeti.c125 Prop *find_prop(Prom_node *pnode, char *name);
126 char *get_node_name(Prom_node *pnode);
127 char *get_node_type(Prom_node *pnode);
767 add_node(Sys_tree *root, Prom_node *pnode) argument
779 if ((value = get_prop_val(find_prop(pnode, "portid"))) == NULL) {
780 if ((type = get_node_type(pnode)) && (strcmp(type, "cpu") == 0))
782 get_prop_val(find_prop(pnode->parent, "portid"));
798 pnode->sibling = NULL;
800 bnode->nodes = pnode;
805 p->sibling = pnode;
1216 Prom_node *pnode; local
1278 Prom_node *pnode; local
1462 Prom_node *pnode; local
1586 Prom_node *pnode; local
1950 find_prop(Prom_node *pnode, char *name) argument
1981 get_node_name(Prom_node *pnode) argument
2009 get_node_type(Prom_node *pnode) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/dimm/
H A Ddimm_sun4v.c197 create_one_dimm(topo_mod_t *mod, tnode_t *pnode, int inst, mem_dimm_map_t *dp) argument
212 auth = topo_mod_auth(mod, pnode);
213 if ((fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, "dimm",
218 cnode = mem_tnode_create(mod, pnode, "dimm", inst,
262 mem_inst_create(topo_mod_t *mod, tnode_t *pnode, int pflen, mem_dimm_map_t *dp) argument
275 return (create_one_dimm(mod, pnode, inst, dp));
277 fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION,
280 cnode = mem_tnode_create(mod, pnode, nodename, inst,
285 cnode = mem_tnode_create(mod, pnode, nodename, inst,
295 mem_range_create(topo_mod_t *mod, tnode_t *pnode, in argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_hostbridge.c192 di_node_t devtree, pnode, cnode; local
203 for (pnode = di_drv_first_node(PCI, devtree);
204 pnode != DI_NODE_NIL; pnode = di_drv_next_node(pnode))
205 if (x86pi_bdf(mod, pnode) == bdf)
206 return (pci_process(mod, tn_hbr, pnode));
208 pnode = di_drv_first_node(NPE, devtree);
209 while (pnode != DI_NODE_NIL) {
210 for (cnode = di_child_node(pnode); cnod
[all...]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/
H A Dlittleneck.c465 Prom_node *pnode; local
470 pnode = find_failed_node(bnode->nodes);
471 if ((pnode != NULL) && !system_failed) {
483 while (pnode != NULL) {
489 value = get_prop_val(find_prop(pnode, "status"));
490 name = get_node_name(pnode);
494 pnode = next_failed_node(pnode);
523 get_sbus_slot(pnode));
525 } else if (((name = get_node_name(pnode
945 Prom_node *pnode; local
975 Prom_node *pnode; local
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chipset/
H A Dchipset.c77 topo_chipset_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, argument
98 if ((auth = topo_mod_auth(mod, pnode)) == NULL) {
106 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION,
115 if ((tn = topo_node_bind(mod, pnode, CHIPSET, inst, fmri)) == NULL) {
122 if (topo_node_resource(pnode, &presource, &ret) != 0) {
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/
H A Dkmdb_promif_isadep.c172 pnode_t pnode; local
183 prom_getprop((pnode = prom_parentnode(node)), "name", name) != -1 &&
185 return (pnode);
235 pnode_t pnode; local
238 pnode = (pnode_t)prom_getphandle(prom_mmu_ihandle());
239 if (prom_getprop(pnode, PROM_KCTX_PRESERVED_PROPNAME,

Completed in 174 milliseconds

12345