Lines Matching refs:bitmap
180 static void cbuf_swap(struct cbufhead* chdr, uint8_t* bitmap, size_t start_1, size_t start_2, size_… in cbuf_swap() argument
191 if (bitmap) { in cbuf_swap()
192 bmp_swap(bitmap, start_1, start_2, length); in cbuf_swap()
196 void cbuf_contiguify(struct cbufhead* chdr, uint8_t* bitmap) { in cbuf_contiguify() argument
255 cbuf_swap(chdr, bitmap, start_idx, move_to_start_idx, distance_from_start); in cbuf_contiguify()
259 cbuf_swap(chdr, bitmap, start_idx, move_to_start_idx, distance_to_end); in cbuf_contiguify()
286 … offset, const void* data, size_t data_offset, size_t numbytes, uint8_t* bitmap, size_t* firstinde… in cbuf_reass_write() argument
301 if (bitmap) { in cbuf_reass_write()
302 bmp_setrange(bitmap, start_index, numbytes); in cbuf_reass_write()
308 if (bitmap) { in cbuf_reass_write()
309 bmp_setrange(bitmap, start_index, bytes_to_end); in cbuf_reass_write()
310 bmp_setrange(bitmap, 0, numbytes - bytes_to_end); in cbuf_reass_write()
319 size_t cbuf_reass_merge(struct cbufhead* chdr, size_t numbytes, uint8_t* bitmap) { in cbuf_reass_merge() argument
326 if (bitmap) { in cbuf_reass_merge()
329 bmp_clrrange(bitmap, old_w, numbytes); in cbuf_reass_merge()
331 bmp_clrrange(bitmap, old_w, bytes_to_end); in cbuf_reass_merge()
332 bmp_clrrange(bitmap, 0, numbytes - bytes_to_end); in cbuf_reass_merge()
339 size_t cbuf_reass_count_set(struct cbufhead* chdr, size_t offset, uint8_t* bitmap, size_t limit) { in cbuf_reass_count_set() argument
343 until_end = bmp_countset(bitmap, bitmap_size, offset, limit); in cbuf_reass_count_set()
350 return until_end + bmp_countset(bitmap, bitmap_size, 0, limit < offset ? limit : offset); in cbuf_reass_count_set()