Lines Matching refs:bpf_d

228 static struct bpf_d *BPF_DEV_RESERVED = __unsafe_forge_single(struct bpf_d *, 1);
230 static struct bpf_d **__counted_by(bpf_dtab_size) bpf_dtab = NULL;
238 static int bpf_allocbufs(struct bpf_d *);
239 static errno_t bpf_attachd(struct bpf_d *d, struct bpf_if *bp);
240 static int bpf_detachd(struct bpf_d *d);
241 static void bpf_freed(struct bpf_d *);
242 static int bpf_setif(struct bpf_d *, ifnet_t ifp, bool, bool, bool);
244 static void bpf_wakeup(struct bpf_d *);
246 static void catchpacket(struct bpf_d *, struct bpf_packet *, u_int, int);
247 static void reset_d(struct bpf_d *);
248 static int bpf_setf(struct bpf_d *, u_int, user_addr_t, u_long);
249 static int bpf_getdltlist(struct bpf_d *, caddr_t __bidi_indexable, struct proc *);
250 static int bpf_setdlt(struct bpf_d *, u_int);
251 static int bpf_set_traffic_class(struct bpf_d *, int);
254 static void bpf_acquire_d(struct bpf_d *);
255 static void bpf_release_d(struct bpf_d *);
362 bpf_movein(struct uio *uio, int copy_len, struct bpf_d *d, struct mbuf **mp, in bpf_movein()
560 bpf_movein_batch(struct uio *uio, struct bpf_d *d, struct mbuf **mp, in bpf_movein_batch()
681 struct bpf_d **new_dtab = NULL; in bpf_make_dev_t()
684 new_dtab = krealloc_type(struct bpf_d *, in bpf_make_dev_t()
707 bpf_attachd(struct bpf_d *d, struct bpf_if *bp) in bpf_attachd()
772 bpf_detachd(struct bpf_d *d) in bpf_detachd()
774 struct bpf_d **p; in bpf_detachd()
906 bpf_start_timer(struct bpf_d *d) in bpf_start_timer()
937 bpf_stop_timer(struct bpf_d *d) in bpf_stop_timer()
953 bpf_acquire_d(struct bpf_d *d) in bpf_acquire_d()
966 bpf_release_d(struct bpf_d *d) in bpf_release_d()
987 kfree_type(struct bpf_d, d); in bpf_release_d()
1000 struct bpf_d *d; in bpfopen()
1036 d = kalloc_type(struct bpf_d, Z_WAITOK | Z_ZERO); in bpfopen()
1095 struct bpf_d *d; in bpfclose()
1205 bpf_sleep(struct bpf_d *d, int pri, const char *wmesg, int timo) in bpf_sleep()
1268 struct bpf_d *d; in bpfread()
1551 bpf_wakeup(struct bpf_d *d) in bpf_wakeup()
1571 struct bpf_d *d = (struct bpf_d *)arg; in bpf_timed_out()
1600 struct bpf_d *d; in bpfwrite()
1741 reset_d(struct bpf_d *d) in reset_d()
1765 static struct bpf_d *
1771 struct bpf_d *d = bpf_dtab[i]; in bpf_get_device_from_uuid()
1792 bpf_setup(struct bpf_d *d_to, uuid_t uuid_from, ifnet_t ifp) in bpf_setup()
1794 struct bpf_d *d_from; in bpf_setup()
1995 log_bpf_ioctl_str(struct bpf_d *d, u_long cmd) in log_bpf_ioctl_str()
2044 struct bpf_d *d; in bpfioctl()
2529 struct bpf_d *bpf_d; in bpfioctl() local
2534 for (bpf_d = bp->bif_dlist; bpf_d; in bpfioctl()
2535 bpf_d = bpf_d->bd_next) { in bpfioctl()
2758 bpf_setf(struct bpf_d *d, u_int bf_len, user_addr_t bf_insns, in bpf_setf()
2820 bpf_setif(struct bpf_d *d, ifnet_t theywant, bool do_reset, bool has_hbuf_read_write, in bpf_setif()
2893 bpf_getdltlist(struct bpf_d *d, caddr_t __bidi_indexable addr, struct proc *p) in bpf_getdltlist()
2946 bpf_setdlt(struct bpf_d *d, uint32_t dlt) in bpf_setdlt()
3008 bpf_set_traffic_class(struct bpf_d *d, int tc) in bpf_set_traffic_class()
3041 struct bpf_d *d; in bpfselect()
3119 filt_bpfread_common(struct knote *kn, struct kevent_qos_s *kev, struct bpf_d *d) in filt_bpfread_common()
3178 struct bpf_d *d; in bpfkqfilter()
3217 struct bpf_d *d = (struct bpf_d *)knote_kn_hook_get_raw(kn); in filt_bpfdetach()
3231 struct bpf_d *d = (struct bpf_d *)knote_kn_hook_get_raw(kn); in filt_bpfread()
3239 struct bpf_d *d = (struct bpf_d *)knote_kn_hook_get_raw(kn); in filt_bpftouch()
3259 struct bpf_d *d = (struct bpf_d *)knote_kn_hook_get_raw(kn); in filt_bpfprocess()
3307 struct bpf_d *d; in bpf_tap_imp()
4024 catchpacket(struct bpf_d *d, struct bpf_packet * pkt, in catchpacket()
4272 bpf_freebufs(struct bpf_d *d) in bpf_freebufs()
4295 bpf_allocbufs(struct bpf_d *d) in bpf_allocbufs()
4335 bpf_freed(struct bpf_d *d) in bpf_freed()
4476 struct bpf_d *d; in bpfdetach()
4602 bpfstats_fill_xbpf(struct xbpf_d *d, struct bpf_d *bd) in bpfstats_fill_xbpf()
4682 struct bpf_d *bd = bpf_dtab[i];