Searched refs:nelems (Results 1 – 1 of 1) sorted by relevance
45 static void set_bitmap_padding(uint8_t *bitmap, uint32_t nelems, struct ext2_cfg *cfg) in set_bitmap_padding() argument47 uint32_t used_bytes = nelems / 8 + (nelems % 8 != 0); in set_bitmap_padding()49 LOG_DBG("Set bitmap padding: %d bytes", nelems); in set_bitmap_padding()53 if (nelems % 8) { in set_bitmap_padding()54 bitmap[used_bytes - 1] = (0xff << (nelems % 8)) & 0xff; in set_bitmap_padding()55 LOG_DBG("last byte: %02x", (0xff << (nelems % 8)) & 0xff); in set_bitmap_padding()