Lines Matching refs:BDRV_SECTOR_SIZE

1055                              * BDRV_SECTOR_SIZE));  in vmdk_open_vmdk4()
1736 ret = get_whole_cluster(bs, extent, cluster_sector * BDRV_SECTOR_SIZE, in get_cluster_offset()
1771 uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE; in vmdk_find_offset_in_cluster()
1774 (extent->end_sector - extent->sectors) * BDRV_SECTOR_SIZE; in vmdk_find_offset_in_cluster()
1824 n = extent->cluster_sectors * BDRV_SECTOR_SIZE - index_in_cluster; in vmdk_co_block_status()
1890 write_end_sector = DIV_ROUND_UP(write_offset + n_bytes, BDRV_SECTOR_SIZE); in vmdk_write_extent()
2002 n_bytes = MIN(bytes, extent->cluster_sectors * BDRV_SECTOR_SIZE in vmdk_co_preadv()
2071 if (DIV_ROUND_UP(offset, BDRV_SECTOR_SIZE) > bs->total_sectors) { in vmdk_pwritev()
2087 n_bytes = MIN(bytes, extent->cluster_sectors * BDRV_SECTOR_SIZE in vmdk_pwritev()
2113 n_bytes >= extent->cluster_sectors * BDRV_SECTOR_SIZE) { in vmdk_pwritev()
2114 n_bytes = extent->cluster_sectors * BDRV_SECTOR_SIZE; in vmdk_pwritev()
2185 length = QEMU_ALIGN_UP(length, BDRV_SECTOR_SIZE); in vmdk_co_pwritev_compressed()
2242 header.capacity = filesize / BDRV_SECTOR_SIZE; in vmdk_init_extent()
2244 header.num_gtes_per_gt = BDRV_SECTOR_SIZE; in vmdk_init_extent()
2246 grains = DIV_ROUND_UP(filesize / BDRV_SECTOR_SIZE, header.granularity); in vmdk_init_extent()
2248 BDRV_SECTOR_SIZE); in vmdk_init_extent()
2250 gd_sectors = DIV_ROUND_UP(gt_count * sizeof(uint32_t), BDRV_SECTOR_SIZE); in vmdk_init_extent()
2296 gd_buf_size = gd_sectors * BDRV_SECTOR_SIZE; in vmdk_init_extent()
2302 ret = blk_co_pwrite(blk, le64_to_cpu(header.rgd_offset) * BDRV_SECTOR_SIZE, in vmdk_init_extent()
2314 ret = blk_co_pwrite(blk, le64_to_cpu(header.gd_offset) * BDRV_SECTOR_SIZE, in vmdk_init_extent()
2420 DIV_ROUND_UP(size, BDRV_SECTOR_SIZE), basename); in vmdk_desc_add_extent()
2617 (int64_t)(63 * number_heads * BDRV_SECTOR_SIZE), in vmdk_co_do_create()
2740 BDRV_SECTOR_SIZE); in vmdk_co_create_opts()
2868 if (!QEMU_IS_ALIGNED(opts->size, BDRV_SECTOR_SIZE)) { in vmdk_co_create()
2945 .virtual_size = extent->sectors * BDRV_SECTOR_SIZE, in vmdk_get_extent_info()
2948 .cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE, in vmdk_get_extent_info()