Lines Matching refs:cluster_bytes
1468 int64_t cluster_bytes; in get_whole_cluster() local
1473 cluster_bytes = extent->cluster_sectors << BDRV_SECTOR_BITS; in get_whole_cluster()
1474 offset = QEMU_ALIGN_DOWN(offset, cluster_bytes); in get_whole_cluster()
1475 whole_grain = qemu_blockalign(bs, cluster_bytes); in get_whole_cluster()
1480 memset(whole_grain + skip_end_bytes, 0, cluster_bytes - skip_end_bytes); in get_whole_cluster()
1483 assert(skip_end_bytes <= cluster_bytes); in get_whole_cluster()
1512 if (skip_end_bytes < cluster_bytes) { in get_whole_cluster()
1517 cluster_bytes - skip_end_bytes, in get_whole_cluster()
1526 cluster_bytes - skip_end_bytes, in get_whole_cluster()
1926 int cluster_bytes, buf_bytes; in vmdk_read_extent() local
1944 cluster_bytes = extent->cluster_sectors * 512; in vmdk_read_extent()
1946 buf_bytes = cluster_bytes * 2; in vmdk_read_extent()
1948 uncomp_buf = g_malloc(cluster_bytes); in vmdk_read_extent()
1956 buf_len = cluster_bytes; in vmdk_read_extent()
1957 data_len = cluster_bytes; in vmdk_read_extent()