Lines Matching refs:instances

173 static struct instance_tracker instances;  variable
1424 if (instance >= instances.bit_count) { in release_instance()
1427 instance, instances.bit_count); in release_instance()
1428 } else if (test_bit(instance, instances.words) == 0) { in release_instance()
1431 __clear_bit(instance, instances.words); in release_instance()
1432 instances.count -= 1; in release_instance()
1532 unsigned int new_count = max(instances.bit_count + BIT_COUNT_INCREMENT, in grow_bit_array()
1537 result = vdo_reallocate_memory(instances.words, in grow_bit_array()
1538 get_bit_array_size(instances.bit_count), in grow_bit_array()
1544 instances.bit_count = new_count; in grow_bit_array()
1545 instances.words = new_words; in grow_bit_array()
1563 if (instances.count >= instances.bit_count) { in allocate_instance()
1573 instance = find_next_zero_bit(instances.words, instances.bit_count, in allocate_instance()
1574 instances.next); in allocate_instance()
1575 if (instance >= instances.bit_count) { in allocate_instance()
1577 instance = find_first_zero_bit(instances.words, instances.bit_count); in allocate_instance()
1578 result = VDO_ASSERT(instance < instances.bit_count, in allocate_instance()
1584 __set_bit(instance, instances.words); in allocate_instance()
1585 instances.count++; in allocate_instance()
1586 instances.next = instance + 1; in allocate_instance()
2884 VDO_ASSERT_LOG_ONLY(instances.count == 0, in vdo_module_destroy()
2886 instances.count); in vdo_module_destroy()
2887 vdo_free(instances.words); in vdo_module_destroy()
2888 memset(&instances, 0, sizeof(struct instance_tracker)); in vdo_module_destroy()