Lines Matching defs:bit_pos
156 u64 bit_pos = -1;
163 bit_pos = find_first_bit(lam, num_bits);
167 __func__, bit_pos, bali->lun_alloc_map[i], i);
171 clear_bit(bit_pos, lam);
175 return bit_pos;
186 u64 bit_pos = -1;
203 bit_pos = find_free_range(bali->free_curr_idx,
205 if (bit_pos == -1) {
206 bit_pos = find_free_range(bali->free_low_idx,
209 if (bit_pos == -1) {
217 if (bit_pos == HIBIT)
224 ((bit_word * BITS_PER_LONG) + bit_pos), ba_lun->lun_id,
227 return (u64) ((bit_word * BITS_PER_LONG) + bit_pos);
239 int idx = 0, bit_pos = 0;
242 bit_pos = aun % BITS_PER_LONG;
244 if (test_bit(bit_pos, (ulong *)&bali->lun_alloc_map[idx]))
259 int idx = 0, bit_pos = 0;
283 bit_pos = to_free % BITS_PER_LONG;
285 set_bit(bit_pos, (ulong *)&bali->lun_alloc_map[idx]);
293 pr_debug("%s: Successfully freed AU bit_pos=%x bit map index=%x "
294 "lun_id=%016llx free_aun_cnt=%llx\n", __func__, bit_pos, idx,