Lines Matching refs:bpf_d
219 #define BPF_DEV_RESERVED ((struct bpf_d *)(uintptr_t)1)
220 static struct bpf_d **bpf_dtab = NULL;
229 static int bpf_allocbufs(struct bpf_d *);
230 static errno_t bpf_attachd(struct bpf_d *d, struct bpf_if *bp);
231 static int bpf_detachd(struct bpf_d *d);
232 static void bpf_freed(struct bpf_d *);
235 static int bpf_setif(struct bpf_d *, ifnet_t ifp, bool, bool, bool);
237 static void bpf_wakeup(struct bpf_d *);
239 static void catchpacket(struct bpf_d *, struct bpf_packet *, u_int, int);
240 static void reset_d(struct bpf_d *);
241 static int bpf_setf(struct bpf_d *, u_int, user_addr_t, u_long);
242 static int bpf_getdltlist(struct bpf_d *, caddr_t, struct proc *);
243 static int bpf_setdlt(struct bpf_d *, u_int);
244 static int bpf_set_traffic_class(struct bpf_d *, int);
247 static void bpf_acquire_d(struct bpf_d *);
248 static void bpf_release_d(struct bpf_d *);
482 struct bpf_d **new_dtab = NULL; in bpf_make_dev_t()
485 new_dtab = krealloc_type(struct bpf_d *, in bpf_make_dev_t()
507 bpf_attachd(struct bpf_d *d, struct bpf_if *bp) in bpf_attachd()
572 bpf_detachd(struct bpf_d *d) in bpf_detachd()
574 struct bpf_d **p; in bpf_detachd()
694 bpf_start_timer(struct bpf_d *d) in bpf_start_timer()
725 bpf_stop_timer(struct bpf_d *d) in bpf_stop_timer()
741 bpf_acquire_d(struct bpf_d *d) in bpf_acquire_d()
754 bpf_release_d(struct bpf_d *d) in bpf_release_d()
775 kfree_type(struct bpf_d, d); in bpf_release_d()
788 struct bpf_d *d; in bpfopen()
824 d = kalloc_type(struct bpf_d, Z_WAITOK | Z_ZERO); in bpfopen()
883 struct bpf_d *d; in bpfclose()
993 bpf_sleep(struct bpf_d *d, int pri, const char *wmesg, int timo) in bpf_sleep()
1056 struct bpf_d *d; in bpfread()
1338 bpf_wakeup(struct bpf_d *d) in bpf_wakeup()
1358 struct bpf_d *d = (struct bpf_d *)arg; in bpf_timed_out()
1387 struct bpf_d *d; in bpfwrite()
1512 reset_d(struct bpf_d *d) in reset_d()
1536 static struct bpf_d *
1542 struct bpf_d *d = bpf_dtab[i]; in bpf_get_device_from_uuid()
1563 bpf_setup(struct bpf_d *d_to, uuid_t uuid_from, ifnet_t ifp) in bpf_setup()
1565 struct bpf_d *d_from; in bpf_setup()
1754 log_bpf_ioctl_str(struct bpf_d *d, u_long cmd) in log_bpf_ioctl_str()
1803 struct bpf_d *d; in bpfioctl()
2224 struct bpf_d *bpf_d; in bpfioctl() local
2229 for (bpf_d = bp->bif_dlist; bpf_d; in bpfioctl()
2230 bpf_d = bpf_d->bd_next) { in bpfioctl()
2358 bpf_setf(struct bpf_d *d, u_int bf_len, user_addr_t bf_insns, in bpf_setf()
2418 bpf_setif(struct bpf_d *d, ifnet_t theywant, bool do_reset, bool has_hbuf_read, in bpf_setif()
2491 bpf_getdltlist(struct bpf_d *d, caddr_t addr, struct proc *p) in bpf_getdltlist()
2544 bpf_setdlt(struct bpf_d *d, uint32_t dlt) in bpf_setdlt()
2606 bpf_set_traffic_class(struct bpf_d *d, int tc) in bpf_set_traffic_class()
2639 struct bpf_d *d; in bpfselect()
2717 filt_bpfread_common(struct knote *kn, struct kevent_qos_s *kev, struct bpf_d *d) in filt_bpfread_common()
2776 struct bpf_d *d; in bpfkqfilter()
2815 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; in filt_bpfdetach()
2829 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; in filt_bpfread()
2837 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; in filt_bpftouch()
2857 struct bpf_d *d = (struct bpf_d *)kn->kn_hook; in filt_bpfprocess()
2908 struct bpf_d *d; in bpf_tap_imp()
3613 catchpacket(struct bpf_d *d, struct bpf_packet * pkt, in catchpacket()
3858 bpf_freebufs(struct bpf_d *d) in bpf_freebufs()
3881 bpf_allocbufs(struct bpf_d *d) in bpf_allocbufs()
3921 bpf_freed(struct bpf_d *d) in bpf_freed()
4062 struct bpf_d *d; in bpfdetach()
4180 bpfstats_fill_xbpf(struct xbpf_d *d, struct bpf_d *bd) in bpfstats_fill_xbpf()
4253 struct bpf_d *bd = bpf_dtab[i];