Lines Matching refs:major
122 unsigned int major, unsigned int minor_start, in devfs_register_series() argument
131 devfs_register (dir, devname, flags, major, minor_start + count, in devfs_register_series()
186 int major; in devfs_alloc_major() local
191 major = find_first_zero_bit (list->bits, 256); in devfs_alloc_major()
192 if (major < 256) __set_bit (major, list->bits); in devfs_alloc_major()
193 else major = -1; in devfs_alloc_major()
195 return major; in devfs_alloc_major()
207 void devfs_dealloc_major (char type, int major) in devfs_dealloc_major() argument
212 if (major < 0) return; in devfs_dealloc_major()
215 was_set = __test_and_clear_bit (major, list->bits); in devfs_dealloc_major()
217 if (!was_set) PRINTK ("(): major %d was already free\n", major); in devfs_dealloc_major()
224 int major; member
280 return mk_kdev (entry->major, minor); in devfs_alloc_devnum()
290 if ( ( entry->major = devfs_alloc_major (type) ) < 0 ) in devfs_alloc_devnum()
302 return mk_kdev (entry->major, 0); in devfs_alloc_devnum()
317 int major, minor; in devfs_dealloc_devnum() local
333 major = major (devnum); in devfs_dealloc_devnum()
340 if (entry->major != major) continue; in devfs_dealloc_devnum()