Home
last modified time | relevance | path

Searched refs:bdp (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c345 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 Dsbdp_cpu.c108 sbdp_bd_t *bdp = NULL; in sbdp_disconnect_cpu() local
135 bdp = &wnodep->bds[bd]; in sbdp_disconnect_cpu()
136 ASSERT(bdp); in sbdp_disconnect_cpu()
137 mutex_enter(&bdp->bd_mutex); in sbdp_disconnect_cpu()
161 if (!SBDP_IS_CPU_PRESENT(bdp, SG_CPUID_TO_CPU_UNIT(portid))) { in sbdp_disconnect_cpu()
172 if (bdp != NULL) { in sbdp_disconnect_cpu()
173 mutex_exit(&bdp->bd_mutex); in sbdp_disconnect_cpu()
222 sbdp_bd_t *bdp = NULL; in sbdp_connect_cpu() local
227 bdp = &wnodep->bds[bd]; in sbdp_connect_cpu()
228 ASSERT(bdp); in sbdp_connect_cpu()
[all …]
H A Dsbdp_mbox.c128 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 Dsbdp_mem.c1710 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 …]
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dfhc_bd.c313 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()
[all …]
H A Dsysctrl_dr.c999 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 Dsysctrl.c1230 fhc_bd_t *bdp; in sysctrl_ioctl() local
1300 bdp = fhc_bd(slot); in sysctrl_ioctl()
1301 sc = &bdp->sc; in sysctrl_ioctl()
1317 bdp = fhc_bd(i); in sysctrl_ioctl()
1319 bdp->sc.no_detach = 1; in sysctrl_ioctl()
1321 bdp->sc.no_detach = 0; in sysctrl_ioctl()
1322 bcopy((caddr_t)&bdp->sc, in sysctrl_ioctl()
H A Dfhc.c3441 fhc_bd_t *bdp; in fhc_env_temp_state() local
3446 bdp = fhc_bd(board); in fhc_env_temp_state()
3455 if (!bdp->dev_softsp) { in fhc_env_temp_state()
3458 envp = (struct environ_soft_state *)bdp->dev_softsp; in fhc_env_temp_state()
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/
H A Dsbdp_priv.h90 #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 …]
/illumos-gate/usr/src/cmd/fs.d/
H A Dfsck.c585 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 …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dtsort.c120 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 Dremove.c422 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 Danalyze.c2362 Bnd_desc *bdp; in load_finish() local
2369 for (APLIST_TRAVERSE(DEPENDS(dlmp1), idx3, bdp)) { in load_finish()
2370 Rt_map *dlmp2 = bdp->b_depend; in load_finish()
2372 if ((bdp->b_flags & BND_NEEDED) == 0) in load_finish()
2827 Bnd_desc *bdp; in lookup_sym_direct() local
2834 for (APLIST_TRAVERSE(CALLERS(clmp), idx1, bdp)) { in lookup_sym_direct()
2835 sl.sl_imap = lmp = bdp->b_caller; in lookup_sym_direct()
3284 Bnd_desc *bdp; in bind_one() local
3292 for (APLIST_TRAVERSE(DEPENDS(clmp), idx, bdp)) { in bind_one()
3293 if (bdp->b_depend == dlmp) { in bind_one()
[all …]
H A Ddlfcns.c407 Bnd_desc *bdp; in hdl_initialize() local
417 for (APLIST_TRAVERSE(DEPENDS(lmp), idx1, bdp)) { in hdl_initialize()
418 Rt_map *dlmp = bdp->b_depend; in hdl_initialize()
420 if ((bdp->b_flags & BND_NEEDED) == 0) in hdl_initialize()
H A Daudit.c769 Bnd_desc *bdp; in audit_objclose() local
774 for (APLIST_TRAVERSE(CALLERS(lmp), idx, bdp)) in audit_objclose()
775 add_objclose_list(bdp->b_caller, &alp); in audit_objclose()
H A Delf.c815 Bnd_desc *bdp; local
821 for (APLIST_TRAVERSE(CALLERS(ilmp), idx, bdp)) {
822 if (bdp->b_caller == clmp) {
823 bdp->b_flags |= BND_REFER;
H A Dutil.c3341 Bnd_desc *bdp; in unused() local
3344 for (APLIST_TRAVERSE(CALLERS(lmp), idx, bdp)) { in unused()
3347 if (bdp->b_flags & BND_REFER) in unused()
3350 clmp = bdp->b_caller; in unused()
/illumos-gate/usr/src/common/mc/mc-amd/
H A Dmcamd_rowcol_tbl.c804 const struct _bnkaddrmode_tbldesc *bdp = bnkaddr_tbls; in rct_bnkaddrmode() local
808 i++, bdp++) { in rct_bnkaddrmode()
809 if (MC_REV_MATCH(mcrev, bdp->revmask) && csmode < bdp->nmodes) in rct_bnkaddrmode()
810 return (&bdp->modetbl[csmode]); in rct_bnkaddrmode()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddynamic.c75 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()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dfiles.c280 Dbg_file_bind_entry(Lm_list *lml, Bnd_desc *bdp) in Dbg_file_bind_entry() argument
293 dbg_print(lml, MSG_INTL(MSG_FIL_BND_ADD), NAME(bdp->b_caller)); in Dbg_file_bind_entry()
294 dbg_print(lml, MSG_INTL(MSG_FIL_BND_FILE), NAME(bdp->b_depend), in Dbg_file_bind_entry()
295 conv_bnd_type(bdp->b_flags, &bnd_type_buf)); in Dbg_file_bind_entry()
324 Bnd_desc *bdp; in Dbg_file_bindings() local
357 for (APLIST_TRAVERSE(DEPENDS(tlmp), idx, bdp)) { in Dbg_file_bindings()
359 NAME(bdp->b_depend), in Dbg_file_bindings()
360 conv_bnd_type(bdp->b_flags, in Dbg_file_bindings()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_main.c309 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 …]
/illumos-gate/usr/src/cmd/scsi/smp/common/
H A Dsmp.c937 smp_broadcast_descr_t *bdp = &brp->srbr_descrs[0]; in main() local
948 bdp->sbd_broadcast_type, bdp->sbd_phy_identifier, in main()
949 bdp->sbd_broadcast_reason, in main()
950 bdp->sbd_broadcast_count); in main()
951 bdp++; in main()
/illumos-gate/usr/src/uts/sun4u/lw8/io/
H A Dsgenv.c1382 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()
/illumos-gate/usr/src/cmd/sgs/rtld/mdbmod/common/
H A Drtld.c280 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()
/illumos-gate/usr/src/cmd/cfgadm/
H A Dcfgadm.c2217 cfga_list_data_t *bdp, in print_fields() argument
2253 (*fldp->printfn)(bdp, fldp->width, lp); in print_fields()