Lines Matching refs:cdev
325 struct cdev *cdev; /* /dev/emu10k character device */
2186 emu10kx_open(struct cdev *i_dev, int flags __unused, int mode __unused, struct thread *td __unused)
2215 emu10kx_close(struct cdev *i_dev, int flags __unused, int mode __unused, struct thread *td __unused)
2234 emu10kx_read(struct cdev *i_dev, struct uio *buf, int flag __unused)
2320 sc->cdev = make_dev(&emu10kx_cdevsw, PCMMINOR(unit), UID_ROOT, GID_WHEEL, 0640, "emu10kx%d", unit);
2321 if (sc->cdev != NULL) {
2322 sc->cdev->si_drv1 = sc;
2336 if (sc->cdev)
2337 destroy_dev(sc->cdev);
2338 sc->cdev = NULL;
3402 if (sc->cdev)