Home
last modified time | relevance | path

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

12345

/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosdisk.c310 if ((bd = calloc(1, sizeof (*bd))) == NULL) in fd_init()
344 if ((bd = calloc(1, sizeof (*bd))) == NULL) in bd_init()
398 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bd_get_diskinfo_cd()
448 if ((bd = calloc(1, sizeof (*bd))) == NULL) in bc_add()
529 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bd_get_diskinfo_std()
658 (bd->bd_sectors + bd->bd_sec * bd->bd_hds - 1) / in bd_int13probe()
659 bd->bd_sec * bd->bd_hds; in bd_int13probe()
680 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bd_int13probe()
683 bd->bd_hds, bd->bd_sec); in bd_int13probe()
756 bd->bd_sectorsize * bd->bd_sectors, in bd_print_common()
[all …]
/illumos-gate/usr/src/uts/common/io/blkdev/
H A Dblkdev.c494 bd->d_errstats->ks_lock = &bd->d_errmutex; in bd_create_errstats()
534 bd->d_errstats->ks_private = bd; in bd_create_errstats()
641 kmem_free(bd->d_queues, sizeof (*bd->d_queues) * bd->d_qcount); in bd_queues_free()
697 bd->d_maxxfer = bd->d_dma.dma_attr_maxxfer; in bd_attach()
699 bd->d_maxxfer = bd->d_dma.dma_attr_maxxfer; in bd_attach()
738 bd->d_ksp->ks_lock = &bd->d_ksmutex; in bd_attach()
740 bd->d_kiop = bd->d_ksp->ks_data; in bd_attach()
813 bd->d_queues = kmem_alloc(sizeof (*bd->d_queues) * bd->d_qcount, in bd_attach()
845 rv = bd->d_ops.o_devid_init(bd->d_private, dip, &bd->d_devid); in bd_attach()
2048 bd->d_pblkshift = bd->d_blkshift; in bd_update_state()
[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()
185 int bd; in plat_populate_sid_cache() local
195 bds |= (1 << bd); in plat_populate_sid_cache()
218 for (bd = 0; bd < plat_max_cpumem_boards(); bd++) { in plat_populate_sid_cache()
251 domain_dimm_sids[bd].pdsb_state, bd); in plat_populate_sid_cache()
254 bds &= ~(1 << bd); in plat_populate_sid_cache()
291 int bd; in plat_store_mem_sids() local
331 int bd; in plat_request_all_mem_sids() local
334 for (bd = 0; bd < plat_max_cpumem_boards(); bd++) { in plat_request_all_mem_sids()
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_bhyve.c466 mode = vmm_vcpu_mode(bd->bd_vmm, bd->bd_curcpu); in bhyve_status_dcmd()
467 isa = vmm_vcpu_isa(bd->bd_vmm, bd->bd_curcpu); in bhyve_status_dcmd()
1029 cnt = vmm_vread(bd->bd_vmm, bd->bd_curcpu, bd->bd_defseg, buf, in bhyve_aread()
1034 cnt = vmm_vread(bd->bd_vmm, bd->bd_curcpu, VMM_DESC_CS, buf, in bhyve_aread()
1068 cnt = vmm_vwrite(bd->bd_vmm, bd->bd_curcpu, bd->bd_defseg, buf, in bhyve_awrite()
1203 if (vmm_vtop(bd->bd_vmm, bd->bd_curcpu, seg, va, pa) != 0) { in bhyve_vtop()
1263 ret = vmm_getreg(bd->bd_vmm, bd->bd_curcpu, KREG_RIP, &rip); in bhyve_status()
1271 switch (vmm_vcpu_isa(bd->bd_vmm, bd->bd_curcpu)) { in bhyve_status()
1315 ret = vmm_step(bd->bd_vmm, bd->bd_curcpu); in bhyve_step()
1378 ret = vmm_getreg(bd->bd_vmm, bd->bd_curcpu, reg, rp); in bhyve_getareg()
[all …]
/illumos-gate/usr/src/cmd/eeprom/i386/
H A Dbenv.c129 benv_des_t *bd; in new_bd() local
136 return (bd); in new_bd()
305 bd->name = file; in init_benv()
313 if ((bd->fd = open(bd->name, O_RDONLY)) == -1) in map_benv()
319 if ((bd->len = (size_t)lseek(bd->fd, 0, SEEK_END)) == 0) { in map_benv()
327 if ((bd->adr = mmap((caddr_t)0, bd->len, (PROT_READ | PROT_WRITE), in map_benv()
335 if (munmap(bd->adr, bd->len) == -1) in unmap_benv()
856 benv_des_t *bd; in main() local
968 bd = new_bd(); in main()
971 map_benv(bd); in main()
[all …]
/illumos-gate/usr/src/cmd/biosdev/
H A Dbiosdev.c362 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()
390 bd->interfacepath.pci.bus, in match_edd()
396 bd->interfacepath.pci.device, bd->interfacepath.pci.function); in match_edd()
418 bd->devicepath.scsi.target, bd->devicepath.scsi.lun_lo); in match_edd()
439 bd->devicepath.ata.chan); in match_edd()
448 bd->interface_type, in match_edd()
484 bd->interface_type); in match_edd()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ah/
H A Dusb_ah.c494 if (bd->mblk != NULL) { in usb_ah_repeat_send()
517 usb_ah_button_descr_t *bd; in usb_ah_timeout() local
537 if (bd->mblk != NULL) { in usb_ah_timeout()
621 usb_ah_button_descr_t *bd; in usb_ah_get_cooked_rd() local
665 bd->location = location; in usb_ah_get_cooked_rd()
666 bd->offset = offset; in usb_ah_get_cooked_rd()
671 bd->offset); in usb_ah_get_cooked_rd()
695 usb_ah_button_descr_t *bd; in usb_ah_check_usage_send_data() local
714 bd->location, bd->offset, bd->no_of_bits); in usb_ah_check_usage_send_data()
791 bd->pressed = 1; in usb_ah_check_usage_send_data()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp.c211 int bd, wnode; in sbdp_get_board_num() local
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()
466 bdp->bd = bd; in sbdp_bd_init()
598 hp->h_board = bdp->bd; in sbdp_cleanup_bd()
984 bdp = &cur->bds[bd]; in sbdp_cpu_in_reset()
1016 bdp = &cur->bds[bd]; in sbdp_set_cpu_present()
1041 bdp = &cur->bds[bd]; in sbdp_is_cpu_present()
[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()
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()
265 sbdp_is_cpu_in_reset(wnode, bd, i) == 1) { 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.c558 (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
1389 if (bd == board) { in sbdp_is_mem()
1397 board, bd); in sbdp_is_mem()
1478 int bd; in mc_check_sibling_cpu() local
1494 if (sbdp_is_cpu_present(wnode, bd, unit) && in mc_check_sibling_cpu()
[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.c1422 sc->bd.io1.sio0_compid = in jtag_get_board_info()
1428 sc->bd.io1.sio1_compid = 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()
1464 sc->bd.io1plus.socplus_compid = in jtag_get_board_info()
1584 sc->bd.io3.psyo0_compid = in jtag_get_board_info()
1590 sc->bd.io3.psyo1_compid = in jtag_get_board_info()
1613 sc->bd.dsk.disk_pres[0] = 1; in jtag_get_board_info()
1616 sc->bd.dsk.disk_pres[0] = 0; in jtag_get_board_info()
1620 sc->bd.dsk.disk_pres[1] = 1; 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