Lines Matching refs:bitarray
37 char *bitarray; member
60 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data()
83 memset(bp->bitarray, 0, size); in ba_new_bmap()
95 if (bp->bitarray) { in ba_free_bmap()
96 ext2fs_free_mem (&bp->bitarray); in ba_free_bmap()
97 bp->bitarray = 0; in ba_free_bmap()
118 memcpy (dest_bp->bitarray, src_bp->bitarray, size); in ba_copy_bmap()
140 ext2fs_clear_bit64(bitno - bmap->start, bp->bitarray); in ba_resize_bmap()
151 retval = ext2fs_resize_mem(size, new_size, &bp->bitarray); in ba_resize_bmap()
156 memset(bp->bitarray + size, 0, new_size - size); in ba_resize_bmap()
169 return ext2fs_set_bit64(bitno - bitmap->start, bp->bitarray); in ba_mark_bmap()
177 return ext2fs_clear_bit64(bitno - bitmap->start, bp->bitarray); in ba_unmark_bmap()
185 return ext2fs_test_bit64(bitno - bitmap->start, bp->bitarray); in ba_test_bmap()
196 ext2fs_fast_set_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_mark_bmap_extent()
207 ext2fs_fast_clear_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_unmark_bmap_extent()
223 ADDR = bp->bitarray; in ba_test_clear_bmap_extent()
289 memcpy (bp->bitarray + (start >> 3), in, (num + 7) >> 3); in ba_set_bmap_range()
299 memcpy (out, bp->bitarray + (start >> 3), (num + 7) >> 3); in ba_get_bmap_range()
308 memset(bp->bitarray, 0, in ba_clear_bmap()
338 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()
349 pos = ((unsigned char *)bp->bitarray) + (bitpos >> 3); in ba_find_first_zero()
389 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()