Lines Matching full:minor
55 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_release()
215 int minor; in media_devnode_register() local
218 /* Part 1: Find a free minor number */ in media_devnode_register()
220 minor = find_first_zero_bit(media_devnode_nums, MEDIA_NUM_DEVICES); in media_devnode_register()
221 if (minor == MEDIA_NUM_DEVICES) { in media_devnode_register()
223 pr_err("could not get a free minor\n"); in media_devnode_register()
228 set_bit(minor, media_devnode_nums); in media_devnode_register()
231 devnode->minor = minor; in media_devnode_register()
236 devnode->dev.devt = MKDEV(MAJOR(media_dev_t), devnode->minor); in media_devnode_register()
240 dev_set_name(&devnode->dev, "media%d", devnode->minor); in media_devnode_register()
246 kobject_set_name(&devnode->cdev.kobj, "media%d", devnode->minor); in media_devnode_register()
255 /* Part 4: Activate this minor. The char device can now be used. */ in media_devnode_register()
262 clear_bit(devnode->minor, media_devnode_nums); in media_devnode_register()
284 /* Delete the cdev on this minor as well */ in media_devnode_unregister()