Lines Matching refs:bitarray
38 char *bitarray; member
61 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data()
84 memset(bp->bitarray, 0, size); in ba_new_bmap()
96 if (bp->bitarray) { in ba_free_bmap()
97 ext2fs_free_mem (&bp->bitarray); in ba_free_bmap()
98 bp->bitarray = 0; in ba_free_bmap()
119 memcpy (dest_bp->bitarray, src_bp->bitarray, size); in ba_copy_bmap()
141 ext2fs_clear_bit64(bitno - bmap->start, bp->bitarray); in ba_resize_bmap()
152 retval = ext2fs_resize_mem(size, new_size, &bp->bitarray); in ba_resize_bmap()
157 memset(bp->bitarray + size, 0, new_size - size); in ba_resize_bmap()
170 return ext2fs_set_bit64(bitno - bitmap->start, bp->bitarray); in ba_mark_bmap()
178 return ext2fs_clear_bit64(bitno - bitmap->start, bp->bitarray); in ba_unmark_bmap()
186 return ext2fs_test_bit64(bitno - bitmap->start, bp->bitarray); in ba_test_bmap()
197 ext2fs_fast_set_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_mark_bmap_extent()
208 ext2fs_fast_clear_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_unmark_bmap_extent()
224 ADDR = bp->bitarray; in ba_test_clear_bmap_extent()
290 memcpy (bp->bitarray + (start >> 3), in, (num + 7) >> 3); in ba_set_bmap_range()
300 memcpy (out, bp->bitarray + (start >> 3), (num + 7) >> 3); in ba_get_bmap_range()
309 memset(bp->bitarray, 0, in ba_clear_bmap()
339 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()
350 pos = ((unsigned char *)bp->bitarray) + (bitpos >> 3); in ba_find_first_zero()
390 if (!ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_zero()
413 if (ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_set()
424 pos = ((unsigned char *)bp->bitarray) + (bitpos >> 3); in ba_find_first_set()
464 if (ext2fs_test_bit64(bitpos, bp->bitarray)) { in ba_find_first_set()