Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosdisk.c211 bdinfo_t *bd = NULL; in bd_get_bdinfo() local
216 return (bd); in bd_get_bdinfo()
219 STAILQ_FOREACH(bd, bdi, bd_link) { in bd_get_bdinfo()
221 return (bd); in bd_get_bdinfo()
224 return (bd); in bd_get_bdinfo()
234 bdinfo_t *bd; in bd_bios2unit() local
240 STAILQ_FOREACH(bd, bdi[i], bd_link) { in bd_bios2unit()
241 if (bd->bd_unit == biosdev) { in bd_bios2unit()
243 bd->bd_unit); in bd_bios2unit()
256 bdinfo_t *bd; in bd_unit2bios() local
[all …]
/illumos-gate/usr/src/uts/common/io/blkdev/
H A Dblkdev.c144 typedef struct bd bd_t;
153 struct bd { struct
246 #define CAN_FREESPACE(bd) \ argument
247 (((bd)->d_ops.o_free_space == NULL) ? B_FALSE : B_TRUE)
354 rv = ddi_soft_state_init(&bd_state, sizeof (struct bd), 2); in _init()
401 bd_t *bd; in bd_getinfo() local
410 bd = ddi_get_soft_state(bd_state, inst); in bd_getinfo()
411 if (bd == NULL) { in bd_getinfo()
414 *resultp = (void *)bd->d_dip; in bd_getinfo()
465 bd_create_errstats(bd_t *bd, int inst, bd_drive_t *drive) in bd_create_errstats() argument
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_bhyve.c182 bhyve_data_t *bd = mdb.m_target->t_data; in bhyve_cpuid_get() local
184 return (bd->bd_curcpu); in bhyve_cpuid_get()
216 bhyve_get_gregset(bhyve_data_t *bd, int cpu, mdb_tgt_gregset_t *gregs) in bhyve_get_gregset() argument
267 if (vmm_get_regset(bd->bd_vmm, cpu, KREG_NGREG, regnums, in bhyve_get_gregset()
274 if (vmm_get_desc(bd->bd_vmm, cpu, VMM_DESC_FS, &fs) != 0 || in bhyve_get_gregset()
275 vmm_get_desc(bd->bd_vmm, cpu, VMM_DESC_GS, &gs) != 0) { in bhyve_get_gregset()
296 bhyve_data_t *bd = mdb.m_target->t_data; in bhyve_cpuregs_dcmd() local
297 uint64_t cpu = bd->bd_curcpu; in bhyve_cpuregs_dcmd()
317 if (cpu >= vmm_ncpu(bd->bd_vmm)) { in bhyve_cpuregs_dcmd()
322 if (bhyve_get_gregset(bd, cpu, &gregs) != 0) in bhyve_cpuregs_dcmd()
[all …]
/illumos-gate/usr/src/cmd/eeprom/i386/
H A Dbenv.c129 benv_des_t *bd; in new_bd() local
131 bd = (benv_des_t *)malloc(sizeof (benv_des_t)); in new_bd()
132 (void) memset(bd, 0, sizeof (benv_des_t)); in new_bd()
134 bd->elist = new_list(); in new_bd()
136 return (bd); in new_bd()
295 init_benv(benv_des_t *bd, char *file) in init_benv() argument
305 bd->name = file; in init_benv()
307 bd->name = strcats(boottree, "/solaris/bootenv.rc", NULL); in init_benv()
311 map_benv(benv_des_t *bd) in map_benv() argument
313 if ((bd->fd = open(bd->name, O_RDONLY)) == -1) in map_benv()
[all …]
/illumos-gate/usr/src/cmd/biosdev/
H A Dbiosdev.c117 static int match_edd(biosdev_data_t *bd);
118 static int match_first_block(biosdev_data_t *bd);
362 fn48_t *bd; in match_edd() local
372 bd = &bdata->fn48_dev_params; in match_edd()
374 if (bd->magic != 0xBEDD || bd->pathinfo_len == 0) { in match_edd()
378 bd->magic, bd->pathinfo_len); in match_edd()
383 if (strncmp(bd->bustype, "PCI", 3) != 0) { in match_edd()
385 (void) printf("was not pci %s\n", bd->bustype); in match_edd()
390 bd->interfacepath.pci.bus, in match_edd()
391 bd->interfacepath.pci.device, in match_edd()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ah/
H A Dusb_ah.c487 usb_ah_repeat_send(usb_ah_state_t *usb_ahd, usb_ah_button_descr_t *bd, in usb_ah_repeat_send() argument
492 bd->mblk = usb_ah_mk_mctl(mctlmsg, buf, len); in usb_ah_repeat_send()
494 if (bd->mblk != NULL) { in usb_ah_repeat_send()
495 dup_mp = usb_ah_cp_mblk(bd->mblk); in usb_ah_repeat_send()
503 usb_ahd->usb_ah_cur_bd = bd; in usb_ah_repeat_send()
505 usb_ah_timeout, bd, usb_ah_rpt_tick); in usb_ah_repeat_send()
517 usb_ah_button_descr_t *bd; in usb_ah_timeout() local
521 bd = (usb_ah_button_descr_t *)addr; in usb_ah_timeout()
522 usb_ahd = (usb_ah_state_t *)bd->uahp; in usb_ah_timeout()
531 dup_mp = usb_ah_cp_mblk(bd->mblk); in usb_ah_timeout()
[all …]
/illumos-gate/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.c106 int bd, wnode; in sbdp_disconnect_cpu() local
124 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_disconnect_cpu()
135 bdp = &wnodep->bds[bd]; in sbdp_disconnect_cpu()
144 sbdp_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid), 1); in sbdp_disconnect_cpu()
189 int bd, wnode; in sbdp_connect_cpu() local
204 sbdp_get_bd_and_wnode_num(nodeid, &bd, &wnode) != 0) { in sbdp_connect_cpu()
219 if (sbdp_is_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid))) { in sbdp_connect_cpu()
227 bdp = &wnodep->bds[bd]; in sbdp_connect_cpu()
257 sbdp_cpu_in_reset(wnode, bd, SG_CPUID_TO_CPU_UNIT(cpuid), 0); in sbdp_connect_cpu()
264 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()
/illumos-gate/usr/src/test/util-tests/tests/dis/i386/
H A D64.lzcnt.out1 libdis_test: 66 f3 0f bd d8 lzcntw %ax,%bx
2 libdis_test+0x5: 66 f3 0f bd 18 lzcntw (%rax),%bx
3 libdis_test+0xa: f3 0f bd d8 lzcntl %eax,%ebx
4 libdis_test+0xe: f3 0f bd 18 lzcntl (%rax),%ebx
5 libdis_test+0x12: f3 48 0f bd d8 lzcntq %rax,%rbx
6 libdis_test+0x17: f3 48 0f bd 18 lzcntq (%rax),%rbx
H A D32.lzcnt.out1 libdis_test: 66 f3 0f bd d8 lzcntw %ax,%bx
2 libdis_test+0x5: f3 0f bd d8 lzcntl %eax,%ebx
3 libdis_test+0x9: f3 0f bd 18 lzcntl (%eax),%ebx
H A D64.ifma.out3 libdis_test+0xc: 62 22 bd 82 b5 cf vpmadd52huq %xmm23,%xmm24,%xmm25{%k2}{z}
14 libdis_test+0x49: 62 22 bd a2 b5 cf vpmadd52huq %ymm23,%ymm24,%ymm25{%k2}{z}
25 libdis_test+0x86: 62 22 bd c2 b5 cf vpmadd52huq %zmm23,%zmm24,%zmm25{%k2}{z}
36 libdis_test+0xc3: 62 22 bd 82 b4 cf vpmadd52luq %xmm23,%xmm24,%xmm25{%k2}{z}
47 libdis_test+0x100: 62 22 bd a2 b4 cf vpmadd52luq %ymm23,%ymm24,%ymm25{%k2}{z}
58 libdis_test+0x13d: 62 22 bd c2 b4 cf vpmadd52luq %zmm23,%zmm24,%zmm25{%k2}{z}
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_prom.c70 prom_read_disabled_list(mema_disabled_t *dp, int bd) in prom_read_disabled_list() argument
80 ret = prom_read_one(dp, bd, prom_fd, in prom_read_disabled_list()
87 prom_write_disabled_list(mema_disabled_t *dp, int bd) in prom_write_disabled_list() argument
96 ret = prom_write_one(dp, bd, prom_fd, in prom_write_disabled_list()
105 int bd, in prom_read_one() argument
164 if (board == bd) in prom_read_one()
174 int bd, in prom_write_one() argument
224 if (board == bd && (*dp & bit) == 0) in prom_write_one()
232 *cp++ = "0123456789abcdef"[bd]; in prom_write_one()
/illumos-gate/usr/src/cmd/fm/schemes/mem/
H A Dmem_unum.c187 const bank_dimm_t *bd; in mem_unum_burst_pattern() local
193 for (bd = bank_dimm; bd->bd_pat != NULL; bd++) { in mem_unum_burst_pattern()
198 (void) sscanf(pat, bd->bd_pat, &replace, &start, &matched); in mem_unum_burst_pattern()
202 if (bd->bd_subst != NULL) { in mem_unum_burst_pattern()
203 (void) strlcpy(dimmname+replace, bd->bd_subst, in mem_unum_burst_pattern()
204 sizeof (dimmname) - strlen(bd->bd_subst)); in mem_unum_burst_pattern()
205 replace += strlen(bd->bd_subst); in mem_unum_burst_pattern()
212 (void) sscanf(c, bd->bd_reppat, &dimmlen); in mem_unum_burst_pattern()
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Djtag.c1336 for (i = 0, cpu = &sc->bd.cpu[i]; i < 2; i++, cpu++) { in jtag_get_board_info()
1422 sc->bd.io1.sio0_compid = in jtag_get_board_info()
1428 sc->bd.io1.sio1_compid = in jtag_get_board_info()
1434 sc->bd.io1.hme_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1439 sc->bd.io1.soc_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1447 sc->bd.io1.sio0_compid = in jtag_get_board_info()
1453 sc->bd.io1.sio1_compid = in jtag_get_board_info()
1459 sc->bd.io1.hme_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
1464 sc->bd.io1plus.socplus_compid = in jtag_get_board_info()
1473 sc->bd.io2.sio1_compid = jtag_get_comp_id(jreg, rc); in jtag_get_board_info()
[all …]
H A Dfhc_bd.c414 fhc_bd_valid(int bd) in fhc_bd_valid() argument
418 ASSERT(bd >= 0); in fhc_bd_valid()
424 index = FHC_B_SEARCH(boards, bd); in fhc_bd_valid()
575 bcopy((caddr_t)&sc->bd, &uip->bd, sizeof (union bd_un)); in fhc_bd_ks_update()
652 sc->bd.dsk.disk_pres[0] = 1; in fhc_bdlist_dk_init()
653 sc->bd.dsk.disk_id[0] = id; in fhc_bdlist_dk_init()
655 sc->bd.dsk.disk_pres[0] = 0; in fhc_bdlist_dk_init()
660 sc->bd.dsk.disk_pres[1] = 1; in fhc_bdlist_dk_init()
661 sc->bd.dsk.disk_id[1] = id; in fhc_bdlist_dk_init()
663 sc->bd.dsk.disk_pres[1] = 0; in fhc_bdlist_dk_init()
[all …]
/illumos-gate/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)
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dt10.c359 bd = 0;
367 if (bd)
368 w += (bd - 1) * HOR;
371 if (bd)
372 w -= (bd - 1) * HOR;
487 if (bd) {
488 bd -= HOR;
489 if (esc += bd)
498 esc -= bd;
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/lib/cfgadm_plugins/sysctrl/common/
H A Dcfga.c739 int bd; in dlist_find() local
742 bd = strtol(b, &p, 16); in dlist_find()
744 if (p != b && bd == board) in dlist_find()
778 int bd; in dlist_update() local
781 bd = strtol(b, &p, 16); in dlist_update()
783 if (p != b && bd == board) { in dlist_update()
1276 union bd_un *bd = &sc->bd; in info_set() local
1282 for (i = 0, cpu = bd->cpu; i < 2; i++, cpu++) { in info_set()
1295 switch (bd->io2.ffb_size) { in info_set()
1314 if (bd->dsk.disk_pres[i]) in info_set()
[all …]
/illumos-gate/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()

12345