Lines Matching refs:node

58 	pnode_t node,
66 (void) (*f)(node, arg, 0);
68 if (node != OBP_NONODE) {
69 sbdp_walk_prom_tree_worker(prom_childnode(node), f, arg);
70 sbdp_walk_prom_tree_worker(prom_nextnode(node), f, arg);
75 pnode_t node;
86 sbdp_walk_prom_tree_worker(argbp->node, argbp->f, argbp->arg);
91 sbdp_walk_prom_tree(pnode_t node, int(*f)(pnode_t, void *, uint_t), void *arg)
95 arg_block.node = node;
102 sbdp_attach_branch(dev_info_t *pdip, pnode_t node, void *arg)
119 if (node == OBP_NONODE)
123 * Get the status for this node
124 * If it has failed we imitate boot by not creating a node
127 if (check_status(node, buf, pdip) != DDI_SUCCESS) {
128 SBDP_DBG_STATE("status failed skipping this node\n");
132 len = prom_getproplen(node, OBP_REG);
137 (void) prom_getprop(node, OBP_NAME, (caddr_t)name);
138 err = ndi_devi_alloc(pdip, name, node, &dip);
148 child = prom_childnode(node);
162 int node;
174 if ((node = ddi_getprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
178 if (node == apktp->node) {
188 sbdp_select_top_nodes(pnode_t node, void *arg, uint_t flags)
209 if (sbdp_get_bd_and_wnode_num(node, &bd, &wnode) < 0)
217 (void) prom_getprop(node, OBP_DEVICETYPE, (caddr_t)devtype);
218 (void) prom_getprop(node, OBP_NAME, (caddr_t)devname);
221 apktp->nodes[apktp->num_of_nodes] = node;
224 /* We want this node */
238 if (sbdp_get_comp_status(node) != SBD_COND_OK)
241 if (prom_getprop(node, "cpuid",
244 if (prom_getprop(node, "portid",
255 (void) prom_getprop(node, "implementation#",
259 * the node as we will be saving the CMP
260 * node.
272 /* Save node */
273 apktp->nodes[apktp->num_of_nodes] = node;
276 /* We want this node */
285 sbdp_attach_bd(int node, int board)
293 apktp->node = node;
301 * Root node doesn't have to be held for ddi_walk_devs()
322 sbdp_cpu_in_reset(node, board, SBDP_ALL_CPUS, 1);
326 sbdp_detach_bd(int node, int board, sbd_error_t *sep)
334 apktp->node = node;
347 sbdp_cpu_in_reset(node, board, SBDP_ALL_CPUS, 1);
351 sbdp_cleanup_bd(node, board);
398 cmn_err(CE_WARN, "failed to remove node %s (%p): %d",