Lines Matching refs:dev
624 bpfopen(dev_t dev, int flags, __unused int fmt,
630 if ((unsigned int) minor(dev) >= nbpfilter) {
643 if ((unsigned int) minor(dev) == (nbpfilter - 1))
644 bpf_make_dev_t(major(dev));
654 if (bpf_dtab[minor(dev)] == 0) {
655 bpf_dtab[minor(dev)] = (void *)1; /* Mark opening */
664 bpf_dtab[minor(dev)] = NULL;
686 bpf_dtab[minor(dev)] = NULL;
695 bpf_dtab[minor(dev)] = d; /* Mark opened */
707 bpfclose(dev_t dev, __unused int flags, __unused int fmt,
715 d = bpf_dtab[minor(dev)];
720 bpf_dtab[minor(dev)] = (void *)1; /* Mark closing */
768 * bpfclose() will set bpf_dtab[minor(dev)] to 1, and
786 bpf_dtab[minor(dev)] = NULL; /* Mark closed */
843 bpfread(dev_t dev, struct uio *uio, int ioflag)
851 d = bpf_dtab[minor(dev)];
912 d = bpf_dtab[minor(dev)];
1051 bpfwrite(dev_t dev, struct uio *uio, __unused int ioflag)
1064 d = bpf_dtab[minor(dev)];
1106 d = bpf_dtab[minor(dev)];
1193 bpfioctl(dev_t dev, u_long cmd, caddr_t addr, __unused int flags,
1202 d = bpf_dtab[minor(dev)];
1782 bpfselect(dev_t dev, int which, void * wql, struct proc *p)
1789 d = bpf_dtab[minor(dev)];
1831 int bpfkqfilter(dev_t dev, struct knote *kn);
1842 bpfkqfilter(dev_t dev, struct knote *kn)
1849 if (major(dev) != CDEV_MAJOR) {
1859 d = bpf_dtab[minor(dev)];