Home
last modified time | relevance | path

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

12345

/titanic_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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_50/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 …]
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Dgunzip.c526 static int bd; /* lookup bits for td */ variable
754 md = mask_bits[bd]; in inflate_codes_in_window()
797 NEEDBITS ((unsigned) bd); in inflate_codes_in_window()
923 bd = 5; in init_fixed_block()
924 if ((i = huft_build (l, 30, 0, cpdist, cpdext, &td, &bd)) > 1) in init_fixed_block()
1066 bd = dbits; in init_dynamic_block()
1067 if ((i = huft_build (ll + nl, nd, 0, cpdist, cpdext, &td, &bd)) != 0) in init_dynamic_block()
/titanic_50/usr/src/uts/i86pc/io/dr/
H A Ddr.c342 static int dr_board_init(dr_board_t *bp, dev_info_t *dip, int bd);
502 int bd; in dr_open() local
508 for (bd = 0; bd < MAX_BOARDS; bd++, bp++) { in dr_open()
509 rv = dr_board_init(bp, softsp->dip, bd); in dr_open()
561 int bd; in dr_ioctl() local
586 bd = DR_MINOR2BNUM(getminor(dev)); in dr_ioctl()
587 if (bd >= MAX_BOARDS) in dr_ioctl()
592 hp->h_bd = &softsp->boards[bd]; in dr_ioctl()
706 int bd; in dr_attach() local
738 for (bd = 0; bd < MAX_BOARDS; bd++) { in dr_attach()
[all …]
/titanic_50/usr/src/uts/common/avs/ns/rdc/
H A Drdc_svc.c1337 struct net_bdata bd; in r_net_bdata() local
1349 bd.data.data_val = kmem_alloc(BMAP_BLKSIZE, KM_NOSLEEP); in r_net_bdata()
1350 if (bd.data.data_val == NULL) in r_net_bdata()
1353 e = SVC_GETARGS(xprt, xdr_net_bdata, (char *)&bd); in r_net_bdata()
1355 krdc = &rdc_k_info[bd.cd]; in r_net_bdata()
1356 urdc = &rdc_u_info[bd.cd]; in r_net_bdata()
1357 if (bd.cd >= 0 && bd.cd < rdc_max_sets && IS_ENABLED(urdc) && in r_net_bdata()
1359 bd6.cd = bd.cd; in r_net_bdata()
1360 bd6.offset = bd.offset; in r_net_bdata()
1361 bd6.size = bd.size; in r_net_bdata()
[all …]
/titanic_50/usr/src/uts/sun4u/ngdr/io/
H A Ddr.c340 int bd);
503 int bd; in dr_open() local
509 for (bd = 0; bd < MAX_BOARDS; bd++, bp++) { in dr_open()
510 rv = dr_board_init(bp, softsp->dip, bd); in dr_open()
563 int bd; in dr_ioctl() local
588 bd = DR_MINOR2BNUM(getminor(dev)); in dr_ioctl()
589 if (bd >= MAX_BOARDS) in dr_ioctl()
594 hp->h_bd = &softsp->boards[bd]; in dr_ioctl()
708 int bd; in dr_attach() local
742 for (bd = 0; bd < MAX_BOARDS; bd++) { in dr_attach()
[all …]

12345