Lines Matching refs:index

87 	int index;  in fhc_bd_disabled()  local
90 index = FHC_B_SEARCH(boards, board); in fhc_bd_disabled()
91 ASSERT(index != -1); in fhc_bd_disabled()
92 return (boards.boards[index]->flags & BDF_DISABLED); in fhc_bd_disabled()
204 int index; in fhc_bd_busy() local
207 index = FHC_B_SEARCH(boards, board); in fhc_bd_busy()
208 ASSERT(index != -1); in fhc_bd_busy()
209 return (boards.boards[index]->sc.in_transition); in fhc_bd_busy()
215 int index; in fhc_bd_is_jtag_master() local
218 index = FHC_B_SEARCH(boards, board); in fhc_bd_is_jtag_master()
219 ASSERT(index != -1); 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()
229 int index; in fhc_bd_is_plus() local
232 index = FHC_B_SEARCH(boards, board); in fhc_bd_is_plus()
233 ASSERT(index != -1); 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()
265 int index; in fhc_bdlist_lock() local
276 index = FHC_B_SEARCH(boards, board); in fhc_bdlist_lock()
277 ASSERT(index != -1); in fhc_bdlist_lock()
278 return (boards.boards[index]); in fhc_bdlist_lock()
314 int index; in fhc_bd_init() local
322 index = FHC_B_SEARCH(clocks, board); in fhc_bd_init()
324 index = FHC_B_SEARCH(boards, board); in fhc_bd_init()
328 if (index != -1) { in fhc_bd_init()
330 bdp = clocks.boards[index]; in fhc_bd_init()
332 bdp = boards.boards[index]; in fhc_bd_init()
369 int index; in fhc_bd() local
375 index = FHC_B_SEARCH(boards, board); in fhc_bd()
376 ASSERT(index != -1); in fhc_bd()
377 return (boards.boards[index]); in fhc_bd()
402 int index; in fhc_bd_next() local
405 index = FHC_B_SEARCH(boards, bdp->sc.board); in fhc_bd_next()
406 ASSERT(index != -1); in fhc_bd_next()
407 if (index < boards.last) in fhc_bd_next()
408 return (boards.boards[index + 1]); in fhc_bd_next()
416 int index; in fhc_bd_valid() local
424 index = FHC_B_SEARCH(boards, bd); in fhc_bd_valid()
425 if (index == -1) in fhc_bd_valid()
434 int index; in fhc_bd_type() local
437 index = FHC_B_SEARCH(boards, board); in fhc_bd_type()
438 if (index == -1) in fhc_bd_type()
441 return (boards.boards[index]->sc.type); in fhc_bd_type()
508 int index; in fhc_bd_dlist_init() local
543 index = FHC_B_SEARCH(boards, board); in fhc_bd_dlist_init()
544 if (index != -1) { in fhc_bd_dlist_init()
545 boards.boards[index]->flags |= BDF_DISABLED; in fhc_bd_dlist_init()
711 int index; in fhc_bdlist_prime() local
723 index = fhc_b_search(boards.boards, board, 0, in fhc_bdlist_prime()
725 if (index == -1) { in fhc_bdlist_prime()