Lines Matching refs:dev
214 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument
221 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region()
435 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match() argument
441 static int exact_lock(dev_t dev, void *data) in exact_lock() argument
457 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() argument
461 p->dev = dev; in cdev_add()
464 error = kobj_map(cdev_map, dev, count, NULL, in cdev_add()
474 static void cdev_unmap(dev_t dev, unsigned count) in cdev_unmap() argument
476 kobj_unmap(cdev_map, dev, count); in cdev_unmap()
488 cdev_unmap(p->dev, p->count); in cdev_del()
551 static struct kobject *base_probe(dev_t dev, int *part, void *data) in base_probe() argument
553 if (request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev)) > 0) in base_probe()
555 request_module("char-major-%d", MAJOR(dev)); in base_probe()