Home
last modified time | relevance | path

Searched refs:SECTOR_SIZE (Results 1 – 5 of 5) sorted by relevance

/qemu/block/
H A Dvdi.c90 #define SECTOR_SIZE 512ULL macro
413 if (header.disk_size % SECTOR_SIZE != 0) { in vdi_open()
418 header.disk_size = ROUND_UP(header.disk_size, SECTOR_SIZE); in vdi_open()
431 } else if (header.offset_bmap % SECTOR_SIZE != 0) { in vdi_open()
437 } else if (header.offset_data % SECTOR_SIZE != 0) { in vdi_open()
443 } else if (header.sector_size != SECTOR_SIZE) { in vdi_open()
445 " is not %llu)", header.sector_size, SECTOR_SIZE); in vdi_open()
478 bs->total_sectors = header.disk_size / SECTOR_SIZE; in vdi_open()
481 s->bmap_sector = header.offset_bmap / SECTOR_SIZE; in vdi_open()
485 bmap_size = DIV_ROUND_UP(bmap_size, SECTOR_SIZE); in vdi_open()
[all …]
H A Dvmdk.c263 #define SECTOR_SIZE 512 macro
264 #define DESC_SIZE (20 * SECTOR_SIZE) /* 20 sectors of 512 bytes each */
835 assert(sizeof(const_header) == SECTOR_SIZE); in vmdk_open_se_sparse()
852 assert(sizeof(volatile_header) == SECTOR_SIZE); in vmdk_open_se_sparse()
854 ret = bdrv_pread(file, const_header.volatile_header_offset * SECTOR_SIZE, in vmdk_open_se_sparse()
872 const_header.grain_dir_offset * SECTOR_SIZE, in vmdk_open_se_sparse()
875 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse()
877 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse()
1615 offset -= (extent->end_sector - extent->sectors) * SECTOR_SIZE; in get_cluster_offset()
1640 l2_offset_u64 * l2_size_bytes / SECTOR_SIZE; in get_cluster_offset()
[all...]
/qemu/tests/qemu-iotests/
H A Dfat16.py21 SECTOR_SIZE = 512 variable
252 current_sector = start_sector + (i // SECTOR_SIZE)
253 current_offset = i % SECTOR_SIZE
296 self.fats_dirty_sectors.add(fat_offset // SECTOR_SIZE)
303 data = self.fats[sector * SECTOR_SIZE : (sector + 1) * SECTOR_SIZE]
446 + (offset // SECTOR_SIZE))
447 new_entry.offset = offset % SECTOR_SIZE
/qemu/hw/arm/
H A Domap_sx1.c88 #define SECTOR_SIZE (128 * KiB) macro
155 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init()
174 SECTOR_SIZE, 4, 0, 0, 0, 0, 0); in sx1_init()
/qemu/tests/qemu-iotests/tests/
H A Dvvfat34 SECTOR_SIZE = 512 variable
120 rows = num * SECTOR_SIZE // 16
128 self.assertEqual(len(bytes_content), num * SECTOR_SIZE)
139 self.assertEqual(len(data) % SECTOR_SIZE, 0)