Lines Matching refs:boards

45 static fhc_bd_resizable_t boards; /* booted and hotplugged boards */
66 fhc_b_search(in_array.boards, board, 0, in_array.last);
91 ASSERT(boards.sorted);
92 index = FHC_B_SEARCH(boards, board);
94 return (boards.boards[index]->flags & BDF_DISABLED);
102 if (!boards.sorted) {
103 fhc_shell_sort(boards.boards, 0, boards.last);
104 boards.sorted = TRUE;
109 fhc_shell_sort(clocks.boards, 0, clocks.last);
190 fhc_resize(&(resizable->boards), oldsize, newsize);
208 ASSERT(boards.sorted);
209 index = FHC_B_SEARCH(boards, board);
211 return (boards.boards[index]->sc.in_transition);
219 ASSERT(boards.sorted);
220 index = FHC_B_SEARCH(boards, board);
222 if (boards.boards[index]->softsp == NULL)
225 return ((boards.boards[index]->softsp)->jt_master.is_master);
233 ASSERT(boards.sorted);
234 index = FHC_B_SEARCH(boards, board);
236 if (boards.boards[index]->sc.plus_board)
237 return (boards.boards[index]->sc.plus_board);
247 boards.boards = NULL;
248 boards.size = 0;
249 boards.last = -1;
250 boards.sorted = TRUE; /* Array of 0 elements is sorted. */
252 clocks.boards = NULL;
277 ASSERT(boards.sorted);
278 index = FHC_B_SEARCH(boards, board);
280 return (boards.boards[index]);
321 ASSERT(boards.sorted);
326 index = FHC_B_SEARCH(boards, board);
332 bdp = clocks.boards[index];
334 bdp = boards.boards[index];
339 clocks.boards[clocks.last + 1] =
341 bdp = clocks.boards[clocks.last + 1];
345 fhc_check_size(&boards);
346 boards.boards[boards.last + 1] =
348 bdp = boards.boards[boards.last + 1];
349 boards.last++;
350 boards.sorted = FALSE;
376 ASSERT(boards.sorted);
377 index = FHC_B_SEARCH(boards, board);
379 return (boards.boards[index]);
388 return (clocks.boards[0]);
395 if (boards.boards != NULL)
396 return (boards.boards[0]);
406 ASSERT(boards.sorted);
407 index = FHC_B_SEARCH(boards, bdp->sc.board);
409 if (index < boards.last)
410 return (boards.boards[index + 1]);
425 ASSERT(boards.sorted);
426 index = FHC_B_SEARCH(boards, bd);
438 ASSERT(boards.sorted);
439 index = FHC_B_SEARCH(boards, board);
443 return (boards.boards[index]->sc.type);
516 * it is a null terminated list of boards in a string.
530 * entries for all legal boards in the list.
545 index = FHC_B_SEARCH(boards, board);
547 boards.boards[index]->flags |= BDF_DISABLED;
630 * disk boards in the tree.
725 index = fhc_b_search(boards.boards, board, 0,
726 boards.last - nadded);
728 fhc_check_size(&boards);
729 boards.boards[boards.last + 1] =
731 boards.boards[boards.last + 1]->sc.type = UNKNOWN_BOARD;
732 boards.boards[boards.last + 1]->sc.board = board;
733 boards.boards[boards.last + 1]->softsp = NULL;
734 boards.last++;
736 boards.sorted = FALSE;
776 * Disk boards are handled differently
813 * for all disk boards, so we call it only once.
912 * Check the boards in EMPTY and DISCONNECTED