Lines Matching refs:brd

73 find_component(lboard_t *brd, klinfo_t *kli, unsigned char struct_type)  in find_component()  argument
80 for (j = 0; j < KLCF_NUM_COMPS(brd); j++) { in find_component()
81 if (kli == KLCF_COMP(brd, j)) in find_component()
85 if (index == KLCF_NUM_COMPS(brd)) { in find_component()
92 for (; index < KLCF_NUM_COMPS(brd); index++) { in find_component()
93 kli = KLCF_COMP(brd, index); in find_component()
94 …DBG("find_component: brd %p kli %p request type = 0x%x kli type 0x%x\n", brd, kli, kli->struct_ty… in find_component()
104 find_first_component(lboard_t *brd, unsigned char struct_type) in find_first_component() argument
106 return find_component(brd, (klinfo_t *)NULL, struct_type); in find_first_component()
198 get_actual_nasid(lboard_t *brd) in get_actual_nasid() argument
202 if (!brd) in get_actual_nasid()
207 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in get_actual_nasid()
213 return brd->brd_nasid ; in get_actual_nasid()
219 lboard_t *brd; in xbow_port_io_enabled() local
225 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IOBRICK_XBOW); in xbow_port_io_enabled()
226 if (brd == NULL) return 0; in xbow_port_io_enabled()
228 if ((xbow_p = (klxbow_t *)find_component(brd, NULL, KLSTRUCT_XBOW)) in xbow_port_io_enabled()
239 board_to_path(lboard_t *brd, char *path) in board_to_path() argument
245 ASSERT(brd); in board_to_path()
247 switch (KLCLASS(brd->brd_type)) { in board_to_path()
253 if (brd->brd_type == KLTYPE_META_ROUTER) { in board_to_path()
256 } else if (brd->brd_type == KLTYPE_REPEATER_ROUTER) { in board_to_path()
269 if (brd->brd_type == KLTYPE_PXBRICK) in board_to_path()
271 else if (brd->brd_type == KLTYPE_IXBRICK) in board_to_path()
273 else if (brd->brd_type == KLTYPE_PBRICK) in board_to_path()
275 else if (brd->brd_type == KLTYPE_IBRICK) in board_to_path()
277 else if (brd->brd_type == KLTYPE_XBRICK) in board_to_path()
279 else if (brd->brd_type == KLTYPE_PEBRICK) in board_to_path()
281 else if (brd->brd_type == KLTYPE_OPUSBRICK) in board_to_path()
283 else if (brd->brd_type == KLTYPE_CGBRICK) in board_to_path()
292 modnum = geo_module(brd->brd_geoid); in board_to_path()
295 …sprintf(path, EDGE_LBL_MODULE "/%s/" EDGE_LBL_SLAB "/%d/%s", buffer, geo_slab(brd->brd_geoid), boa… in board_to_path()
305 device_component_canonical_name_get(lboard_t *brd, in device_component_canonical_name_get() argument
312 ASSERT(brd); in device_component_canonical_name_get()
317 slot = brd->brd_slot; in device_component_canonical_name_get()
320 if (!brd || (brd->brd_sversion < 2)) { in device_component_canonical_name_get()
323 nic_name_convert(brd->brd_name, board_name); in device_component_canonical_name_get()
330 geo_module(brd->brd_geoid), geo_slab(brd->brd_geoid), in device_component_canonical_name_get()