/titanic_41/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp.c | 345 sbdp_bd_t *bdp; member 360 mem.nodes = smdp->bdp->nodes; in sbdp_get_mem_dip() 361 mem.board = smdp->bdp->bd; in sbdp_get_mem_dip() 362 mem.nmem = smdp->bdp->nnum; in sbdp_get_mem_dip() 369 if (smdp->bdp->nnum == 0 && mem.nmem == 1) { in sbdp_get_mem_dip() 374 smdp->bdp->nnum = mem.nmem; in sbdp_get_mem_dip() 384 sbdp_update_bd_info(sbdp_bd_t *bdp) in sbdp_update_bd_info() argument 392 if (bdp == NULL) { in sbdp_update_bd_info() 398 mutex_enter(&bdp->bd_mutex); in sbdp_update_bd_info() 404 apktp->node = bdp->wnode; in sbdp_update_bd_info() [all …]
|
H A D | sbdp_cpu.c | 107 sbdp_bd_t *bdp = NULL; in sbdp_disconnect_cpu() local 134 bdp = &wnodep->bds[bd]; in sbdp_disconnect_cpu() 135 ASSERT(bdp); in sbdp_disconnect_cpu() 136 mutex_enter(&bdp->bd_mutex); in sbdp_disconnect_cpu() 160 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) { in sbdp_disconnect_cpu() 171 if (bdp != NULL) { in sbdp_disconnect_cpu() 172 mutex_exit(&bdp->bd_mutex); in sbdp_disconnect_cpu() 221 sbdp_bd_t *bdp = NULL; in sbdp_connect_cpu() local 226 bdp = &wnodep->bds[bd]; in sbdp_connect_cpu() 227 ASSERT(bdp); in sbdp_connect_cpu() [all …]
|
H A D | sbdp_mbox.c | 128 sbdp_bd_t *bdp; in sbdp_get_board_status() local 141 bdp = sbdp_get_bd_info(node, board); in sbdp_get_board_status() 174 bdp->valid_cp = -1; in sbdp_get_board_status() 185 mutex_enter(&bdp->bd_mutex); in sbdp_get_board_status() 186 if (bdp->valid_cp == -1) { in sbdp_get_board_status() 189 mutex_exit(&bdp->bd_mutex); in sbdp_get_board_status() 198 bcopy(bdp->bd_sc, shbp, sizeof (show_board_t)); in sbdp_get_board_status() 199 mutex_exit(&bdp->bd_mutex); in sbdp_get_board_status() 210 if (bdp == NULL) { in sbdp_get_board_status() 213 mutex_enter(&bdp->bd_mutex); in sbdp_get_board_status() [all …]
|
H A D | sbdp_mem.c | 1710 sbdp_bd_t *bdp; in sbdp_isinterleaved() local 1723 bdp = sbdp_get_bd_info(wnode, board); in sbdp_isinterleaved() 1725 if (bdp == NULL) in sbdp_isinterleaved() 1731 for (bankp = bdp->banks; bankp; bankp = bankp->bd_next) in sbdp_isinterleaved() 1759 is_interleave = sbdp_check_seg_with_banks(seg, bdp->banks); in sbdp_isinterleaved() 1839 sbdp_init_bd_banks(sbdp_bd_t *bdp) in sbdp_init_bd_banks() argument 1844 lists = bdp->nodes; in sbdp_init_bd_banks() 1845 nmem = bdp->nnum; in sbdp_init_bd_banks() 1847 if (bdp->banks != NULL) { in sbdp_init_bd_banks() 1851 bdp->banks = NULL; in sbdp_init_bd_banks() [all …]
|
/titanic_41/usr/src/uts/sun4u/sunfire/io/ |
H A D | fhc_bd.c | 315 fhc_bd_t *bdp; in fhc_bd_init() local 332 bdp = clocks.boards[index]; in fhc_bd_init() 334 bdp = boards.boards[index]; in fhc_bd_init() 341 bdp = clocks.boards[clocks.last + 1]; in fhc_bd_init() 348 bdp = boards.boards[boards.last + 1]; in fhc_bd_init() 354 softsp->list = bdp; in fhc_bd_init() 355 bdp->flags |= BDF_VALID; in fhc_bd_init() 356 bdp->softsp = softsp; in fhc_bd_init() 357 bdp->sc.type = type; in fhc_bd_init() 358 bdp->sc.board = board; in fhc_bd_init() [all …]
|
H A D | sysctrl_dr.c | 999 fhc_bd_t *bdp; in sysc_bd_connect() local 1006 bdp = fhc_bd(board); in sysc_bd_connect() 1042 sh = &bdp->sh[SYSC_DR_HANDLE_FHC]; in sysc_bd_connect() 1060 if (del_kstat && bdp->ksp) { in sysc_bd_connect() 1061 kstat_delete(bdp->ksp); in sysc_bd_connect() 1062 bdp->ksp = NULL; in sysc_bd_connect() 1112 fhc_bd_t *bdp; in sysc_bd_disconnect() local 1120 bdp = fhc_bd(board); in sysc_bd_disconnect() 1122 bdp->flags |= BDF_DETACH; in sysc_bd_disconnect() 1126 sh = &bdp->sh[SYSC_DR_HANDLE_FHC]; in sysc_bd_disconnect() [all …]
|
H A D | sysctrl.c | 1227 fhc_bd_t *bdp; in sysctrl_ioctl() local 1297 bdp = fhc_bd(slot); in sysctrl_ioctl() 1298 sc = &bdp->sc; in sysctrl_ioctl() 1314 bdp = fhc_bd(i); in sysctrl_ioctl() 1316 bdp->sc.no_detach = 1; in sysctrl_ioctl() 1318 bdp->sc.no_detach = 0; in sysctrl_ioctl() 1319 bcopy((caddr_t)&bdp->sc, in sysctrl_ioctl()
|
/titanic_41/usr/src/lib/libprtdiag/common/ |
H A D | kstat.c | 64 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep) in read_platform_kstats() argument 89 bdp = &sys_kstat->bd_ksp_list[board]; in read_platform_kstats() 105 bdp->fhc_kstats_ok = 1; in read_platform_kstats() 113 bdp->fhc_csr = knp->value.ul; in read_platform_kstats() 115 bdp->fhc_kstats_ok = 0; in read_platform_kstats() 119 bdp->fhc_bsr = knp->value.ul; in read_platform_kstats() 121 bdp->fhc_kstats_ok = 0; in read_platform_kstats() 139 bdp->ac_kstats_ok = 1; in read_platform_kstats() 140 bdp->ac_memstat_ok = 1; in read_platform_kstats() 149 bdp->ac_memctl = knp->value.ull; in read_platform_kstats() [all …]
|
/titanic_41/usr/src/uts/sun4u/serengeti/sys/ |
H A D | sbdp_priv.h | 90 #define SBDP_SET_CPU_PRESENT(bdp, unit)\ argument 91 ((bdp)->cpus_present |= (1 << (unit))) 93 #define SBDP_IS_CPU_PRESENT(bdp, unit)\ argument 94 (((bdp)->cpus_present & (1 << (unit))) != 0) 99 #define SBDP_SET_CPU_IN_RESET(bdp, unit)\ argument 100 ((bdp)->cpus_in_reset |= (1 << (unit))) 101 #define SBDP_UNSET_CPU_IN_RESET(bdp, unit)\ argument 102 ((bdp)->cpus_in_reset &= ~(1 << (unit))) 103 #define SBDP_IS_CPU_IN_RESET(bdp, unit)\ argument 104 (((bdp)->cpus_in_reset & (1 << (unit))) != 0) [all …]
|
/titanic_41/usr/src/cmd/fs.d/ |
H A D | fsck.c | 585 struct devlist *bl, *bdp; in fsck_dopreen() local 597 bdp = getdev(name, devp); in fsck_dopreen() 598 if (bdp == NULL) { in fsck_dopreen() 604 bdp->nxt = bl; in fsck_dopreen() 605 bl = bdp; in fsck_dopreen() 606 startdisk(bdp); in fsck_dopreen() 649 struct devlist *bdp, *pbdp; in waiter() local 657 for (pbdp = NULL, bdp = *blp; bdp != NULL; pbdp = bdp, bdp = bdp->nxt) { in waiter() 658 if (bdp->pid == curpid) { in waiter() 662 if (bdp == NULL) in waiter() [all …]
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | tsort.c | 120 Bnd_desc *bdp; in sort_scc() local 123 for (APLIST_TRAVERSE(DEPENDS(lmp2), idx2, bdp)) { in sort_scc() 124 Rt_map *lmp3 = bdp->b_depend; in sort_scc() 199 Bnd_desc *bdp; in sort_scc() local 215 for (APLIST_TRAVERSE(CALLERS(lmp), idx, bdp)) { in sort_scc() 216 Rt_map *clmp = bdp->b_caller; in sort_scc() 218 if ((bdp->b_flags & BND_REFER) == 0) in sort_scc() 395 Bnd_desc *bdp; in dep_visit() local 409 for (APLIST_TRAVERSE(DEPENDS(lmp), idx1, bdp)) { in dep_visit() 410 if ((min = _dep_visit(lml, min, lmp, bdp->b_depend, in dep_visit() [all …]
|
H A D | remove.c | 422 Bnd_desc *bdp; in remove_lists() local 427 for (APLIST_TRAVERSE(DEPENDS(lmp), idx1, bdp)) { in remove_lists() 428 Rt_map *dlmp = bdp->b_depend; in remove_lists() 433 (void) aplist_delete_value(CALLERS(dlmp), bdp); in remove_lists() 434 free(bdp); in remove_lists() 444 for (APLIST_TRAVERSE(CALLERS(lmp), idx1, bdp)) { in remove_lists() 445 Rt_map *clmp = bdp->b_caller; in remove_lists() 473 (void) aplist_delete_value(DEPENDS(clmp), bdp); in remove_lists() 474 free(bdp); in remove_lists() 553 Bnd_desc *bdp; in is_deletable() local [all …]
|
H A D | analyze.c | 2372 Bnd_desc *bdp; in load_finish() local 2379 for (APLIST_TRAVERSE(DEPENDS(dlmp1), idx3, bdp)) { in load_finish() 2380 Rt_map *dlmp2 = bdp->b_depend; in load_finish() 2382 if ((bdp->b_flags & BND_NEEDED) == 0) in load_finish() 2836 Bnd_desc *bdp; in lookup_sym_direct() local 2843 for (APLIST_TRAVERSE(CALLERS(clmp), idx1, bdp)) { in lookup_sym_direct() 2844 sl.sl_imap = lmp = bdp->b_caller; in lookup_sym_direct() 3295 Bnd_desc *bdp; in bind_one() local 3303 for (APLIST_TRAVERSE(DEPENDS(clmp), idx, bdp)) { in bind_one() 3304 if (bdp->b_depend == dlmp) { in bind_one() [all …]
|
/titanic_41/usr/src/common/mc/mc-amd/ |
H A D | mcamd_rowcol_tbl.c | 806 const struct _bnkaddrmode_tbldesc *bdp = bnkaddr_tbls; in rct_bnkaddrmode() local 810 i++, bdp++) { in rct_bnkaddrmode() 811 if (MC_REV_MATCH(mcrev, bdp->revmask) && csmode < bdp->nmodes) in rct_bnkaddrmode() 812 return (&bdp->modetbl[csmode]); in rct_bnkaddrmode()
|
/titanic_41/usr/src/cmd/sgs/librtld/common/ |
H A D | dynamic.c | 75 Bnd_desc *bdp; in update_dynamic() local 78 for (APLIST_TRAVERSE(DEPENDS(lmp), idx, bdp)) { in update_dynamic() 79 if (dlmp != bdp->b_depend) in update_dynamic()
|
/titanic_41/usr/src/cmd/scsi/smp/common/ |
H A D | smp.c | 752 smp_broadcast_descr_t *bdp = &brp->srbr_descrs[0]; in main() local 764 bdp->sbd_broadcast_type, bdp->sbd_phy_identifier, in main() 765 bdp->sbd_broadcast_reason, in main() 766 bdp->sbd_broadcast_count); in main() 767 bdp++; in main()
|
/titanic_41/usr/src/cmd/sgs/liblddbg/common/ |
H A D | files.c | 293 Dbg_file_bind_entry(Lm_list *lml, Bnd_desc *bdp) in Dbg_file_bind_entry() argument 306 dbg_print(lml, MSG_INTL(MSG_FIL_BND_ADD), NAME(bdp->b_caller)); in Dbg_file_bind_entry() 307 dbg_print(lml, MSG_INTL(MSG_FIL_BND_FILE), NAME(bdp->b_depend), in Dbg_file_bind_entry() 308 conv_bnd_type(bdp->b_flags, &bnd_type_buf)); in Dbg_file_bind_entry() 337 Bnd_desc *bdp; in Dbg_file_bindings() local 370 for (APLIST_TRAVERSE(DEPENDS(tlmp), idx, bdp)) { in Dbg_file_bindings() 372 NAME(bdp->b_depend), in Dbg_file_bindings() 373 conv_bnd_type(bdp->b_flags, in Dbg_file_bindings()
|
/titanic_41/usr/src/uts/common/io/rge/ |
H A D | rge_main.c | 309 rge_bd_t *bdp; in rge_reinit_send_ring() local 317 bdp = rgep->tx_ring; in rge_reinit_send_ring() 319 bdp->host_buf_addr = in rge_reinit_send_ring() 321 bdp->host_buf_addr_hi = in rge_reinit_send_ring() 325 bdp->flags_len = RGE_BSWAP_32(BD_FLAG_EOR); in rge_reinit_send_ring() 327 bdp++; in rge_reinit_send_ring() 340 rge_bd_t *bdp; in rge_reinit_recv_ring() local 350 bdp = rgep->rx_ring; in rge_reinit_recv_ring() 353 bdp->host_buf_addr = in rge_reinit_recv_ring() 355 bdp->host_buf_addr_hi = in rge_reinit_recv_ring() [all …]
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/desktop/common/ |
H A D | desktop.c | 100 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep); 323 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep) in read_platform_kstats() argument 329 bdp = bdp; in read_platform_kstats()
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/sunfire/common/ |
H A D | sunfire.c | 1256 struct board_info *bdp; in disp_err_log() local 1290 bdp = &rst_info->bd_reset_info[0]; in disp_err_log() 1291 for (i = 0; i < MAX_BOARDS; i++, bdp++) { in disp_err_log() 1294 if ((bdp->board_desc & BD_STATE_MASK) == BD_NOT_PRESENT) { in disp_err_log() 1299 if (BOARD_TYPE(bdp->board_desc) == CPU_TYPE) { in disp_err_log() 1301 if (bdp->board_desc & CPU0_OK) { in disp_err_log() 1303 bdp->cpu[0].afsr); in disp_err_log() 1309 if (bdp->board_desc & CPU1_OK) { in disp_err_log() 1311 bdp->cpu[1].afsr); in disp_err_log() 1318 count = analyze_ac(msgs, bdp->ac_error_status); in disp_err_log() [all …]
|
/titanic_41/usr/src/uts/sun4u/lw8/io/ |
H A D | sgenv.c | 1382 sg_board_info_t *bdp; in sgenv_board_info_kstat_snapshot() local 1413 bdp = &board_cache_snapshot[i]; in sgenv_board_info_kstat_snapshot() 1416 f, i, bdp->node_id); in sgenv_board_info_kstat_snapshot() 1417 if (bdp->node_id >= 0) { in sgenv_board_info_kstat_snapshot() 1436 " board=%d", f, i, bdp->node_id, in sgenv_board_info_kstat_snapshot() 1437 bdp->board_num); in sgenv_board_info_kstat_snapshot() 1438 bcopy(bdp, buf, sizeof (sg_board_info_t)); in sgenv_board_info_kstat_snapshot()
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/javelin/common/ |
H A D | javelin.c | 83 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep); 764 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep) in read_platform_kstats() argument 775 bdp = bdp; in read_platform_kstats()
|
/titanic_41/usr/src/lib/libprtdiag/inc/ |
H A D | libprtdiag.h | 135 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep);
|
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/ |
H A D | tazmo.c | 83 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep); 766 struct bd_kstat_data *bdp, struct envctrl_kstat_data *ep) in read_platform_kstats() argument 776 bdp = bdp; in read_platform_kstats()
|
/titanic_41/usr/src/cmd/sgs/rtld/mdbmod/common/ |
H A D | rtld.c | 280 Bnd_desc *bdp; in Depends() local 303 if (mdb_vread(&bdp, sizeof (Bnd_desc *), datap) == -1) { in Depends() 312 if (dcmd_Bind((uintptr_t)bdp, flags, argc, argv) == DCMD_ERR) { in Depends() 319 if (mdb_vread(&bdp, sizeof (Bnd_desc *), datap) == -1) { in Depends() 326 if (dcmd_Bind((uintptr_t)bdp, flags, argc, argv) == DCMD_ERR) { in Depends()
|