Lines Matching refs:bdp

313 	fhc_bd_t *bdp;  in fhc_bd_init()  local
330 bdp = clocks.boards[index]; in fhc_bd_init()
332 bdp = boards.boards[index]; in fhc_bd_init()
339 bdp = clocks.boards[clocks.last + 1]; in fhc_bd_init()
346 bdp = boards.boards[boards.last + 1]; in fhc_bd_init()
352 softsp->list = bdp; in fhc_bd_init()
353 bdp->flags |= BDF_VALID; in fhc_bd_init()
354 bdp->softsp = softsp; in fhc_bd_init()
355 bdp->sc.type = type; in fhc_bd_init()
356 bdp->sc.board = board; in fhc_bd_init()
357 bdp->sc.plus_board = ISPLUSBRD(*softsp->bsr); in fhc_bd_init()
400 fhc_bd_next(fhc_bd_t *bdp) in fhc_bd_next() argument
405 index = FHC_B_SEARCH(boards, bdp->sc.board); in fhc_bd_next()
494 fhc_bd_t *bdp; in fhc_bd_env_set() local
496 bdp = fhc_bd(board); in fhc_bd_env_set()
497 bdp->dev_softsp = env; in fhc_bd_env_set()
556 fhc_bd_t *bdp; in fhc_bd_ks_update() local
564 bdp = (fhc_bd_t *)ksp->ks_private; in fhc_bd_ks_update()
566 sc = &bdp->sc; in fhc_bd_ks_update()
605 fhc_bd_ks_alloc(fhc_bd_t *bdp) in fhc_bd_ks_alloc() argument
607 ASSERT(!bdp->ksp); in fhc_bd_ks_alloc()
609 bdp->ksp = kstat_create("unix", bdp->sc.board, in fhc_bd_ks_alloc()
613 if (bdp->ksp != NULL) { in fhc_bd_ks_alloc()
614 bdp->ksp->ks_data = &fhc_bd_info; in fhc_bd_ks_alloc()
615 bdp->ksp->ks_update = fhc_bd_ks_update; in fhc_bd_ks_alloc()
616 bdp->ksp->ks_private = (void *)bdp; in fhc_bd_ks_alloc()
617 kstat_install(bdp->ksp); in fhc_bd_ks_alloc()
635 fhc_bd_t *bdp; in fhc_bdlist_dk_init() local
647 bdp = fhc_bd(board); in fhc_bdlist_dk_init()
648 sc = &bdp->sc; in fhc_bdlist_dk_init()
674 fhc_bd_t *bdp; in jtag_master_lock() local
684 for (bdp = fhc_bd_first(); bdp; bdp = fhc_bd_next(bdp)) in jtag_master_lock()
685 if (bdp->softsp && (bdp->softsp->jt_master.is_master == 1)) { in jtag_master_lock()
686 master = &bdp->softsp->jt_master; in jtag_master_lock()
707 fhc_bd_t *bdp; in fhc_bdlist_prime() local
756 for (bdp = fhc_bd_first(); bdp; bdp = fhc_bd_next(bdp)) { in fhc_bdlist_prime()
757 sc = &bdp->sc; in fhc_bdlist_prime()
782 fhc_bd_ks_alloc(bdp); in fhc_bdlist_prime()
796 fhc_bd_ks_alloc(bdp); in fhc_bdlist_prime()
900 fhc_bd_t *bdp; in fhc_bdlist_scan() local
904 for (bdp = fhc_bd_first(); bdp; bdp = fhc_bd_next(bdp)) { in fhc_bdlist_scan()
906 sc = &bdp->sc; in fhc_bdlist_scan()
958 if (!bdp->ksp) in fhc_bdlist_scan()
959 fhc_bd_ks_alloc(bdp); in fhc_bdlist_scan()
995 fhc_bd_t *bdp; in fhc_bd_remove_scan() local
1004 for (bdp = fhc_bd_first(); bdp; bdp = fhc_bd_next(bdp)) { in fhc_bd_remove_scan()
1005 sc = &bdp->sc; in fhc_bd_remove_scan()
1023 if (bdp->ksp) { in fhc_bd_remove_scan()
1024 kstat_delete(bdp->ksp); in fhc_bd_remove_scan()
1025 bdp->ksp = NULL; in fhc_bd_remove_scan()
1039 fhc_bd_t *bdp = fhc_bd(board); in fhc_bd_detachable() local
1041 if (bdp->softsp != NULL) in fhc_bd_detachable()
1042 return (bdp->flags & BDF_DETACH); in fhc_bd_detachable()
1057 fhc_bd_t *bdp; in fhc_bd_update() local
1069 bdp = fhc_bdlist_lock(board); in fhc_bd_update()
1071 fhc_bd_sc_evt(&bdp->sc, evt); in fhc_bd_update()
1081 fhc_bd_t *bdp; in fhc_bd_test() local
1088 bdp = fhc_bd(board); in fhc_bd_test()
1089 sc = &bdp->sc; in fhc_bd_test()
1107 if (bdp->ksp) { in fhc_bd_test()
1108 kstat_delete(bdp->ksp); in fhc_bd_test()
1109 bdp->ksp = NULL; in fhc_bd_test()
1129 fhc_bd_t *bdp; in fhc_bd_test_set_cond() local
1136 bdp = fhc_bd(board); in fhc_bd_test_set_cond()
1137 sc = &bdp->sc; in fhc_bd_test_set_cond()