Lines Matching refs:cdev

52 static MALLOC_DEFINE(M_DEVT, "cdev", "cdev storage");
55 static void destroy_devl(struct cdev *dev);
56 static int destroy_dev_sched_cbl(struct cdev *dev,
59 static int make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw,
76 * Free all the memory collected while the cdev mutex was
78 * be called immediately and is postponed until cdev mutex can be
113 dev_free_devlocked(struct cdev *cdev)
118 cdp = cdev2priv(cdev);
120 ("destroy_dev() was not called after delist_dev(%p)", cdev));
140 dev_ref(struct cdev *dev)
150 dev_refl(struct cdev *dev)
158 dev_rel(struct cdev *dev)
177 dev_refthread(struct cdev *dev, int *ref)
202 devvn_refthread(struct vnode *vp, struct cdev **devp, int *ref)
206 struct cdev *dev;
214 ("Not eternal cdev"));
217 KASSERT(csw != NULL, ("Eternal cdev is destroyed"));
244 dev_relthread(struct cdev *dev, int ref)
337 no_poll(struct cdev *dev __unused, int events, struct thread *td __unused)
346 giant_open(struct cdev *dev, int oflags, int devtype, struct thread *td)
362 giant_fdopen(struct cdev *dev, int oflags, struct thread *td, struct file *fp)
378 giant_close(struct cdev *dev, int fflag, int devtype, struct thread *td)
397 struct cdev *dev;
413 giant_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
429 giant_read(struct cdev *dev, struct uio *uio, int ioflag)
445 giant_write(struct cdev *dev, struct uio *uio, int ioflag)
461 giant_poll(struct cdev *dev, int events, struct thread *td)
477 giant_kqfilter(struct cdev *dev, struct knote *kn)
493 giant_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, int nprot,
511 giant_mmap_single(struct cdev *dev, vm_ooffset_t *offset, vm_size_t size,
529 notify(struct cdev *dev, const char *ev, int flags)
531 static const char prefix[] = "cdev=";
549 notify_create(struct cdev *dev, int flags)
556 notify_destroy(struct cdev *dev)
562 static struct cdev *
563 newdev(struct make_dev_args *args, struct cdev *si)
565 struct cdev *si2;
704 prep_devname(struct cdev *dev, const char *fmt, va_list ap)
768 make_dev_sv(struct make_dev_args *args1, struct cdev **dres,
771 struct cdev *dev, *dev_new;
835 make_dev_s(struct make_dev_args *args, struct cdev **dres,
848 make_dev_credv(int flags, struct cdev **dres, struct cdevsw *devsw, int unit,
865 struct cdev *
869 struct cdev *dev;
882 struct cdev *
886 struct cdev *dev;
899 struct cdev *
903 struct cdev *dev;
919 make_dev_p(int flags, struct cdev **cdev, struct cdevsw *devsw,
926 res = make_dev_credv(flags, cdev, devsw, 0, cr, uid, gid, mode,
937 dev_dependsl(struct cdev *pdev, struct cdev *cdev)
940 cdev->si_parent = pdev;
941 cdev->si_flags |= SI_CHILD;
942 LIST_INSERT_HEAD(&pdev->si_children, cdev, si_siblings);
947 dev_depends(struct cdev *pdev, struct cdev *cdev)
951 dev_dependsl(pdev, cdev);
956 make_dev_alias_v(int flags, struct cdev **cdev, struct cdev *pdev,
959 struct cdev *dev;
991 *cdev = dev;
996 struct cdev *
997 make_dev_alias(struct cdev *pdev, const char *fmt, ...)
999 struct cdev *dev;
1013 make_dev_alias_p(int flags, struct cdev **cdev, struct cdev *pdev,
1020 res = make_dev_alias_v(flags, cdev, pdev, fmt, ap);
1026 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
1027 struct cdev *old_alias, const char *physpath)
1037 *cdev = NULL;
1073 *cdev = old_alias;
1077 ret = make_dev_alias_p(flags, cdev, pdev, "%s", devfspath);
1088 destroy_devl(struct cdev *dev)
1168 /* If cdevsw has no more struct cdev *'s, clean it */
1185 delist_dev_locked(struct cdev *dev)
1188 struct cdev *child;
1214 delist_dev(struct cdev *dev)
1224 destroy_dev(struct cdev *dev)
1234 devtoname(struct cdev *dev)
1275 * Instead we give the drivers these routines which puts the struct cdev *'s
1285 LIST_HEAD(,cdev) head;
1298 struct cdev **dp, int extra)
1301 struct cdev *dev, *ndev, *dl, *de;
1382 * disposed of any softc hung of the struct cdev *'s at this time.
1387 struct cdev *dev;
1423 struct cdev *dev;
1432 ("cdev %p in dev_destroy_tq without CDP_SCHED_DTR", cp));
1451 destroy_dev_sched_cbl(struct cdev *dev, void (*cb)(void *), void *arg)
1472 destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg)
1480 destroy_dev_sched(struct cdev *dev)
1511 DB_SHOW_COMMAND(cdev, db_show_cdev)
1514 struct cdev *dev;
1528 dev = (struct cdev *)addr;