Lines Matching refs:bp

44 	ext2fs_ba_private bp;  in ba_alloc_private_data()  local
54 retval = ext2fs_get_mem(sizeof (ext2fs_ba_private), &bp); in ba_alloc_private_data()
60 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data()
62 ext2fs_free_mem(&bp); in ba_alloc_private_data()
63 bp = 0; in ba_alloc_private_data()
66 bitmap->private = (void *) bp; in ba_alloc_private_data()
73 ext2fs_ba_private bp; in ba_new_bmap() local
81 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap()
83 memset(bp->bitarray, 0, size); in ba_new_bmap()
90 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() local
92 if (!bp) in ba_free_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()
99 ext2fs_free_mem (&bp); in ba_free_bmap()
100 bp = 0; in ba_free_bmap()
126 ext2fs_ba_private bp = (ext2fs_ba_private) bmap->private; in ba_resize_bmap() local
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()
166 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_mark_bmap() local
169 return ext2fs_set_bit64(bitno - bitmap->start, bp->bitarray); in ba_mark_bmap()
174 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_unmark_bmap() local
177 return ext2fs_clear_bit64(bitno - bitmap->start, bp->bitarray); in ba_unmark_bmap()
182 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_test_bmap() local
185 return ext2fs_test_bit64(bitno - bitmap->start, bp->bitarray); in ba_test_bmap()
191 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_mark_bmap_extent() local
196 ext2fs_fast_set_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_mark_bmap_extent()
202 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_unmark_bmap_extent() local
207 ext2fs_fast_clear_bit64(bitno + i - bitmap->start, bp->bitarray); in ba_unmark_bmap_extent()
213 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_test_clear_bmap_extent() local
223 ADDR = bp->bitarray; in ba_test_clear_bmap_extent()
287 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_set_bmap_range() local
289 memcpy (bp->bitarray + (start >> 3), in, (num + 7) >> 3); in ba_set_bmap_range()
297 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_get_bmap_range() local
299 memcpy (out, bp->bitarray + (start >> 3), (num + 7) >> 3); in ba_get_bmap_range()
306 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_clear_bmap() local
308 memset(bp->bitarray, 0, in ba_clear_bmap()
323 ext2fs_ba_private bp = (ext2fs_ba_private)bitmap->private; in ba_find_first_zero() local
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()