Lines Matching refs:block_offset
434 * blocks to read. The input values (block_offset, block_count) refer
451 shadow_map_read(shadow_map_t * map, u_long block_offset, u_long block_count,
457 if (block_offset >= map->file_size_blocks
458 || (block_offset + block_count) > map->file_size_blocks) {
460 block_offset, block_count, map->file_size_blocks);
463 n_blocks = bitmap_get(map->block_bitmap, block_offset, block_count,
467 *incr_block_offset = block_offset;
473 mapped_band = map->bands[shadow_map_block_to_band(map, block_offset)];
475 + (block_offset % map->blocks_per_band);
477 = shadow_map_contiguous(map, block_offset, block_count, FALSE);
478 *incr_block_count = band_limit - block_offset;
491 * blocks to write. The input values (block_offset, block_count) refer
503 shadow_map_write(shadow_map_t * map, u_long block_offset,
511 if (block_offset >= map->file_size_blocks
512 || (block_offset + block_count) > map->file_size_blocks) {
514 block_offset, block_count, map->file_size_blocks);
518 band_limit = shadow_map_contiguous(map, block_offset, block_count, TRUE);
519 mapped_band = map->bands[shadow_map_block_to_band(map, block_offset)];
521 + (block_offset % map->blocks_per_band);
522 *incr_block_count = band_limit - block_offset;
525 bitmap_set(map->block_bitmap, block_offset, *incr_block_count);
535 shadow_map_is_written(shadow_map_t * map, u_long block_offset)
539 b = bitmap_offset(block_offset);