Lines Matching refs:cdev

54 static MALLOC_DEFINE(M_DEVT, "cdev", "cdev storage");
57 static void destroy_devl(struct cdev *dev);
58 static int destroy_dev_sched_cbl(struct cdev *dev,
61 static int make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw,
78 * Free all the memory collected while the cdev mutex was
80 * be called immediately and is postponed until cdev mutex can be
115 dev_free_devlocked(struct cdev *cdev)
120 cdp = cdev2priv(cdev);
122 ("destroy_dev() was not called after delist_dev(%p)", cdev));
142 dev_ref(struct cdev *dev)
152 dev_refl(struct cdev *dev)
160 dev_rel(struct cdev *dev)
179 dev_refthread(struct cdev *dev, int *ref)
205 devvn_refthread(struct vnode *vp, struct cdev **devp, int *ref)
209 struct cdev *dev;
217 ("Not eternal cdev"));
220 KASSERT(csw != NULL, ("Eternal cdev is destroyed"));
249 dev_relthread(struct cdev *dev, int ref)
342 no_poll(struct cdev *dev __unused, int events, struct thread *td __unused)
351 giant_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
367 giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp)
383 giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
402 struct cdev *dev;
418 giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
434 giant_read(struct cdev *dev, struct uio *uio, int ioflag)
450 giant_write(struct cdev *dev, struct uio *uio, int ioflag)
466 giant_poll(struct cdev *dev, int events, struct thread *td)
482 giant_kqfilter(struct cdev *dev, struct knote *kn)
498 giant_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot,
516 giant_mmap_single(struct cdev *dev, vm_ooffset_t *offset, vm_size_t size,
534 notify(struct cdev *dev, const char *ev, int flags)
536 static const char prefix[] = "cdev=";
554 notify_create(struct cdev *dev, int flags)
561 notify_destroy(struct cdev *dev)
567 static struct cdev *
568 newdev(struct make_dev_args *args, struct cdev *si)
570 struct cdev *si2;
715 prep_devname(struct cdev *dev, const char *fmt, va_list ap)
779 make_dev_sv(struct make_dev_args *args1, struct cdev **dres,
782 struct cdev *dev, *dev_new;
846 make_dev_s(struct make_dev_args *args, struct cdev **dres,
859 make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw, int unit,
876 struct cdev *
880 struct cdev *dev;
893 struct cdev *
897 struct cdev *dev;
910 struct cdev *
914 struct cdev *dev;
930 make_dev_p(int flags, struct cdev **cdev, struct cdevsw *devsw,
937 res = make_dev_credv(flags, cdev, devsw, 0, cr, uid, gid, mode,
948 dev_dependsl(struct cdev *pdev, struct cdev *cdev)
951 cdev->si_parent = pdev;
952 cdev->si_flags |= SI_CHILD;
953 LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings);
957 dev_depends(struct cdev *pdev, struct cdev *cdev)
961 dev_dependsl(pdev, cdev);
966 make_dev_alias_v(int flags, struct cdev **cdev, struct cdev *pdev,
969 struct cdev *dev;
1001 *cdev = dev;
1006 struct cdev *
1007 make_dev_alias(struct cdev *pdev, const char *fmt, ...)
1009 struct cdev *dev;
1023 make_dev_alias_p(int flags, struct cdev **cdev, struct cdev *pdev,
1030 res = make_dev_alias_v(flags, cdev, pdev, fmt, ap);
1036 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
1037 struct cdev *old_alias, const char *physpath)
1047 *cdev = NULL;
1083 *cdev = old_alias;
1087 ret = make_dev_alias_p(flags, cdev, pdev, "%s", devfspath);
1098 destroy_devl(struct cdev *dev)
1183 /* If cdevsw has no more struct cdev *'s, clean it */
1200 delist_dev_locked(struct cdev *dev)
1203 struct cdev *child;
1229 delist_dev(struct cdev *dev)
1239 destroy_dev(struct cdev *dev)
1249 devtoname(struct cdev *dev)
1290 * Instead we give the drivers these routines which puts the struct cdev *'s
1300 LIST_HEAD(,cdev) head;
1313 struct cdev **dp, int extra)
1316 struct cdev *dev, *ndev, *dl, *de;
1396 * disposed of any softc hung of the struct cdev *'s at this time.
1401 struct cdev *dev;
1437 struct cdev *dev;
1446 ("cdev %p in dev_destroy_tq without CDP_SCHED_DTR", cp));
1465 destroy_dev_sched_cbl(struct cdev *dev, void (*cb)(void *), void *arg)
1486 destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg)
1494 destroy_dev_sched(struct cdev *dev)
1525 DB_SHOW_COMMAND(cdev, db_show_cdev)
1528 struct cdev *dev;
1542 dev = (struct cdev *)addr;