Lines Matching refs:brd
93 nasid_t get_actual_nasid(lboard_t *brd) in get_actual_nasid() argument
97 if (!brd) in get_actual_nasid()
101 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in get_actual_nasid()
107 return brd->brd_nasid; in get_actual_nasid()
117 lboard_t *brd; in do_cpumask() local
122 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27); in do_cpumask()
125 acpu = (klcpu_t *)find_first_component(brd, KLSTRUCT_CPU); in do_cpumask()
129 if (get_actual_nasid(brd) == brd->brd_nasid) in do_cpumask()
140 acpu = (klcpu_t *)find_component(brd, (klinfo_t *)acpu, in do_cpumask()
143 brd = KLCF_NEXT(brd); in do_cpumask()
144 if (brd) in do_cpumask()
145 brd = find_lboard(brd,KLTYPE_IP27); in do_cpumask()
148 } while (brd); in do_cpumask()
605 lboard_t *brd; in router_recurse() local
620 brd = (lboard_t *)NODE_OFFSET_TO_K0( in router_recurse()
624 if (brd->brd_type == KLTYPE_ROUTER) { in router_recurse()
625 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in router_recurse()
643 lboard_t *brd, *dest_brd; in node_distance() local
653 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in node_distance()
656 if (!brd) in node_distance()
660 if (brd->brd_flags & DUPLICATE_BOARD) in node_distance()
663 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in node_distance()
682 } while ( (brd = find_lboard_class(KLCF_NEXT(brd), KLTYPE_ROUTER)) ); in node_distance()
730 lboard_t *brd, *dest_brd; in dump_topology() local
754 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in dump_topology()
757 if (!brd) in dump_topology()
761 if (brd->brd_flags & DUPLICATE_BOARD) in dump_topology()
766 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in dump_topology()
783 } while ( (brd = find_lboard_class(KLCF_NEXT(brd), KLTYPE_ROUTER)) ); in dump_topology()