Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/uts/common/io/blkdev/
H A Dblkdev.c60 typedef struct bd bd_t;
63 struct bd { struct
237 rv = ddi_soft_state_init(&bd_state, sizeof (struct bd), 2); in _init()
272 bd_t *bd; in bd_getinfo() local
281 bd = ddi_get_soft_state(bd_state, inst); in bd_getinfo()
282 if (bd == NULL) { in bd_getinfo()
285 *resultp = (void *)bd->d_dip; in bd_getinfo()
336 bd_create_errstats(bd_t *bd, int inst, bd_drive_t *drive) in bd_create_errstats() argument
342 if (bd->d_errstats != NULL) in bd_create_errstats()
346 ddi_driver_name(bd->d_dip)); in bd_create_errstats()
[all …]
/titanic_44/usr/src/uts/sun4u/os/
H A Dplat_ecc_dimm.c114 int i, bd, p; in plat_alloc_sid_cache() local
123 bd = i / max_mc_per_bd; in plat_alloc_sid_cache()
125 cache[i].mcid = plat_make_fru_cpuid(bd, 0, p); in plat_alloc_sid_cache()
132 plat_populate_sid_cache_one(dimm_sid_cache_t *cache, int bd) in plat_populate_sid_cache_one() argument
144 ASSERT(domain_dimm_sids[bd].pdsb_valid_bitmap); in plat_populate_sid_cache_one()
147 int index = bd * max_mc_per_bd + i; in plat_populate_sid_cache_one()
159 valid = domain_dimm_sids[bd].pdsb_valid_bitmap >> (i * 8) & in plat_populate_sid_cache_one()
173 domain_dimm_sids[bd].pdsb_dimm_sids[(i * 8) + j], in plat_populate_sid_cache_one()
185 int bd; in plat_populate_sid_cache() local
194 bd = i / max_mc_per_bd; in plat_populate_sid_cache()
[all …]
/titanic_44/usr/src/cmd/eeprom/i386/
H A Dbenv.c127 benv_des_t *bd; in new_bd() local
129 bd = (benv_des_t *)malloc(sizeof (benv_des_t)); in new_bd()
130 (void) memset(bd, 0, sizeof (benv_des_t)); in new_bd()
132 bd->elist = new_list(); in new_bd()
134 return (bd); in new_bd()
664 init_benv(benv_des_t *bd, char *file) in init_benv() argument
674 bd->name = file; in init_benv()
676 bd->name = strcats(boottree, "/solaris/bootenv.rc", NULL); in init_benv()
680 map_benv(benv_des_t *bd) in map_benv() argument
682 if ((bd->fd = open(bd->name, O_RDONLY)) == -1) in map_benv()
[all …]
/titanic_44/usr/src/cmd/biosdev/
H A Dbiosdev.c119 static int match_edd(biosdev_data_t *bd);
120 static int match_first_block(biosdev_data_t *bd);
364 fn48_t *bd; in match_edd() local
374 bd = &bdata->fn48_dev_params; in match_edd()
376 if (bd->magic != 0xBEDD || bd->pathinfo_len == 0) { in match_edd()
380 bd->magic, bd->pathinfo_len); in match_edd()
385 if (strncmp(bd->bustype, "PCI", 3) != 0) { in match_edd()
387 (void) printf("was not pci %s\n", bd->bustype); in match_edd()
392 bd->interfacepath.pci.bus, in match_edd()
393 bd->interfacepath.pci.device, in match_edd()
[all …]
/titanic_44/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/awt/
H A DTabbedFolder.java51 private static final int bd = 2; field in TabbedFolder
174 insets.left = folderInsets.left + bd + comppadx/2; in insets()
175 insets.right = folderInsets.right + bd + comppadx/2; in insets()
177 insets.bottom = folderInsets.bottom + bd + comppady/2; in insets()
216 if (y < (folderInsets.top+bd) || y > (folderInsets.top+tabH)) { in calcTabIndex()
247 tabx[0] = bd; in cacheTabInfo()
249 fontMetrics.stringWidth(tabtext[0]) + tabipadx + 2*bd; in cacheTabInfo()
253 int x = bd; in cacheTabInfo()
261 tabipadx + 2*bd; in cacheTabInfo()
268 tabW = tabx[tabx.length-1] - tabx[0] + 2*bd; in cacheTabInfo()
[all …]
H A DWinScrollbar.java552 int bd = 2; in drawArrow() local
560 g.fillRect(x+bd+2*xoff-1, y+bd+(5*yoff/4)-1, in drawArrow()
563 p.addPoint(x+bd+xoff-1, y+bd+(3*yoff/2)-1); in drawArrow()
564 p.addPoint(x+bd+2*xoff-1, y+bd+yoff-3); in drawArrow()
565 p.addPoint(x+bd+2*xoff-1, y+bd+2*yoff+1); in drawArrow()
571 g.fillRect(x+bd+(xoff/2)-1, y+bd+(5*yoff/4)-1, in drawArrow()
574 p.addPoint(x+bd+xoff, y+bd+yoff-3); in drawArrow()
575 p.addPoint(x+bd+xoff*2, y+bd+(3*yoff/2)-1); in drawArrow()
576 p.addPoint(x+bd+xoff, y+bd+2*yoff+1); in drawArrow()
582 g.fillRect(x+bd+(5*xoff/4)-1, y+bd+2*yoff, in drawArrow()
[all …]
H A DVJPanel.java548 int bd = getBD(); in insets() local
553 bd + insets.left, in insets()
554 bd + insets.bottom, in insets()
555 bd + insets.right); in insets()
575 int bd = 0; in getBD() local
577 bd = borderWidth; in getBD()
578 return bd; in getBD()
594 int bd = borderWidth; in getLabelAdjustedTop() local
595 int top = bd; in getLabelAdjustedTop()
603 top += bd; in getLabelAdjustedTop()
[all …]
H A DTextView.java278 int bd = getBD(); in minimumSize() local
279 return new Dimension(minWidth + bd, (minrows * lineHeight) in minimumSize()
280 + bd); in minimumSize()
305 int bd = getBD(); in viewSize() local
306 size.width -= bd; in viewSize()
307 size.height -= bd; in viewSize()
512 int bd = viewBorder + viewIPad; in drawItems() local
525 yoff = lineTop - viewTop + bd; in drawItems()
526 drawLine(g, i, -scrollx+bd, yoff); in drawItems()
620 int bd = getBD(); in cacheLineWidth() local
[all …]
/titanic_44/usr/src/uts/common/io/usb/clients/audio/usb_ah/
H A Dusb_ah.c480 usb_ah_repeat_send(usb_ah_state_t *usb_ahd, usb_ah_button_descr_t *bd, in usb_ah_repeat_send() argument
485 bd->mblk = usb_ah_mk_mctl(mctlmsg, buf, len); in usb_ah_repeat_send()
487 if (bd->mblk != NULL) { in usb_ah_repeat_send()
488 dup_mp = usb_ah_cp_mblk(bd->mblk); in usb_ah_repeat_send()
496 usb_ahd->usb_ah_cur_bd = bd; in usb_ah_repeat_send()
498 usb_ah_timeout, bd, usb_ah_rpt_tick); in usb_ah_repeat_send()
510 usb_ah_button_descr_t *bd; in usb_ah_timeout() local
514 bd = (usb_ah_button_descr_t *)addr; in usb_ah_timeout()
515 usb_ahd = (usb_ah_state_t *)bd->uahp; in usb_ah_timeout()
524 dup_mp = usb_ah_cp_mblk(bd->mblk); in usb_ah_timeout()
[all …]
/titanic_44/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c182 sbdp_get_bd_and_wnode_num(pnode_t nodeid, int *bd, int *wnode) in sbdp_get_bd_and_wnode_num() argument
199 *bd = SG_PORTID_TO_BOARD_NUM(portid); in sbdp_get_bd_and_wnode_num()
211 int bd, wnode; in sbdp_get_board_num() local
228 if (sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) < 0) in sbdp_get_board_num()
231 return (bd); in sbdp_get_board_num()
361 mem.board = smdp->bdp->bd; in sbdp_get_mem_dip()
405 apktp->board = bdp->bd; in sbdp_update_bd_info()
427 hp->h_board = bdp->bd; in sbdp_update_bd_info()
460 sbdp_bd_init(sbdp_bd_t *bdp, int bd, int wnode) in sbdp_bd_init() argument
466 bdp->bd = bd; in sbdp_bd_init()
[all …]
H A Dsbdp_cpu.c105 int bd, wnode; in sbdp_disconnect_cpu() local
123 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_disconnect_cpu()
134 bdp = &wnodep->bds[bd]; in sbdp_disconnect_cpu()
143 sbdp_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid), 1); in sbdp_disconnect_cpu()
188 int bd, wnode; in sbdp_connect_cpu() local
203 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_connect_cpu()
218 if (sbdp_is_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid))) { in sbdp_connect_cpu()
226 bdp = &wnodep->bds[bd]; in sbdp_connect_cpu()
256 sbdp_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid), 0); in sbdp_connect_cpu()
263 if (sbdp_is_cpu_present(wnode, bd, i) && in sbdp_connect_cpu()
[all …]
H A Dsbdp_dr.c190 int board, bd; in sbdp_select_top_nodes() local
209 if (sbdp_get_bd_and_wnode_num(node, &bd, &wnode) < 0) in sbdp_select_top_nodes()
212 if (bd != board) in sbdp_select_top_nodes()
215 SBDP_DBG_MISC("%s: board is %d\n", f, bd); in sbdp_select_top_nodes()
251 if (sbdp_set_cpu_present(wnode, bd, in sbdp_select_top_nodes()
H A Dsbdp_mem.c445 s_bdp->bd, s_bdp->wnode, s_bdp->bpa, (void *)s_bdp->nodes); in sbdp_move_memory()
448 t_bdp->bd, t_bdp->wnode, t_bdp->bpa, (void *)t_bdp->nodes); in sbdp_move_memory()
558 (uintptr_t)(s_bdp->bd | (t_bdp->bd << 16))); in sbdp_move_memory()
574 if (sbdp_swap_slices(s_bdp->bd, t_bdp->bd) != 0) { in sbdp_move_memory()
804 bp->bd, i, sibling_cpu_cond); in sbdp_prep_mc_idle_one()
828 "Decode Regs of board %d", bp->bd); in sbdp_prep_mc_idle_one()
857 mc_idle_regs[*r_idx].bd_id = bp->bd; in sbdp_prep_mc_idle_one()
1358 int bd; in sbdp_is_mem() local
1386 if (sbdp_get_bd_and_wnode_num(node, &bd, &wnode) < 0) in sbdp_is_mem()
1389 if (bd == board) { in sbdp_is_mem()
[all …]
H A Dssm.c678 minor_t minor_num, bd; in ssm_make_nodes() local
681 for (bd = 0; bd < plat_max_boards(); bd++) { in ssm_make_nodes()
682 if (SG_BOARD_IS_CPU_TYPE(bd)) in ssm_make_nodes()
683 (void) sprintf(filename, "N%d.SB%d", ssm_nodeid, bd); in ssm_make_nodes()
685 (void) sprintf(filename, "N%d.IB%d", ssm_nodeid, bd); in ssm_make_nodes()
687 minor_num = (instance << SSM_INSTANCE_SHIFT) | bd; in ssm_make_nodes()
/titanic_44/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c72 prom_read_disabled_list(mema_disabled_t *dp, int bd) in prom_read_disabled_list() argument
82 ret = prom_read_one(dp, bd, prom_fd, in prom_read_disabled_list()
89 prom_write_disabled_list(mema_disabled_t *dp, int bd) in prom_write_disabled_list() argument
98 ret = prom_write_one(dp, bd, prom_fd, in prom_write_disabled_list()
107 int bd, in prom_read_one() argument
166 if (board == bd) in prom_read_one()
176 int bd, in prom_write_one() argument
226 if (board == bd && (*dp & bit) == 0) in prom_write_one()
234 *cp++ = "0123456789abcdef"[bd]; in prom_write_one()
/titanic_44/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c181 const bank_dimm_t *bd; in mem_unum_burst_pattern() local
187 for (bd = bank_dimm; bd->bd_pat != NULL; bd++) { in mem_unum_burst_pattern()
192 (void) sscanf(pat, bd->bd_pat, &replace, &start, &matched); in mem_unum_burst_pattern()
196 if (bd->bd_subst != NULL) { in mem_unum_burst_pattern()
197 (void) strlcpy(dimmname+replace, bd->bd_subst, in mem_unum_burst_pattern()
198 sizeof (dimmname) - strlen(bd->bd_subst)); in mem_unum_burst_pattern()
199 replace += strlen(bd->bd_subst); in mem_unum_burst_pattern()
206 (void) sscanf(c, bd->bd_reppat, &dimmlen); in mem_unum_burst_pattern()
/titanic_44/usr/src/uts/sun4u/sunfire/io/
H A Djtag.c1338 for (i = 0, cpu = &sc->bd.cpu[i]; i < 2; i++, cpu++) { in jtag_get_board_info()
1424 sc->bd.io1.sio0_compid = in jtag_get_board_info()
1430 sc->bd.io1.sio1_compid = in jtag_get_board_info()
1436 sc->bd.io1.hme_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1441 sc->bd.io1.soc_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1449 sc->bd.io1.sio0_compid = in jtag_get_board_info()
1455 sc->bd.io1.sio1_compid = in jtag_get_board_info()
1461 sc->bd.io1.hme_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1466 sc->bd.io1plus.socplus_compid = in jtag_get_board_info()
1475 sc->bd.io2.sio1_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
[all …]
H A Dfhc_bd.c416 fhc_bd_valid(int bd) in fhc_bd_valid() argument
420 ASSERT(bd >= 0); in fhc_bd_valid()
426 index = FHC_B_SEARCH(boards, bd); in fhc_bd_valid()
577 bcopy((caddr_t)&sc->bd, &uip->bd, sizeof (union bd_un)); in fhc_bd_ks_update()
654 sc->bd.dsk.disk_pres[0] = 1; in fhc_bdlist_dk_init()
655 sc->bd.dsk.disk_id[0] = id; in fhc_bdlist_dk_init()
657 sc->bd.dsk.disk_pres[0] = 0; in fhc_bdlist_dk_init()
662 sc->bd.dsk.disk_pres[1] = 1; in fhc_bdlist_dk_init()
663 sc->bd.dsk.disk_id[1] = id; in fhc_bdlist_dk_init()
665 sc->bd.dsk.disk_pres[1] = 0; in fhc_bdlist_dk_init()
[all …]
/titanic_44/usr/src/lib/libc/i386/gen/
H A D_mul64.s36 / ad bd
39 / ac ad+bc bd
55 mull 16(%ebp) / Multiply A.Lo by B.LO (dx:ax = bd.)
57 xchg %eax,%esi / esi is bd, eax = A.lo (d)
/titanic_44/usr/src/cmd/troff/troff.d/
H A Dt10.c361 bd = 0;
369 if (bd)
370 w += (bd - 1) * HOR;
373 if (bd)
374 w -= (bd - 1) * HOR;
489 if (bd) {
490 bd -= HOR;
491 if (esc += bd)
500 esc -= bd;
H A Dt6.c105 if (bd)
106 k += (bd - 1) * HOR;
141 bd = 0;
166 bd = bdtab[ii];
182 if (!bd)
183 bd = bdtab[xfont];
193 if (nocache|bd)
/titanic_44/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c266 int bd, cpu, bank; in plat_discover_slice() local
268 for (bd = 0; bd < DAK_SBD_SLOTS; bd++) { in plat_discover_slice()
271 uint64_t *slice = slice_table[bd][cpu][bank]; in plat_discover_slice()
277 return (bd); in plat_discover_slice()
/titanic_44/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c274 int bd, cpu, bank; in plat_discover_slice() local
276 for (bd = 0; bd < CHERRYSTONE_SBD_SLOTS; bd++) { in plat_discover_slice()
280 uint64_t *slice = slice_table[bd][cpu][bank]; in plat_discover_slice()
286 return (bd); in plat_discover_slice()
/titanic_44/usr/src/uts/sun4u/starfire/sys/
H A Didn_xf.h80 #define MAKE_CIC_CSR_PA(bd, t, a, bs) \ argument
82 | ((u_longlong_t)((bd) & CSR_BOARD_MASK) \
/titanic_44/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c738 int bd; in dlist_find() local
741 bd = strtol(b, &p, 16); in dlist_find()
743 if (p != b && bd == board) in dlist_find()
777 int bd; in dlist_update() local
780 bd = strtol(b, &p, 16); in dlist_update()
782 if (p != b && bd == board) { in dlist_update()
1275 union bd_un *bd = &sc->bd; in info_set() local
1281 for (i = 0, cpu = bd->cpu; i < 2; i++, cpu++) { in info_set()
1294 switch (bd->io2.ffb_size) { in info_set()
1313 if (bd->dsk.disk_pres[i]) in info_set()
[all …]

123