Searched defs:bitmap (Results 1 - 3 of 3) sorted by path

/system/extras/ext4_utils/
H A Dallocate.c180 static int bitmap_set_bit(u8 *bitmap, u32 bit) argument
182 if (bitmap[bit / 8] & 1 << (bit % 8))
185 bitmap[bit / 8] |= 1 << (bit % 8);
189 static int bitmap_set_8_bits(u8 *bitmap, u32 bit) argument
191 int ret = bitmap[bit / 8];
192 bitmap[bit / 8] = 0xFF;
H A Dext2simg.c109 static int bitmap_get_bit(u8 *bitmap, u32 bit) argument
111 if (bitmap[bit / 8] & 1 << (bit % 8))
127 critical_error("failed to allocate block bitmap");
140 critical_error_errno("failed to seek to block group bitmap %d", i);
144 critical_error_errno("failed to read block group bitmap %d", i);
146 critical_error("failed to read all of block group bitmap %d", i);
H A Dext4fixup.c324 static int bitmap_get_bit(u8 *bitmap, u32 bit) argument
326 if (bitmap[bit / 8] & (1 << (bit % 8)))
332 static void bitmap_clear_bit(u8 *bitmap, u32 bit) argument
334 bitmap[bit / 8] &= ~(1 << (bit % 8));
346 * new_inodes_per_group, retrieve the inode bitmap, and make sure
362 printf("Warning: updated inode bitmap for block group %d\n", bg_num);

Completed in 682 milliseconds