Lines Matching refs:nodeid

375 	pnode_t			nodeid;  in drmach_node_obp_walk()  local
383 nodeid = prom_childnode(prom_rootnode()); in drmach_node_obp_walk()
386 np->here = (void *)(uintptr_t)nodeid; in drmach_node_obp_walk()
389 while (nodeid != OBP_NONODE) { in drmach_node_obp_walk()
394 nodeid = prom_nextnode(nodeid); in drmach_node_obp_walk()
397 np->here = (void *)(uintptr_t)nodeid; in drmach_node_obp_walk()
425 pnode_t nodeid; in drmach_node_get_dip() local
427 nodeid = np->get_dnode(np); in drmach_node_get_dip()
428 if (nodeid == OBP_NONODE) in drmach_node_get_dip()
434 dip = e_ddi_nodeid_to_dip(nodeid); in drmach_node_get_dip()
465 pnode_t nodeid; in drmach_node_get_prop() local
468 nodeid = np->get_dnode(np); in drmach_node_get_prop()
469 if (nodeid == OBP_NONODE) in drmach_node_get_prop()
471 else if (prom_getproplen(nodeid, (caddr_t)name) < 0) in drmach_node_get_prop()
474 (void) prom_getprop(nodeid, (caddr_t)name, (caddr_t)buf); in drmach_node_get_prop()
484 pnode_t nodeid; in drmach_node_get_proplen() local
487 nodeid = np->get_dnode(np); in drmach_node_get_proplen()
488 if (nodeid == OBP_NONODE) in drmach_node_get_proplen()
491 *len = prom_getproplen(nodeid, (caddr_t)name); in drmach_node_get_proplen()
601 drmach_prom_select(pnode_t nodeid, void *arg, uint_t flags) in drmach_prom_select() argument
611 if (nodeid != saved) in drmach_prom_select()
620 if (prom_getprop(nodeid, OBP_REG, (caddr_t)rprop) <= 0) { in drmach_prom_select()
926 pnode_t nodeid; in drmach_init() local
942 nodeid = prom_childnode(prom_rootnode()); in drmach_init()
948 (void) prom_getprop(nodeid, OBP_BOARDNUM, (caddr_t)&bnum); in drmach_init()
955 nodeid, OBP_BOARDNUM, bnum); in drmach_init()
965 } while ((nodeid = prom_nextnode(nodeid)) != OBP_NONODE); in drmach_init()
1056 pnode_t nodeid; in drmach_get_mc_asr_addr() local
1063 nodeid = drmach_node_get_dnode(dp->node); in drmach_get_mc_asr_addr()
1064 if (nodeid == OBP_NONODE || nodeid == OBP_BADNODE) in drmach_get_mc_asr_addr()
1067 addr = mc_get_asr_addr(nodeid); in drmach_get_mc_asr_addr()
1079 pnode_t nodeid; in drmach_get_mc_idle_addr() local
1086 nodeid = drmach_node_get_dnode(dp->node); in drmach_get_mc_idle_addr()
1087 if (nodeid == OBP_NONODE || nodeid == OBP_BADNODE) in drmach_get_mc_idle_addr()
1090 addr = mc_get_idle_addr(nodeid); in drmach_get_mc_idle_addr()
1102 pnode_t nodeid; in drmach_read_mc_asr() local
1109 nodeid = drmach_node_get_dnode(dp->node); in drmach_read_mc_asr()
1110 if (nodeid == OBP_NONODE || nodeid == OBP_BADNODE) in drmach_read_mc_asr()
1112 else if (mc_read_asr(nodeid, mcregp) == -1) in drmach_read_mc_asr()
1124 pnode_t nodeid; in drmach_write_mc_asr() local
1131 nodeid = drmach_node_get_dnode(dp->node); in drmach_write_mc_asr()
1132 if (nodeid == OBP_NONODE || nodeid == OBP_BADNODE) in drmach_write_mc_asr()
1134 else if (mc_write_asr(nodeid, mcreg) == -1) in drmach_write_mc_asr()
2425 ASSERT(cpunodes[cpuid].nodeid != (pnode_t)0); in drmach_cpu_start()
3135 pnode_t nodeid; in drmach_mem_get_alignment() local
3141 nodeid = drmach_node_get_dnode(mem->node); in drmach_mem_get_alignment()
3142 if (nodeid == OBP_NONODE || nodeid == OBP_BADNODE) in drmach_mem_get_alignment()
3147 size = mc_get_alignment_mask(nodeid); in drmach_mem_get_alignment()
3633 pnode_t nodeid; in drmach_unconfigure() local
3641 nodeid = drmach_node_get_dnode(dp->node); in drmach_unconfigure()
3642 if (nodeid == OBP_NONODE) in drmach_unconfigure()
3645 dip = e_ddi_nodeid_to_dip(nodeid); in drmach_unconfigure()