Lines Matching refs:bit_pos
159 u64 bit_pos = -1; in find_free_range() local
166 bit_pos = find_first_bit(lam, num_bits); in find_free_range()
170 __func__, bit_pos, bali->lun_alloc_map[i], in find_free_range()
175 clear_bit(bit_pos, lam); in find_free_range()
179 return bit_pos; in find_free_range()
190 u64 bit_pos = -1; in ba_alloc() local
207 bit_pos = find_free_range(bali->free_curr_idx, in ba_alloc()
209 if (bit_pos == -1) { in ba_alloc()
210 bit_pos = find_free_range(bali->free_low_idx, in ba_alloc()
213 if (bit_pos == -1) { in ba_alloc()
221 if (bit_pos == HIBIT) in ba_alloc()
228 ((bit_word * BITS_PER_LONG) + bit_pos), ba_lun->lun_id, in ba_alloc()
231 return (u64) ((bit_word * BITS_PER_LONG) + bit_pos); in ba_alloc()
243 int idx = 0, bit_pos = 0; in validate_alloc() local
246 bit_pos = aun % BITS_PER_LONG; in validate_alloc()
248 if (test_bit(bit_pos, (ulong *)&bali->lun_alloc_map[idx])) in validate_alloc()
263 int idx = 0, bit_pos = 0; in ba_free() local
287 bit_pos = to_free % BITS_PER_LONG; in ba_free()
289 set_bit(bit_pos, (ulong *)&bali->lun_alloc_map[idx]); in ba_free()
298 "lun_id %llX, free_aun_cnt = %llX\n", __func__, bit_pos, idx, in ba_free()