Lines Matching defs:minor
99 * This function allocates a new binder_device and reserves a new minor
114 int minor, ret;
128 /* Reserve new minor number for the new device. */
131 minor = ida_alloc_max(&binderfs_minors,
136 minor = -ENOSPC;
137 if (minor < 0) {
140 return minor;
153 inode->i_ino = minor + INODE_OFFSET;
156 MKDEV(MAJOR(binderfs_dev), minor));
173 device->miscdev.minor = minor;
177 req->minor = minor;
215 ida_free(&binderfs_minors, minor);
269 ida_free(&binderfs_minors, device->miscdev.minor);
393 int minor, ret;
420 /* Reserve a new minor number for the new device. */
422 minor = ida_alloc_max(&binderfs_minors,
427 if (minor < 0) {
428 ret = minor;
435 MKDEV(MAJOR(binderfs_dev), minor));
442 device->miscdev.minor = minor;