Lines Matching refs:bits
141 unsigned long bits[256 / BITS_PER_LONG]; member
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()
215 was_set = __test_and_clear_bit (major, list->bits); in devfs_dealloc_major()
225 unsigned long bits[256 / BITS_PER_LONG]; member
276 minor = find_first_zero_bit (entry->bits, 256); in devfs_alloc_devnum()
278 __set_bit (minor, entry->bits); in devfs_alloc_devnum()
297 __set_bit (0, entry->bits); in devfs_alloc_devnum()
341 was_set = __test_and_clear_bit (minor, entry->bits); in devfs_dealloc_devnum()
379 void *bits; in devfs_alloc_unique_number() local
383 if ( ( bits = vmalloc (length) ) == NULL ) in devfs_alloc_unique_number()
388 if (space->bits != NULL) in devfs_alloc_unique_number()
390 memcpy (bits, space->bits, space->length); in devfs_alloc_unique_number()
391 vfree (space->bits); in devfs_alloc_unique_number()
394 space->bits = bits; in devfs_alloc_unique_number()
395 memset (bits + space->length, 0, length - space->length); in devfs_alloc_unique_number()
398 number = find_first_zero_bit (space->bits, space->length << 3); in devfs_alloc_unique_number()
400 __set_bit (number, space->bits); in devfs_alloc_unique_number()
421 was_set = __test_and_clear_bit (number, space->bits); in devfs_dealloc_unique_number()