Lines Matching refs:brd

320 	lboard_t *brd;  in klhwg_add_coretalk()  local
325 if ((brd = find_lboard((lboard_t *)KL_CONFIG_INFO(tio_nasid), KLTYPE_IOBRICK_XBOW)) == NULL) in klhwg_add_coretalk()
328 if (KL_CONFIG_DUPLICATE_BOARD(brd)) in klhwg_add_coretalk()
355 lboard_t *brd; in klhwg_add_xbow() local
364 if ((brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IOBRICK_XBOW)) == NULL) in klhwg_add_xbow()
367 if (KL_CONFIG_DUPLICATE_BOARD(brd)) in klhwg_add_xbow()
370 if ((xbow_p = (klxbow_t *)find_component(brd, NULL, KLSTRUCT_XBOW)) in klhwg_add_xbow()
429 lboard_t *brd; in klhwg_add_tionode() local
438 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(tio_nasid), KLTYPE_TIO); in klhwg_add_tionode()
439 ASSERT(brd); in klhwg_add_tionode()
442 board_to_path(brd, path_buffer); in klhwg_add_tionode()
449 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in klhwg_add_tionode()
470 NODEPDA(cnode)->slotdesc = brd->brd_slot; in klhwg_add_tionode()
473 NODEPDA(cnode)->geoid = brd->brd_geoid; in klhwg_add_tionode()
474 NODEPDA(cnode)->module = module_lookup(geo_module(brd->brd_geoid)); in klhwg_add_tionode()
488 lboard_t *brd; in klhwg_add_node() local
498 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_SNIA); in klhwg_add_node()
499 ASSERT(brd); in klhwg_add_node()
505 board_to_path(brd, path_buffer); in klhwg_add_node()
511 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in klhwg_add_node()
532 NODEPDA(cnode)->slotdesc = brd->brd_slot; in klhwg_add_node()
535 NODEPDA(cnode)->geoid = brd->brd_geoid; in klhwg_add_node()
536 NODEPDA(cnode)->module = module_lookup(geo_module(brd->brd_geoid)); in klhwg_add_node()
540 cpu = (klcpu_t *)find_first_component(brd, KLSTRUCT_CPU); in klhwg_add_node()
563 klhwg_add_disabled_cpu(node_vertex, cnode, cpu, brd->brd_slot); in klhwg_add_node()
566 find_component(brd, (klinfo_t *)cpu, KLSTRUCT_CPU); in klhwg_add_node()
572 brd = KLCF_NEXT(brd); in klhwg_add_node()
573 if (brd) in klhwg_add_node()
574 brd = find_lboard(brd, KLTYPE_SNIA); in klhwg_add_node()
577 } while(brd); in klhwg_add_node()
587 lboard_t *brd; in klhwg_add_all_routers() local
594 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in klhwg_add_all_routers()
596 if (!brd) in klhwg_add_all_routers()
601 ASSERT(brd); in klhwg_add_all_routers()
604 if (brd->brd_flags & DUPLICATE_BOARD) in klhwg_add_all_routers()
608 board_to_path(brd, path_buffer); in klhwg_add_all_routers()
620 } while ( (brd = find_lboard_class(KLCF_NEXT(brd), in klhwg_add_all_routers()
628 klhwg_connect_one_router(vertex_hdl_t hwgraph_root, lboard_t *brd, in klhwg_connect_one_router() argument
641 if (brd->brd_flags & DUPLICATE_BOARD) { in klhwg_connect_one_router()
646 board_to_path(brd, path_buffer); in klhwg_connect_one_router()
657 if (brd->brd_numcompts != 1) { in klhwg_connect_one_router()
659 brd->brd_numcompts); in klhwg_connect_one_router()
665 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), in klhwg_connect_one_router()
666 brd->brd_compts[0]); in klhwg_connect_one_router()
720 lboard_t *brd; in klhwg_connect_routers() local
728 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in klhwg_connect_routers()
731 if (!brd) in klhwg_connect_routers()
738 klhwg_connect_one_router(hwgraph_root, brd, in klhwg_connect_routers()
742 } while ( (brd = find_lboard_class(KLCF_NEXT(brd), KLTYPE_ROUTER)) ); in klhwg_connect_routers()
753 lboard_t *brd; in klhwg_connect_hubs() local
767 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_SNIA); in klhwg_connect_hubs()
768 ASSERT(brd); in klhwg_connect_hubs()
770 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_TIO); in klhwg_connect_hubs()
771 ASSERT(brd); in klhwg_connect_hubs()
774 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in klhwg_connect_hubs()
788 board_to_path(brd, path_buffer); in klhwg_connect_hubs()