Searched refs:bitmap (Results 1 - 3 of 3) sorted by relevance

/system/extras/ext4_utils/
H A Dext2simg.c108 static int bitmap_get_bit(u8 *bitmap, u32 bit) argument
110 if (bitmap[bit / 8] & 1 << (bit % 8))
126 critical_error("failed to allocate block bitmap");
139 critical_error_errno("failed to seek to block group bitmap %d", i);
143 critical_error_errno("failed to read block group bitmap %d", i);
145 critical_error("failed to read all of block group bitmap %d", i);
H A Dext4fixup.c323 static int bitmap_get_bit(u8 *bitmap, u32 bit) argument
325 if (bitmap[bit / 8] & (1 << (bit % 8)))
331 static void bitmap_clear_bit(u8 *bitmap, u32 bit) argument
333 bitmap[bit / 8] &= ~(1 << (bit % 8));
345 * new_inodes_per_group, retrieve the inode bitmap, and make sure
361 printf("Warning: updated inode bitmap for block group %d\n", bg_num);
H A Dallocate.c190 static int bitmap_set_bit(u8 *bitmap, u32 bit) argument
192 if (bitmap[bit / 8] & 1 << (bit % 8))
195 bitmap[bit / 8] |= 1 << (bit % 8);
199 static int bitmap_set_8_bits(u8 *bitmap, u32 bit) argument
201 int ret = bitmap[bit / 8];
202 bitmap[bit / 8] = 0xFF;

Completed in 49 milliseconds