Searched refs:needed_count (Results 1 – 1 of 1) sorted by relevance
1143 find_available_slots(unsigned used_mask, unsigned needed_count) in find_available_slots() argument1145 unsigned needed_mask = (1 << needed_count) - 1; in find_available_slots()1146 const int max_bit_to_test = (8 * sizeof(used_mask)) - needed_count; in find_available_slots()1151 if ((needed_count == 0) || (max_bit_to_test < 0) || (max_bit_to_test > 32)) in find_available_slots()