Lines Matching refs:nbits
247 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_start_reader() local
251 atomic_add(nbits, &subpage->readers); in btrfs_subpage_start_reader()
258 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_end_reader() local
264 ASSERT(atomic_read(&subpage->readers) >= nbits); in btrfs_subpage_end_reader()
265 last = atomic_sub_and_test(nbits, &subpage->readers); in btrfs_subpage_end_reader()
300 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_start_writer() local
306 ret = atomic_add_return(nbits, &subpage->writers); in btrfs_subpage_start_writer()
307 ASSERT(ret == nbits); in btrfs_subpage_start_writer()
314 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_end_and_test_writer() local
328 ASSERT(atomic_read(&subpage->writers) >= nbits); in btrfs_subpage_end_and_test_writer()
329 return atomic_sub_and_test(nbits, &subpage->writers); in btrfs_subpage_end_and_test_writer()
370 unsigned int nbits) in bitmap_test_range_all_set() argument
374 found_zero = find_next_zero_bit(addr, start + nbits, start); in bitmap_test_range_all_set()
375 if (found_zero == start + nbits) in bitmap_test_range_all_set()
381 unsigned int nbits) in bitmap_test_range_all_zero() argument
385 found_set = find_next_bit(addr, start + nbits, start); in bitmap_test_range_all_zero()
386 if (found_set == start + nbits) in bitmap_test_range_all_zero()