Home
last modified time | relevance | path

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

12345

/freebsd-12.1/stand/i386/libi386/
H A Dbiosdisk.c294 if ((bd = calloc(1, sizeof(*bd))) == NULL) in fd_init()
330 if ((bd = calloc(1, sizeof(*bd))) == NULL) in bd_init()
379 if ((bd = calloc(1, sizeof(*bd))) == NULL) in bc_add()
400 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bc_add()
478 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bd_get_diskinfo_std()
597 (bd->bd_sectors + bd->bd_sec * bd->bd_hds - 1) / in bd_int13probe()
598 bd->bd_sec * bd->bd_hds; in bd_int13probe()
621 bd->bd_sectors = (uint64_t)bd->bd_cyl * bd->bd_hds * bd->bd_sec; in bd_int13probe()
624 bd->bd_hds, bd->bd_sec); in bd_int13probe()
697 bd->bd_sectorsize * bd->bd_sectors, in bd_print_common()
[all …]
/freebsd-12.1/usr.bin/netstat/
H A Dbpf.c93 if (bd->bd_promisc) in bpf_flags()
95 if (bd->bd_immediate) in bpf_flags()
97 if (bd->bd_hdrcmplt) in bpf_flags()
101 if (bd->bd_feedback) in bpf_flags()
103 if (bd->bd_async) in bpf_flags()
105 if (bd->bd_locked) in bpf_flags()
130 bd = malloc(size); in bpf_stats()
131 if (bd == NULL) { in bpf_stats()
138 free(bd); in bpf_stats()
147 for (d = &bd[0]; d < &bd[size / sizeof(*d)]; d++) { in bpf_stats()
[all …]
/freebsd-12.1/sys/dev/cx/
H A Dif_cx.c325 CX_LOCK (bd); in cx_led_off()
343 CX_LOCK (bd); in cx_intr()
748 b->sys = bd; in cx_attach()
753 NULL, cx_intr, bd, &bd->intrhand)) { in cx_attach()
924 bus_teardown_intr (dev, bd->irq_res, bd->intrhand); in cx_detach()
1439 bdrv_t *bd; in cx_topen() local
1466 bdrv_t *bd; in cx_tclose() local
1482 bdrv_t *bd; in cx_tmodem() local
1562 bdrv_t *bd; in cx_ioctl() local
1969 bdrv_t *bd; in cx_softintr() local
[all …]
/freebsd-12.1/sys/dev/ctau/
H A Dif_ct.c684 d->bd = bd; in ct_attach()
855 bdrv_t *bd = d->bd; in ct_ifstart() local
899 bdrv_t *bd = d->bd; in ct_sioctl() local
1061 bdrv_t *bd = d->bd; in ct_watchdog_timer() local
1207 bd = d->bd; in ct_modem_status()
1238 bd = d->bd; in ct_ioctl()
1728 bdrv_t *bd = d->bd; in ng_ct_newhook() local
1945 bdrv_t *bd = d->bd; in print_chan() local
2065 bd = d->bd; in ng_ct_rcvdata()
2105 bd = d->bd; in ng_ct_rmnode()
[all …]
/freebsd-12.1/sys/dev/cp/
H A Dif_cp.c267 CP_LOCK (bd); in cp_led_off()
285 CP_LOCK (bd); in cp_intr()
430 CP_LOCK (bd); in cp_attach()
431 cp_reset (b, bd->dmamem.virt, bd->dmamem.phys); in cp_attach()
450 NULL, cp_intr, bd, &bd->cp_intrhand); in cp_attach()
528 CP_LOCK (bd); in cp_attach()
529 b->sys = bd; in cp_attach()
545 CP_LOCK (bd); in cp_detach()
581 bus_teardown_intr (dev, bd->cp_irq, bd->cp_intrhand); in cp_detach()
619 CP_LOCK (bd); in cp_detach()
[all …]
/freebsd-12.1/sys/kern/
H A Dvfs_bio.c140 #define BD_LOCKPTR(bd) (&(bd)->bd_cleanq->bq_lock) argument
141 #define BD_LOCK(bd) mtx_lock(BD_LOCKPTR((bd))) argument
142 #define BD_UNLOCK(bd) mtx_unlock(BD_LOCKPTR((bd))) argument
144 #define BD_RUN_LOCKPTR(bd) (&(bd)->bd_run_lock) argument
147 #define BD_DOMAIN(bd) (bd - bdomain) argument
640 if (bd->bd_bufspace < bd->bd_bufspacethresh && in bufspace_daemon_wait()
773 error = msleep(&bd->bd_wanted, BD_LOCKPTR(bd), in bufspace_wait()
826 while (bd->bd_bufspace > bd->bd_lobufspace || in bufspace_daemon()
842 msleep(&bd->bd_wanted, BD_LOCKPTR(bd), in bufspace_daemon()
1856 bd->bd_cleanq = &bd->bd_subq[mp_maxid + 1]; in bd_init()
[all …]
/freebsd-12.1/sys/dev/ce/
H A Dif_ce.c371 CE_LOCK (bd); in ce_led_off()
391 CE_LOCK (bd); in ce_intr()
558 bd->board = b; in ce_attach()
559 b->sys = bd; in ce_attach()
617 NULL, ce_intr, bd, &bd->ce_intrhand); in ce_attach()
740 CE_LOCK (bd); in ce_attach()
760 CE_LOCK (bd); in ce_detach()
832 bus_teardown_intr (dev, bd->ce_irq, bd->ce_intrhand); in ce_detach()
862 CE_LOCK (bd); in ce_ifstart()
917 CE_LOCK (bd); in ce_sioctl()
[all …]
/freebsd-12.1/sys/net/
H A Dbpfdesc.h114 #define BPFD_LOCK(bd) mtx_lock(&(bd)->bd_lock) argument
115 #define BPFD_UNLOCK(bd) mtx_unlock(&(bd)->bd_lock) argument
116 #define BPFD_LOCK_ASSERT(bd) mtx_assert(&(bd)->bd_lock, MA_OWNED) argument
118 #define BPF_PID_REFRESH(bd, td) (bd)->bd_pid = (td)->td_proc->p_pid argument
119 #define BPF_PID_REFRESH_CUR(bd) (bd)->bd_pid = curthread->td_proc->p_pid argument
H A Dbpf.c2862 struct bpf_d *bd; in bpf_zero_counters() local
2868 BPFD_LOCK(bd); in bpf_zero_counters()
2875 BPFD_UNLOCK(bd); in bpf_zero_counters()
2890 BPFD_LOCK_ASSERT(bd); in bpfstats_fill_xbpf()
2902 d->bd_sig = bd->bd_sig; in bpfstats_fill_xbpf()
2906 d->bd_pid = bd->bd_pid; in bpfstats_fill_xbpf()
2927 struct bpf_d *bd; in bpf_stats_sysctl() local
2972 BPFD_LOCK(bd); in bpf_stats_sysctl()
2974 BPFD_UNLOCK(bd); in bpf_stats_sysctl()
2978 BPFD_LOCK(bd); in bpf_stats_sysctl()
[all …]
/freebsd-12.1/sys/arm/freescale/imx/
H A Dimx6_sdma.c81 struct sdma_buffer_descriptor *bd; in sdma_intr() local
104 bd = &channel->bd[j]; in sdma_intr()
105 bd->mode.status |= BD_DONE; in sdma_intr()
106 if (bd->mode.status & BD_RROR) in sdma_intr()
199 kmem_free((vm_offset_t)channel->bd, PAGE_SIZE); in sdma_free()
241 struct sdma_buffer_descriptor *bd; in sdma_configure() local
272 bd = &channel->bd[i]; in sdma_configure()
273 bd->mode.command = conf->command; in sdma_configure()
276 bd->mode.status |= BD_WRAP; in sdma_configure()
277 bd->mode.count = conf->period; in sdma_configure()
[all …]
/freebsd-12.1/tools/bus_space/examples/
H A Dam79c900_diag.py251 bd.buffer = busaddr + (addr_rxbufs - cpuaddr) + bufsize * i
252 bd.flags = (1 << 31) | (15 << 12) | (-bufsize & 0xfff)
253 bd.length = 0
254 bd._pad_ = 0
258 bd.buffer = busaddr + (addr_txbufs - cpuaddr) + bufsize * i
259 bd.flags = (15 << 12)
260 bd.length = 0
261 bd._pad_ = 0
308 bd = bufdesc.from_address(addr_txdesc) variable
309 bd.length = 0
[all …]
/freebsd-12.1/sys/fs/nandfs/
H A Dnandfs_dat.c297 struct nandfs_bdesc *bd; in nandfs_get_dat_bdescs_ioctl() local
306 bd = malloc(size, M_NANDFSTEMP, M_WAITOK); in nandfs_get_dat_bdescs_ioctl()
307 error = copyin((void *)(uintptr_t)nargv->nv_base, bd, size); in nandfs_get_dat_bdescs_ioctl()
309 free(bd, M_NANDFSTEMP); in nandfs_get_dat_bdescs_ioctl()
313 error = nandfs_get_dat_bdescs(nffsdev, bd, nargv->nv_nmembs); in nandfs_get_dat_bdescs_ioctl()
318 free(bd, M_NANDFSTEMP); in nandfs_get_dat_bdescs_ioctl()
338 __func__, (uintmax_t)bd[i].bd_ino, in nandfs_get_dat_bdescs()
339 (uintmax_t)bd[i].bd_oblocknr, (uintmax_t)bd[i].bd_blocknr, in nandfs_get_dat_bdescs()
340 (uintmax_t)bd[i].bd_offset)); in nandfs_get_dat_bdescs()
342 error = nandfs_bmap_lookup(dat_node, bd[i].bd_offset, &map); in nandfs_get_dat_bdescs()
[all …]
/freebsd-12.1/contrib/gcc/
H A Dtree-ssa-dse.c143 struct dse_block_local_data *bd in dse_initialize_block_local_data() local
150 if (bd->stores) in dse_initialize_block_local_data()
151 bitmap_clear (bd->stores); in dse_initialize_block_local_data()
229 struct dse_block_local_data *bd in dse_optimize_stmt() local
297 record_voperand_set (dse_gd->stores, &bd->stores, ann->uid); in dse_optimize_stmt()
359 record_voperand_set (dse_gd->stores, &bd->stores, ann->uid); in dse_optimize_stmt()
368 struct dse_block_local_data *bd in dse_record_phis() local
376 &bd->stores, in dse_record_phis()
384 struct dse_block_local_data *bd in dse_finalize_block() local
392 if (bd->stores) in dse_finalize_block()
[all …]
H A Ddomwalk.c145 void *bd = NULL; in walk_dominator_tree() local
173 bd = VEC_pop (void_p, walk_data->free_block_data); in walk_dominator_tree()
178 bd = xcalloc (1, walk_data->block_local_data_size); in walk_dominator_tree()
183 VEC_safe_push (void_p, heap, walk_data->block_data_stack, bd); in walk_dominator_tree()
257 bd = VEC_pop (void_p, walk_data->block_data_stack); in walk_dominator_tree()
259 VEC_safe_push (void_p, heap, walk_data->free_block_data, bd); in walk_dominator_tree()
/freebsd-12.1/sys/arm/ti/cpsw/
H A Dif_cpsw.c437 printf(" BufPtr: 0x%08x BufLen: 0x%08x\n", bd.bufptr, bd.buflen); in cpsw_dump_slot()
1671 if ((bd.flags & in cpsw_rx_dequeue()
1766 bd.next = 0; in cpsw_rx_enqueue()
1768 bd.bufoff = 0; in cpsw_rx_enqueue()
1770 bd.pktlen = bd.buflen; in cpsw_rx_enqueue()
1908 bd.next = 0; in cpswp_tx_enqueue()
1911 bd.bufoff = 0; in cpswp_tx_enqueue()
1931 bd.next = 0; in cpswp_tx_enqueue()
1933 bd.bufoff = 0; in cpswp_tx_enqueue()
1935 bd.pktlen = 0; in cpswp_tx_enqueue()
[all …]
/freebsd-12.1/crypto/heimdal/lib/gssapi/mech/
H A Dgss_mo.c608 gss_buffer_desc bd; in gss_display_mech_attr() local
609 bd.value = rk_UNCONST(ma->name); in gss_display_mech_attr()
610 bd.length = strlen(ma->name); in gss_display_mech_attr()
611 major = _gss_copy_buffer(minor_status, &bd, name); in gss_display_mech_attr()
617 gss_buffer_desc bd; in gss_display_mech_attr() local
618 bd.value = rk_UNCONST(ma->short_desc); in gss_display_mech_attr()
619 bd.length = strlen(ma->short_desc); in gss_display_mech_attr()
626 gss_buffer_desc bd; in gss_display_mech_attr() local
627 bd.value = rk_UNCONST(ma->long_desc); in gss_display_mech_attr()
628 bd.length = strlen(ma->long_desc); in gss_display_mech_attr()
[all …]
/freebsd-12.1/crypto/openssl/crypto/bn/asm/
H A Dsparcv9a-mont.pl214 ldda [%o4+4]%asi,$bd
225 fxtod $bd,$bd
243 fmuld $alo,$bd,$alod
255 fmuld $ahi,$bd,$ahid
310 fmuld $alo,$bd,$alod
337 fmuld $ahi,$bd,$ahid
397 fmuld $alo,$bd,$alod
421 fmuld $ahi,$bd,$ahid
532 ldda [%o4+4]%asi,$bd
542 fxtod $bd,$bd
[all …]
H A Dppc64-mont.pl384 fcfid $bd,$bd
427 fmadd $T1b,$A0,$bd,$T1b
429 fmadd $T2b,$A1,$bd,$T2b
431 fmadd $T3b,$A2,$bd,$T3b
433 fmul $dotb,$A3,$bd
563 fmadd $T1b,$A0,$bd,$T1b
572 fmul $dotb,$A3,$bd
654 fmul $dotb,$A3,$bd
992 fcfid $bd,$bd
1014 fmul $dotb,$A3,$bd
[all …]
/freebsd-12.1/sys/dev/drm/
H A Dsavage_drv.h409 #define BCI_BD_GET_BPP(bd) (((bd) >> 16) & 0xFF) argument
410 #define BCI_BD_SET_BPP(bd, bpp) ((bd) |= (((bpp) & 0xFF) << 16)) argument
411 #define BCI_BD_GET_STRIDE(bd) ((bd) & 0xFFFF) argument
412 #define BCI_BD_SET_STRIDE(bd, st) ((bd) |= ((st) & 0xFFFF)) argument
/freebsd-12.1/sys/dev/drm2/radeon/
H A Dradeon_legacy_encoders.c322 if (bd->props.brightness < 0) in radeon_legacy_lvds_level()
370 struct backlight_device *bd; in radeon_legacy_backlight_init() local
399 if (IS_ERR(bd)) { in radeon_legacy_backlight_init()
435 lvds->bl_dev = bd; in radeon_legacy_backlight_init()
438 lvds->bl_dev = bd; in radeon_legacy_backlight_init()
441 bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); in radeon_legacy_backlight_init()
443 backlight_update_status(bd); in radeon_legacy_backlight_init()
465 bd = lvds->bl_dev; in radeon_legacy_backlight_exit()
469 bd = lvds->bl_dev; in radeon_legacy_backlight_exit()
473 if (bd) { in radeon_legacy_backlight_exit()
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/builtins/
H A Dmultc3.c24 long double bd = b * d; in __multc3() local
28 __real__ z = ac - bd; in __multc3()
50 if (!recalc && (crt_isinf(ac) || crt_isinf(bd) || in __multc3()
/freebsd-12.1/contrib/llvm/tools/bugpoint/
H A DCrashDebugger.cpp74 ReducePassList(BugDriver &bd) : BD(bd) {} in ReducePassList() argument
130 : BD(bd), TestFn(testFn) {} in ReduceCrashingGlobalInitializers()
196 ReduceCrashingFunctions(BugDriver &bd, BugTester testFn) in ReduceCrashingFunctions() argument
197 : BD(bd), TestFn(testFn) {} in ReduceCrashingFunctions()
330 : BD(bd), FnName(FnName), TestFn(testFn) {} in ReduceCrashingFunctionAttributes()
546 : BD(bd), TestFn(testFn), Direction(Direction) {} in ReduceCrashingConditionals()
650 ReduceSimplifyCFG(BugDriver &bd, BugTester testFn) in ReduceSimplifyCFG() argument
651 : BD(bd), TestFn(testFn), TTI(bd.getProgram().getDataLayout()) {} in ReduceSimplifyCFG()
742 : BD(bd), TestFn(testFn) {} in ReduceCrashingInstructions()
818 : BD(bd), TestFn(testFn) {} in ReduceCrashingNamedMD()
[all …]
/freebsd-12.1/sys/dev/qlnx/qlnxe/
H A Dqlnx_def.h171 #define BD_UNMAP_ADDR(bd) HILO_U64(le32toh((bd)->addr.hi), \ argument
172 le32toh((bd)->addr.lo))
173 #define BD_UNMAP_LEN(bd) (le16toh((bd)->nbytes)) argument
175 #define BD_SET_UNMAP_ADDR_LEN(bd, maddr, len) \ argument
177 (bd)->addr.hi = htole32(U64_HI(maddr)); \
178 (bd)->addr.lo = htole32(U64_LO(maddr)); \
179 (bd)->nbytes = htole16(len); \
/freebsd-12.1/contrib/gdtoa/
H A Dstrtod.c102 Bigint *bb, *bb1, *bd, *bd0, *bs, *delta; local
490 Bfree(bd);
580 bd = Balloc(bd0->k);
581 Bcopy(bd, bd0);
654 bd = pow5mult(bd, bd5);
656 bd = lshift(bd, bd2);
659 delta = diff(bb, bd);
1028 Bfree(bd);
1033 Bfree(bd);
/freebsd-12.1/contrib/compiler-rt/lib/builtins/ppc/
H A Dmultc3.c24 long double bd = __gcc_qmul(b,d); in __multc3() local
28 DD real = { .ld = __gcc_qsub(ac,bd) }; in __multc3()
61 DD bdDD = { .ld = bd }; in __multc3()

12345