Lines Matching refs:dev
229 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument
236 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
437 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match() argument
443 static int exact_lock(dev_t dev, void *data) in exact_lock() argument
459 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() argument
461 p->dev = dev; in cdev_add()
463 return kobj_map(cdev_map, dev, count, NULL, exact_match, exact_lock, p); in cdev_add()
466 static void cdev_unmap(dev_t dev, unsigned count) in cdev_unmap() argument
468 kobj_unmap(cdev_map, dev, count); in cdev_unmap()
480 cdev_unmap(p->dev, p->count); in cdev_del()
537 static struct kobject *base_probe(dev_t dev, int *part, void *data) in base_probe() argument
539 if (request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev)) > 0) in base_probe()
541 request_module("char-major-%d", MAJOR(dev)); in base_probe()