Searched defs:pnode (Results 1 - 25 of 96) sorted by relevance

1234

/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 Dcpu.c62 get_cpu_freq(Prom_node *pnode) argument
68 if ((prop = find_prop(pnode, "clock-frequency")) == NULL) {
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 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));
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_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...]
/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;
H A Dcreate.c463 POLICY_LIST *plclist = NULL, *pnode; local
470 pnode = plclist;
471 while (pnode != NULL && !found) {
472 if (strcmp(plc.name, pnode->plc.name) == 0)
474 pnode = pnode->next;
H A Dlist.c225 POLICY_LIST *plclist = NULL, *pnode; local
304 pnode = plclist;
305 while (pnode != NULL) {
307 strcmp(policyname, pnode->plc.name) == 0) {
308 KMF_POLICY_RECORD *plc = &pnode->plc;
318 show_policy(&pnode->plc);
321 pnode = pnode->next;
/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/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
160 port_create_unknown(topo_mod_t *mod, tnode_t *pnode, topo_instance_t inst, tnode_t **nodep) 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,
H A Dtopo_sensor.c137 topo_sensor_create_temp_sensor(topo_mod_t *mod, tnode_t *pnode, argument
148 topo_node_name(pnode), path);
192 if ((fnode = topo_node_facbind(mod, pnode, fname,
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dfmd.c94 fmd_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, argument
102 (void) topo_method_register(mod, pnode, fmd_methods);
H A Dtopo_list.c145 topo_child_first(tnode_t *pnode) argument
150 for (nhp = topo_list_next(&pnode->tn_children); nhp != NULL;
162 topo_child_next(tnode_t *pnode, tnode_t *node) argument
169 return (topo_child_first(pnode));
H A Dlegacy_hc.c96 legacy_hc_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, argument
99 (void) topo_method_register(mod, pnode, legacy_hc_methods);
H A Dzfs.c119 zfs_enum(topo_mod_t *mod, tnode_t *pnode, const char *name, topo_instance_t min, argument
127 (void) topo_method_register(mod, pnode, zfs_methods);
/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/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/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/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) {
103 if (di_bus_addr(pnode) == NULL) {
104 pnode = di_drv_next_node(pnode);
108 if (hb_process(mod, ptn, hbcnt, pnode) < 0) {
114 pnode = di_drv_next_node(pnode);
117 pnode
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/pcibus/
H A Dpci_sun4v.c104 tnode_t *pnode; local
155 pnode = did_gettnode(dp);
156 pdp = did_find(mod, topo_node_getspecific(pnode));
161 if ((label = pci_slot_label_lookup(mod, pnode, dp, pdp))
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_mptsas/
H A Dfac_prov_mptsas.c124 tnode_t *pnode = topo_node_parent(node); local
135 if (topo_prop_get_string(pnode, TOPO_PGROUP_BINDING,
164 if (topo_prop_get_string(pnode, TOPO_PGROUP_BINDING,
166 topo_prop_get_uint32(pnode, TOPO_PGROUP_BINDING,
168 topo_prop_get_uint32(pnode, TOPO_PGROUP_BINDING,
/illumos-gate/usr/src/uts/sparc/io/
H A Dconsplat.c267 pnode_t pnode; local
271 pnode = prom_finddevice("/virtual-devices/console");
273 if (pnode == OBP_BADNODE)
276 if ((buflen = prom_phandle_to_path(pnode, buf, sizeof (buf))) < 0)

Completed in 108 milliseconds

1234