• Home
  • Raw
  • Download

Lines Matching refs:bit

139 	unsigned long bit;  in udf_bitmap_free_blocks()  local
161 bit = block % (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
166 if (bit + count > (sb->s_blocksize << 3)) { in udf_bitmap_free_blocks()
167 overflow = bit + count - (sb->s_blocksize << 3); in udf_bitmap_free_blocks()
176 if (udf_set_bit(bit + i, bh->b_data)) { in udf_bitmap_free_blocks()
177 udf_debug("bit %lu already set\n", bit + i); in udf_bitmap_free_blocks()
179 ((__u8 *)bh->b_data)[(bit + i) >> 3]); in udf_bitmap_free_blocks()
201 int bit, block, block_group; in udf_bitmap_prealloc_blocks() local
223 bit = block % (sb->s_blocksize << 3); in udf_bitmap_prealloc_blocks()
225 while (bit < (sb->s_blocksize << 3) && block_count > 0) { in udf_bitmap_prealloc_blocks()
226 if (!udf_clear_bit(bit, bh->b_data)) in udf_bitmap_prealloc_blocks()
230 bit++; in udf_bitmap_prealloc_blocks()
247 int newbit, bit = 0; in udf_bitmap_new_block() local
275 bit = block % (sb->s_blocksize << 3); in udf_bitmap_new_block()
276 if (udf_test_bit(bit, bh->b_data)) in udf_bitmap_new_block()
279 end_goal = (bit + 63) & ~63; in udf_bitmap_new_block()
280 bit = udf_find_next_one_bit(bh->b_data, end_goal, bit); in udf_bitmap_new_block()
281 if (bit < end_goal) in udf_bitmap_new_block()
284 ptr = memscan((char *)bh->b_data + (bit >> 3), 0xFF, in udf_bitmap_new_block()
285 sb->s_blocksize - ((bit + 7) >> 3)); in udf_bitmap_new_block()
288 bit = newbit; in udf_bitmap_new_block()
293 sb->s_blocksize << 3, bit); in udf_bitmap_new_block()
295 bit = newbit; in udf_bitmap_new_block()
314 bit = (ptr - ((char *)bh->b_data)) << 3; in udf_bitmap_new_block()
318 bit = udf_find_next_one_bit(bh->b_data, in udf_bitmap_new_block()
321 if (bit < sb->s_blocksize << 3) in udf_bitmap_new_block()
329 if (bit < sb->s_blocksize << 3) in udf_bitmap_new_block()
332 bit = udf_find_next_one_bit(bh->b_data, sb->s_blocksize << 3, in udf_bitmap_new_block()
334 if (bit >= sb->s_blocksize << 3) { in udf_bitmap_new_block()
341 while (i < 7 && bit > (group_start << 3) && in udf_bitmap_new_block()
342 udf_test_bit(bit - 1, bh->b_data)) { in udf_bitmap_new_block()
344 --bit; in udf_bitmap_new_block()
348 newblock = bit + (block_group << (sb->s_blocksize_bits + 3)) - in udf_bitmap_new_block()
362 if (!udf_clear_bit(bit, bh->b_data)) { in udf_bitmap_new_block()
363 udf_debug("bit already cleared for block %d\n", bit); in udf_bitmap_new_block()