Lines Matching refs:boards
43 static fhc_bd_resizable_t boards; /* booted and hotplugged boards */ variable
64 fhc_b_search(in_array.boards, board, 0, in_array.last);
89 ASSERT(boards.sorted); in fhc_bd_disabled()
90 index = FHC_B_SEARCH(boards, board); in fhc_bd_disabled()
92 return (boards.boards[index]->flags & BDF_DISABLED); in fhc_bd_disabled()
100 if (!boards.sorted) { in fhc_check_array()
101 fhc_shell_sort(boards.boards, 0, boards.last); in fhc_check_array()
102 boards.sorted = TRUE; in fhc_check_array()
107 fhc_shell_sort(clocks.boards, 0, clocks.last); in fhc_check_array()
188 fhc_resize(&(resizable->boards), oldsize, newsize); in fhc_check_size()
206 ASSERT(boards.sorted); in fhc_bd_busy()
207 index = FHC_B_SEARCH(boards, board); in fhc_bd_busy()
209 return (boards.boards[index]->sc.in_transition); in fhc_bd_busy()
217 ASSERT(boards.sorted); in fhc_bd_is_jtag_master()
218 index = FHC_B_SEARCH(boards, board); in fhc_bd_is_jtag_master()
220 if (boards.boards[index]->softsp == NULL) in fhc_bd_is_jtag_master()
223 return ((boards.boards[index]->softsp)->jt_master.is_master); in fhc_bd_is_jtag_master()
231 ASSERT(boards.sorted); in fhc_bd_is_plus()
232 index = FHC_B_SEARCH(boards, board); in fhc_bd_is_plus()
234 if (boards.boards[index]->sc.plus_board) in fhc_bd_is_plus()
235 return (boards.boards[index]->sc.plus_board); in fhc_bd_is_plus()
245 boards.boards = NULL; in fhc_bdlist_init()
246 boards.size = 0; in fhc_bdlist_init()
247 boards.last = -1; in fhc_bdlist_init()
248 boards.sorted = TRUE; /* Array of 0 elements is sorted. */ in fhc_bdlist_init()
250 clocks.boards = NULL; in fhc_bdlist_init()
275 ASSERT(boards.sorted); in fhc_bdlist_lock()
276 index = FHC_B_SEARCH(boards, board); in fhc_bdlist_lock()
278 return (boards.boards[index]); in fhc_bdlist_lock()
319 ASSERT(boards.sorted); in fhc_bd_init()
324 index = FHC_B_SEARCH(boards, board); in fhc_bd_init()
330 bdp = clocks.boards[index]; in fhc_bd_init()
332 bdp = boards.boards[index]; in fhc_bd_init()
337 clocks.boards[clocks.last + 1] = in fhc_bd_init()
339 bdp = clocks.boards[clocks.last + 1]; in fhc_bd_init()
343 fhc_check_size(&boards); in fhc_bd_init()
344 boards.boards[boards.last + 1] = in fhc_bd_init()
346 bdp = boards.boards[boards.last + 1]; in fhc_bd_init()
347 boards.last++; in fhc_bd_init()
348 boards.sorted = FALSE; in fhc_bd_init()
374 ASSERT(boards.sorted); in fhc_bd()
375 index = FHC_B_SEARCH(boards, board); in fhc_bd()
377 return (boards.boards[index]); in fhc_bd()
386 return (clocks.boards[0]); in fhc_bd_clock()
393 if (boards.boards != NULL) in fhc_bd_first()
394 return (boards.boards[0]); in fhc_bd_first()
404 ASSERT(boards.sorted); in fhc_bd_next()
405 index = FHC_B_SEARCH(boards, bdp->sc.board); in fhc_bd_next()
407 if (index < boards.last) in fhc_bd_next()
408 return (boards.boards[index + 1]); in fhc_bd_next()
423 ASSERT(boards.sorted); in fhc_bd_valid()
424 index = FHC_B_SEARCH(boards, bd); in fhc_bd_valid()
436 ASSERT(boards.sorted); in fhc_bd_type()
437 index = FHC_B_SEARCH(boards, board); in fhc_bd_type()
441 return (boards.boards[index]->sc.type); in fhc_bd_type()
543 index = FHC_B_SEARCH(boards, board); in fhc_bd_dlist_init()
545 boards.boards[index]->flags |= BDF_DISABLED; in fhc_bd_dlist_init()
723 index = fhc_b_search(boards.boards, board, 0, in fhc_bdlist_prime()
724 boards.last - nadded); in fhc_bdlist_prime()
726 fhc_check_size(&boards); in fhc_bdlist_prime()
727 boards.boards[boards.last + 1] = in fhc_bdlist_prime()
729 boards.boards[boards.last + 1]->sc.type = UNKNOWN_BOARD; in fhc_bdlist_prime()
730 boards.boards[boards.last + 1]->sc.board = board; in fhc_bdlist_prime()
731 boards.boards[boards.last + 1]->softsp = NULL; in fhc_bdlist_prime()
732 boards.last++; in fhc_bdlist_prime()
734 boards.sorted = FALSE; in fhc_bdlist_prime()