Lines Matching refs:nbits
224 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_start_reader() local
228 atomic_add(nbits, &subpage->readers); in btrfs_subpage_start_reader()
235 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_end_reader() local
241 ASSERT(atomic_read(&subpage->readers) >= nbits); in btrfs_subpage_end_reader()
242 last = atomic_sub_and_test(nbits, &subpage->readers); in btrfs_subpage_end_reader()
277 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_start_writer() local
283 ret = atomic_add_return(nbits, &subpage->writers); in btrfs_subpage_start_writer()
284 ASSERT(ret == nbits); in btrfs_subpage_start_writer()
291 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_end_and_test_writer() local
305 ASSERT(atomic_read(&subpage->writers) >= nbits); in btrfs_subpage_end_and_test_writer()
306 return atomic_sub_and_test(nbits, &subpage->writers); in btrfs_subpage_end_and_test_writer()
347 unsigned int nbits) in bitmap_test_range_all_set() argument
351 found_zero = find_next_zero_bit(addr, start + nbits, start); in bitmap_test_range_all_set()
352 if (found_zero == start + nbits) in bitmap_test_range_all_set()
358 unsigned int nbits) in bitmap_test_range_all_zero() argument
362 found_set = find_next_bit(addr, start + nbits, start); in bitmap_test_range_all_zero()
363 if (found_set == start + nbits) in bitmap_test_range_all_zero()