Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_node.c133 tnode_t *pnode; in topo_node_destroy() local
153 topo_node_lock(pnode); in topo_node_destroy()
163 --pnode->tn_refs; in topo_node_destroy()
320 topo_node_lock(pnode); in topo_node_range_create()
372 topo_node_lock(pnode); in topo_node_range_destroy()
413 topo_node_lock(pnode); in topo_node_lookup()
471 topo_node_lock(pnode); in topo_node_bind()
531 ++pnode->tn_refs; in topo_node_bind()
565 topo_node_hold(pnode); in topo_node_facbind()
566 topo_node_lock(pnode); in topo_node_facbind()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/
H A Ddesktop.c142 Prom_node *pnode; in disp_fail_parts() local
174 pnode = next_failed_node(pnode); in disp_fail_parts()
224 pnode = next_failed_node(pnode); in disp_fail_parts()
315 Prom_node *pnode; in dt_disp_asic_revs() local
333 for (pnode = dev_find_node(bnode->nodes, "sbus"); pnode != NULL; in dt_disp_asic_revs()
334 pnode = dev_next_node(pnode, "sbus")) { in dt_disp_asic_revs()
345 for (pnode = dev_find_node(bnode->nodes, "pci"); pnode != NULL; in dt_disp_asic_revs()
346 pnode = dev_next_node(pnode, "pci")) { in dt_disp_asic_revs()
356 for (pnode = dev_find_node(bnode->nodes, "ebus"); pnode != NULL; in dt_disp_asic_revs()
357 pnode = dev_next_node(pnode, "ebus")) { in dt_disp_asic_revs()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4u/hostbridge/
H A Dhb_sun4u.c121 di_node_t pnode; in pci_hostbridges_find() local
131 pnode = di_drv_first_node(PCI, devtree); in pci_hostbridges_find()
132 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
136 pnode = di_drv_next_node(pnode); in pci_hostbridges_find()
139 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
143 pnode = di_drv_next_node(pnode); in pci_hostbridges_find()
146 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
150 pnode = di_drv_next_node(pnode); in pci_hostbridges_find()
152 pnode = di_drv_first_node(PX, devtree); in pci_hostbridges_find()
153 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c235 Prom_node *pnode; in disp_fail_parts() local
269 pnode = next_failed_node(pnode); in disp_fail_parts()
336 pnode = next_failed_node(pnode); in disp_fail_parts()
946 pnode->child = walk(tree, pnode, curnode); in walk()
960 return (pnode); in walk()
1172 pnode = dev_next_node(pnode, "sbus")) { in tazjav_disp_asic_revs()
1183 pnode = dev_next_node(pnode, "pci")) { in tazjav_disp_asic_revs()
1208 pnode = dev_next_node(pnode, "ebus")) { in tazjav_disp_asic_revs()
1217 for (pnode = dev_find_node(bnode->nodes, "sc"); pnode != NULL; in tazjav_disp_asic_revs()
1218 pnode = dev_next_node(pnode, "sc")) { in tazjav_disp_asic_revs()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c238 Prom_node *pnode; in disp_fail_parts() local
272 pnode = next_failed_node(pnode); in disp_fail_parts()
342 pnode = next_failed_node(pnode); in disp_fail_parts()
911 pnode->child = walk(tree, pnode, curnode); in walk()
925 return (pnode); in walk()
1380 pnode = dev_next_node(pnode, "sbus")) { in tazjav_disp_asic_revs()
1392 pnode = dev_next_node(pnode, "pci")) { in tazjav_disp_asic_revs()
1417 pnode = dev_next_node(pnode, "ebus")) { in tazjav_disp_asic_revs()
1426 for (pnode = dev_find_node(bnode->nodes, "sc"); pnode != NULL; in tazjav_disp_asic_revs()
1427 pnode = dev_next_node(pnode, "sc")) { in tazjav_disp_asic_revs()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_sun4u.c165 Prom_node *pnode; in walk() local
179 pnode->parent = root; in walk()
180 pnode->sibling = NULL; in walk()
181 pnode->child = NULL; in walk()
184 dump_node(pnode); in walk()
200 name = get_node_name(pnode); in walk()
201 type = get_node_type(pnode); in walk()
218 add_node(tree, pnode); in walk()
245 add_node(tree, pnode); in walk()
259 pnode->child = walk(tree, pnode, curnode); in walk()
[all …]
H A Dlibdevinfo_sun4u.c76 Prom_node *pnode; in walk_di_tree() local
91 pnode->parent = root; in walk_di_tree()
92 pnode->sibling = NULL; in walk_di_tree()
93 pnode->child = NULL; in walk_di_tree()
138 add_node(tree, pnode); in walk_di_tree()
160 add_node(tree, pnode); in walk_di_tree()
172 pnode->child = walk_di_tree(tree, pnode, curnode); in walk_di_tree()
190 return (pnode); in walk_di_tree()
209 pnode->props = NULL; in dump_di_node()
330 pnode->props = temp; in dump_di_node()
[all …]
H A Dprom.c95 Prom_node *pnode; in platform_disp_prom_version() local
104 if ((pnode = find_device(bnode, 0x1F, SBUS_NAME)) == NULL) { in platform_disp_prom_version()
105 pnode = find_pci_bus(bnode->nodes, 0x1F, 1); in platform_disp_prom_version()
112 for (pnode = dev_find_node(pnode, "flashprom"); pnode != NULL; in platform_disp_prom_version()
113 pnode = dev_next_node(pnode, "flashprom")) { in platform_disp_prom_version()
114 if (find_prop(pnode, "version") != NULL) { in platform_disp_prom_version()
115 disp_prom_version(pnode); in platform_disp_prom_version()
H A Dpdevinfo_sun4v.c151 Prom_node *pnode; in sun4v_walk() local
165 pnode->parent = root; in sun4v_walk()
166 pnode->sibling = NULL; in sun4v_walk()
167 pnode->child = NULL; in sun4v_walk()
170 dump_node(pnode); in sun4v_walk()
181 name = get_node_name(pnode); in sun4v_walk()
182 type = get_node_type(pnode); in sun4v_walk()
198 add_node(tree, pnode); in sun4v_walk()
205 add_node(tree, pnode); in sun4v_walk()
219 pnode->child = sun4v_walk(tree, pnode, curnode); in sun4v_walk()
[all …]
H A Dpdevinfo_funcs.c414 if (pnode == NULL) { in get_node_name()
509 Prom_node *pnode; in find_failed_node() local
520 return (pnode); in find_failed_node()
524 return (pnode); in find_failed_node()
536 Prom_node *pnode; in next_failed_node() local
544 return (pnode); in next_failed_node()
549 return (pnode); in next_failed_node()
556 return (pnode); in next_failed_node()
680 Prom_node *pnode; in find_device() local
689 return (pnode); in find_device()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/
H A Dopl.c304 Prom_node *pnode, *cpu; in display_cpus() local
312 for (pnode = board->nodes; pnode != NULL; pnode = pnode->sibling) { in display_cpus()
444 Prom_node *pnode; in get_opl_mem_regs() local
450 while (pnode != NULL) { in get_opl_mem_regs()
496 pnode = dev_next_node(pnode, "pseudo-mc"); in get_opl_mem_regs()
677 Prom_node *pnode; in opl_disp_hw_revisions() local
696 if (pnode != NULL) { in opl_disp_hw_revisions()
825 if (pnode == NULL) in find_prop()
863 pnode->sibling = NULL; in add_node()
865 bnode->nodes = pnode; in add_node()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/hostbridge/
H A Dhb_i86pc.c83 di_node_t pnode, cnode; in pci_hostbridges_find() local
94 pnode = di_drv_first_node(PCI, devtree); in pci_hostbridges_find()
95 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
103 if (di_bus_addr(pnode) == NULL) { in pci_hostbridges_find()
104 pnode = di_drv_next_node(pnode); in pci_hostbridges_find()
108 if (hb_process(mod, ptn, hbcnt, pnode) < 0) { in pci_hostbridges_find()
114 pnode = di_drv_next_node(pnode); in pci_hostbridges_find()
117 pnode = di_drv_first_node(NPE, devtree); in pci_hostbridges_find()
118 while (pnode != DI_NODE_NIL) { in pci_hostbridges_find()
119 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL; in pci_hostbridges_find()
[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, in port_range_create() argument
45 return (topo_node_range_create(mod, pnode, PORT, min, max)); in port_range_create()
54 port_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_common() argument
67 if ((auth = topo_mod_auth(mod, pnode)) == NULL) { in port_create_common()
73 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, PORT, in port_create_common()
80 if ((tn = topo_node_bind(mod, pnode, PORT, inst, fmri)) == NULL) { in port_create_common()
89 if (topo_node_resource(pnode, &presource, &err) != 0) { in port_create_common()
134 port_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_sff() argument
139 tn = port_create_common(mod, pnode, inst, TOPO_PROP_PORT_TYPE_SFF); in port_create_sff()
147 port_create_usb(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in port_create_usb() argument
[all …]
H A Dtopo_transceiver.c40 transceiver_range_create(topo_mod_t *mod, tnode_t *pnode, topo_instance_t min, in transceiver_range_create() argument
43 return (topo_node_range_create(mod, pnode, TRANSCEIVER, min, max)); in transceiver_range_create()
47 transceiver_create_common(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in transceiver_create_common() argument
61 if ((auth = topo_mod_auth(mod, pnode)) == NULL) { in transceiver_create_common()
67 if ((fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, in transceiver_create_common()
74 if ((tn = topo_node_bind(mod, pnode, TRANSCEIVER, inst, fmri)) == in transceiver_create_common()
124 transceiver_create_sff(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, in transceiver_create_sff() argument
131 if ((tn = transceiver_create_common(mod, pnode, inst, in transceiver_create_sff()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/serengeti/common/
H A Dserengeti.c1215 Prom_node *pnode; in serengeti_display_hw_revisions() local
1277 Prom_node *pnode; in display_schizo_revisions() local
1309 pnode = dev_next_node_by_compatible(pnode, in display_schizo_revisions()
1461 Prom_node *pnode; in display_sgsbbc_revisions() local
1483 pnode = dev_next_node_by_type(pnode, "model", in display_sgsbbc_revisions()
1585 Prom_node *pnode; in display_failed_parts() local
1617 pnode = next_failed_node(pnode); in display_failed_parts()
1748 pnode = next_failed_node(pnode); in display_failed_parts()
1952 if (pnode == NULL) in find_prop()
1983 if (pnode == NULL) in get_node_name()
[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) in chip_create_core_temp_sensor() argument
40 core = topo_node_instance(pnode); in chip_create_core_temp_sensor()
41 if (topo_prop_get_int32(pnode, PGNAME(CORE), CORE_CHIP_ID, &chip, in chip_create_core_temp_sensor()
63 if (topo_prop_get_int32(pnode, PGNAME(CORE), CORE_PROCNODE_ID, in chip_create_core_temp_sensor()
74 return (topo_sensor_create_scalar_sensor(mod, pnode, buf, "temp")); in chip_create_core_temp_sensor()
78 chip_create_chip_temp_sensor(topo_mod_t *mod, tnode_t *pnode) in chip_create_chip_temp_sensor() argument
83 chip = topo_node_instance(pnode); in chip_create_chip_temp_sensor()
90 return (topo_sensor_create_scalar_sensor(mod, pnode, buf, "temp")); in chip_create_chip_temp_sensor()
H A Dchip_intel.c205 if (topo_node_range_create(mod, pnode, DIMM, 0, in mc_add_dimms()
238 channum = topo_node_instance(pnode); in mc_add_dimms()
252 fmri = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, in mc_add_dimms()
259 if ((dnode = topo_node_bind(mod, pnode, DIMM, dimm_number, in mc_add_dimms()
292 pnode, smbid, label); in mc_add_dimms()
408 if (mkrsrc(mod, pnode, name, i, auth, &fmri) != 0) { in mc_nb_create()
412 if ((mcnode = topo_node_bind(mod, pnode, name, i, in mc_nb_create()
806 if (mkrsrc(mod, pnode, name, id, auth, &fmri) != 0) { in mc_imc_create_v1()
948 rc = mc_nb_create_v1(mod, pnode, name, auth, nvl); in mc_node_create()
961 if (mc_onchip(topo_node_instance(pnode))) in onchip_mc_create()
[all …]
H A Dchip_amd.c383 if (topo_node_resource(pnode, &pfmri, &err) < 0) { in amd_rank_create()
495 if (mkrsrc(mod, pnode, name, num, auth, &fmri) < 0) { in amd_dimm_create()
541 pnode, smbid, NULL); in amd_dimm_create()
652 if (topo_prop_get_string(pnode, PGNAME(MCT), "socket", in amd_dramchan_create()
663 (void) topo_node_fru(pnode, &pfmri, NULL, &err); in amd_dramchan_create()
666 if (mkrsrc(mod, pnode, name, i, auth, &fmri) != 0) { in amd_dramchan_create()
740 if (topo_node_lookup(pnode, name, mcnum) != NULL) in amd_mc_create()
744 (void) topo_node_resource(pnode, &rfmri, &err); in amd_mc_create()
764 if ((mcnode = topo_node_bind(mod, pnode, name, mcnum, in amd_mc_create()
796 if (amd_generic_mc_create(mod, smbid, pnode, mcnode, in amd_mc_create()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/littleneck/common/
H A Dlittleneck.c463 Prom_node *pnode; in disp_fail_parts() local
481 while (pnode != NULL) { in disp_fail_parts()
492 pnode = next_failed_node(pnode); in disp_fail_parts()
521 get_sbus_slot(pnode)); in disp_fail_parts()
535 get_id(pnode)); in disp_fail_parts()
542 pnode = next_failed_node(pnode); in disp_fail_parts()
943 Prom_node *pnode; in lneck_display_hw_revisions() local
955 if (pnode != NULL) { in lneck_display_hw_revisions()
973 Prom_node *pnode; in display_schizo_revisions() local
994 pnode = dev_next_node_by_compat(pnode, in display_schizo_revisions()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/SUNW,Sun-Fire/ioboard/
H A Diob_platform.c83 di_node_t pnode; in platform_iob_enum() local
98 pnode = di_drv_first_node(SCHIZO, devtree); in platform_iob_enum()
99 while (pnode != DI_NODE_NIL) { in platform_iob_enum()
103 pnode, IOB_BASEADDR, BUS_ADDRDIST, 6, 9, &brd, &br, &bus); in platform_iob_enum()
105 pnode = di_drv_next_node(pnode); in platform_iob_enum()
109 pnode = di_drv_next_node(pnode); in platform_iob_enum()
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/
H A Dexport.c46 POLICY_LIST *plclist = NULL, *pnode; in kc_export() local
130 pnode = plclist; in kc_export()
131 while (pnode != NULL && !found) { in kc_export()
132 if (strcmp(policyname, pnode->plc.name) == 0) { in kc_export()
136 ret = kmf_verify_policy(&pnode->plc); in kc_export()
142 rv = kmf_add_policy_to_db(&pnode->plc, outfile, in kc_export()
145 pnode = pnode->next; in kc_export()
H A Dimport.c47 POLICY_LIST *plclist = NULL, *pnode; in kc_import() local
132 pnode = plclist; in kc_import()
133 while (pnode != NULL && !found) { in kc_import()
134 if (strcmp(policyname, pnode->plc.name) == 0) { in kc_import()
138 ret = kmf_verify_policy(&pnode->plc); in kc_import()
144 rv = kmf_add_policy_to_db(&pnode->plc, filename, in kc_import()
147 pnode = pnode->next; in kc_import()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_hostbridge.c192 di_node_t devtree, pnode, cnode; in x86pi_gen_pci_pciexrc() local
203 for (pnode = di_drv_first_node(PCI, devtree); in x86pi_gen_pci_pciexrc()
204 pnode != DI_NODE_NIL; pnode = di_drv_next_node(pnode)) in x86pi_gen_pci_pciexrc()
205 if (x86pi_bdf(mod, pnode) == bdf) in x86pi_gen_pci_pciexrc()
206 return (pci_process(mod, tn_hbr, pnode)); in x86pi_gen_pci_pciexrc()
208 pnode = di_drv_first_node(NPE, devtree); in x86pi_gen_pci_pciexrc()
209 while (pnode != DI_NODE_NIL) { in x86pi_gen_pci_pciexrc()
210 for (cnode = di_child_node(pnode); cnode != DI_NODE_NIL; in x86pi_gen_pci_pciexrc()
226 pnode = di_drv_next_node(pnode); in x86pi_gen_pci_pciexrc()
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/dimm/
H A Ddimm_sun4v.c212 auth = topo_mod_auth(mod, pnode); in create_one_dimm()
218 cnode = mem_tnode_create(mod, pnode, "dimm", inst, in create_one_dimm()
275 return (create_one_dimm(mod, pnode, inst, dp)); in mem_inst_create()
280 cnode = mem_tnode_create(mod, pnode, nodename, inst, in mem_inst_create()
285 cnode = mem_tnode_create(mod, pnode, nodename, inst, in mem_inst_create()
303 if (pnode == NULL) in mem_range_create()
312 if (topo_node_range_create(mod, pnode, nodename, 0, in mem_range_create()
326 return (mem_range_create(mod, pnode, pfnext+1, dp)); in mem_range_create()
329 nerr += mem_inst_create(mod, pnode, pflen, dp); in mem_range_create()
341 nerr += mem_inst_create(mod, pnode, pflen, d); in mem_range_create()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/daktari/common/
H A Ddaktari.c139 Prom_node *pnode; in disp_fail_parts() local
157 while (pnode != NULL) { in disp_fail_parts()
168 pnode = next_failed_node(pnode); in disp_fail_parts()
197 get_sbus_slot(pnode)); in disp_fail_parts()
211 get_id(pnode)); in disp_fail_parts()
218 pnode = next_failed_node(pnode); in disp_fail_parts()
1241 Prom_node *pnode; in dak_display_hw_revisions() local
1253 if (pnode != NULL) { in dak_display_hw_revisions()
1271 Prom_node *pnode; in display_schizo_revisions() local
1291 pnode = dev_next_node_by_compat(pnode, in display_schizo_revisions()
[all …]

12345