Lines Matching refs:baseminor
37 unsigned int baseminor; member
97 __register_chrdev_region(unsigned int major, unsigned int baseminor, in __register_chrdev_region() argument
110 if (minorct > MINORMASK + 1 - baseminor) { in __register_chrdev_region()
112 name, baseminor, baseminor + minorct - 1, 0, MINORMASK); in __register_chrdev_region()
141 if (curr->baseminor + curr->minorct <= baseminor) in __register_chrdev_region()
144 if (curr->baseminor >= baseminor + minorct) in __register_chrdev_region()
151 cd->baseminor = baseminor; in __register_chrdev_region()
172 __unregister_chrdev_region(unsigned major, unsigned baseminor, int minorct) in __unregister_chrdev_region() argument
180 (*cp)->baseminor == baseminor && in __unregister_chrdev_region()
236 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument
240 cd = __register_chrdev_region(0, baseminor, count, name); in alloc_chrdev_region()
243 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
268 int __register_chrdev(unsigned int major, unsigned int baseminor, in __register_chrdev() argument
276 cd = __register_chrdev_region(major, baseminor, count, name); in __register_chrdev()
288 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev()
298 kfree(__unregister_chrdev_region(cd->major, baseminor, count)); in __register_chrdev()
335 void __unregister_chrdev(unsigned int major, unsigned int baseminor, in __unregister_chrdev() argument
340 cd = __unregister_chrdev_region(major, baseminor, count); in __unregister_chrdev()