Lines Matching refs:vhd_sectors_to_bytes
372 n = vhd_sectors_to_bytes(batmap->header.batmap_size); in vhd_checksum_batmap()
632 hdr_end += vhd_sectors_to_bytes(hdr_secs); in vhd_end_of_headers()
637 vhd_sectors_to_bytes(map_secs)); in vhd_end_of_headers()
698 *end = vhd_sectors_to_bytes(max); in vhd_end_of_data()
1130 map_size = vhd_sectors_to_bytes(batmap->header.batmap_size); in vhd_read_batmap_map()
1813 off = vhd_sectors_to_bytes(blk); in vhd_read_bitmap()
1862 off = vhd_sectors_to_bytes(blk + ctx->bm_secs); in vhd_read_block()
1863 size = vhd_sectors_to_bytes(ctx->spb); in vhd_read_block()
2084 map_size = vhd_sectors_to_bytes(b.header.batmap_size); in vhd_write_batmap()
2159 off = vhd_sectors_to_bytes(blk); in vhd_write_bitmap()
2160 size = vhd_sectors_to_bytes(ctx->bm_secs); in vhd_write_bitmap()
2198 off = vhd_sectors_to_bytes(blk + ctx->bm_secs); in vhd_write_block()
2199 size = vhd_sectors_to_bytes(ctx->spb); in vhd_write_block()
2595 vhd_sectors_to_bytes(ctx->batmap.header.batmap_size); in vhd_write_parent_locators()
2728 map_bytes = vhd_sectors_to_bytes(header->batmap_size); in vhd_create_batmap()
2964 err = vhd_seek(ctx, vhd_sectors_to_bytes(sec), SEEK_SET); in __vhd_io_fixed_read()
2968 return vhd_read(ctx, buf, vhd_sectors_to_bytes(secs)); in __vhd_io_fixed_read()
3029 src = data + vhd_sectors_to_bytes(sec); in __vhd_io_dynamic_read_link()
3043 buf += vhd_sectors_to_bytes(cnt); in __vhd_io_dynamic_read_link()
3067 off = lseek(fd, vhd_sectors_to_bytes(sec), SEEK_SET); in __raw_read_link()
3070 filename, vhd_sectors_to_bytes(sec), -errno); in __raw_read_link()
3075 size = vhd_sectors_to_bytes(secs); in __raw_read_link()
3116 memset(buf, 0, vhd_sectors_to_bytes(secs)); in __vhd_io_dynamic_read()
3174 if (vhd_sectors_to_bytes(sec + secs) > ctx->footer.curr_size) in vhd_io_read()
3189 err = vhd_seek(ctx, vhd_sectors_to_bytes(sec), SEEK_SET); in __vhd_io_fixed_write()
3193 return vhd_write(ctx, buf, vhd_sectors_to_bytes(secs)); in __vhd_io_fixed_write()
3224 size = vhd_sectors_to_bytes(ctx->spb + ctx->bm_secs + gap); in __vhd_io_allocate_block()
3254 if (vhd_sectors_to_bytes(sector + secs) > ctx->footer.curr_size) in __vhd_io_dynamic_write()
3281 err = vhd_seek(ctx, vhd_sectors_to_bytes(off), SEEK_SET); in __vhd_io_dynamic_write()
3286 err = vhd_write(ctx, buf, vhd_sectors_to_bytes(cnt)); in __vhd_io_dynamic_write()
3324 buf += vhd_sectors_to_bytes(cnt); in __vhd_io_dynamic_write()
3341 if (vhd_sectors_to_bytes(sec + secs) > ctx->footer.curr_size) in vhd_io_write()