Lines Matching refs:cdev
72 #include <linux/cdev.h>
105 #undef cdev
758 linux_dev_fdopen(struct cdev *dev, int fflags, struct thread *td,
1570 if (filp->f_cdev == NULL || filp->f_cdev->cdev == NULL) {
1575 p = devtoname(filp->f_cdev->cdev);
2157 struct linux_cdev *cdev;
2160 cdev = container_of(kobj, struct linux_cdev, kobj);
2162 linux_destroy_dev(cdev);
2163 linux_cdev_deref(cdev);
2170 struct linux_cdev *cdev;
2173 cdev = container_of(kobj, struct linux_cdev, kobj);
2175 linux_destroy_dev(cdev);
2183 if (ldev->cdev == NULL)
2191 destroy_dev(ldev->cdev);
2192 ldev->cdev = NULL;
2384 struct cdev *cdev;
2387 LIST_FOREACH(cdev, &linuxcdevsw.d_devs, si_list) {
2388 struct linux_cdev *ldev = cdev->si_drv1;
2396 return (cdev != NULL ? cdev->si_drv1 : NULL);
2404 struct linux_cdev *cdev;
2409 cdev = cdev_alloc();
2410 cdev->ops = fops;
2411 kobject_set_name(&cdev->kobj, name);
2413 ret = cdev_add(cdev, makedev(major, i), 1);
2426 struct linux_cdev *cdev;
2431 cdev = cdev_alloc();
2432 cdev->ops = fops;
2433 kobject_set_name(&cdev->kobj, name);
2435 ret = cdev_add_ext(cdev, makedev(major, i), uid, gid, mode);