Lines Matching refs:bd

4602 bpfstats_fill_xbpf(struct xbpf_d *d, struct bpf_d *bd)  in bpfstats_fill_xbpf()  argument
4607 d->bd_promisc = bd->bd_promisc != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4609 d->bd_hdrcmplt = bd->bd_hdrcmplt != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4610 d->bd_async = bd->bd_async != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4611 d->bd_headdrop = bd->bd_headdrop != 0 ? 1 : 0; in bpfstats_fill_xbpf()
4612 d->bd_direction = (uint8_t)bd->bd_direction; in bpfstats_fill_xbpf()
4613 d->bh_compreq = bd->bd_flags & BPF_COMP_REQ ? 1 : 0; in bpfstats_fill_xbpf()
4614 d->bh_compenabled = bd->bd_flags & BPF_COMP_ENABLED ? 1 : 0; in bpfstats_fill_xbpf()
4615 d->bd_exthdr = bd->bd_flags & BPF_EXTENDED_HDR ? 1 : 0; in bpfstats_fill_xbpf()
4616 d->bd_trunc = bd->bd_flags & BPF_TRUNCATE ? 1 : 0; in bpfstats_fill_xbpf()
4617 d->bd_pkthdrv2 = bd->bd_flags & BPF_PKTHDRV2 ? 1 : 0; in bpfstats_fill_xbpf()
4618 d->bd_batch_write = bd->bd_flags & BPF_BATCH_WRITE ? 1 : 0; in bpfstats_fill_xbpf()
4619 d->bd_divert_in = bd->bd_flags & BPF_DIVERT_IN ? 1 : 0; in bpfstats_fill_xbpf()
4621 d->bd_dev_minor = (uint8_t)bd->bd_dev_minor; in bpfstats_fill_xbpf()
4623 d->bd_sig = bd->bd_sig; in bpfstats_fill_xbpf()
4625 d->bd_rcount = bd->bd_rcount; in bpfstats_fill_xbpf()
4626 d->bd_dcount = bd->bd_dcount; in bpfstats_fill_xbpf()
4627 d->bd_fcount = bd->bd_fcount; in bpfstats_fill_xbpf()
4628 d->bd_wcount = bd->bd_wcount; in bpfstats_fill_xbpf()
4629 d->bd_wdcount = bd->bd_wdcount; in bpfstats_fill_xbpf()
4630 d->bd_slen = bd->bd_slen; in bpfstats_fill_xbpf()
4631 d->bd_hlen = bd->bd_hlen; in bpfstats_fill_xbpf()
4632 d->bd_bufsize = bd->bd_bufsize; in bpfstats_fill_xbpf()
4633 d->bd_pid = bd->bd_pid; in bpfstats_fill_xbpf()
4634 if (bd->bd_bif != NULL && bd->bd_bif->bif_ifp != NULL) { in bpfstats_fill_xbpf()
4636 bd->bd_bif->bif_ifp->if_xname, IFNAMSIZ); in bpfstats_fill_xbpf()
4639 d->bd_comp_count = bd->bd_bcs.bcs_count_compressed_prefix; in bpfstats_fill_xbpf()
4640 d->bd_comp_size = bd->bd_bcs.bcs_total_compressed_prefix_size; in bpfstats_fill_xbpf()
4642 d->bd_scnt = bd->bd_scnt; in bpfstats_fill_xbpf()
4643 d->bd_hcnt = bd->bd_hcnt; in bpfstats_fill_xbpf()
4645 d->bd_read_count = bd->bd_bcs.bcs_total_read; in bpfstats_fill_xbpf()
4646 d->bd_fsize = bd->bd_bcs.bcs_total_size; in bpfstats_fill_xbpf()
4682 struct bpf_d *bd = bpf_dtab[i]; variable
4685 if (bd == NULL || bd == BPF_DEV_RESERVED ||
4686 (bd->bd_flags & BPF_CLOSING) != 0) {
4692 bpfstats_fill_xbpf(xbd, bd);