| /openbmc/qemu/block/ |
| H A D | vdi.c | 90 #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 D | vmdk.c | 263 #define SECTOR_SIZE 512 macro 264 #define DESC_SIZE (20 * SECTOR_SIZE) /* 20 sectors of 512 bytes each */ 833 assert(sizeof(const_header) == SECTOR_SIZE); in vmdk_open_se_sparse() 850 assert(sizeof(volatile_header) == SECTOR_SIZE); in vmdk_open_se_sparse() 852 ret = bdrv_pread(file, const_header.volatile_header_offset * SECTOR_SIZE, in vmdk_open_se_sparse() 870 const_header.grain_dir_offset * SECTOR_SIZE, in vmdk_open_se_sparse() 873 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse() 875 SECTOR_SIZE / sizeof(uint64_t), in vmdk_open_se_sparse() 1607 offset -= (extent->end_sector - extent->sectors) * SECTOR_SIZE; in get_cluster_offset() 1632 l2_offset_u64 * l2_size_bytes / SECTOR_SIZE; in get_cluster_offset() [all …]
|
| /openbmc/qemu/hw/arm/ |
| H A D | omap_sx1.c | 88 #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()
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | fat16.py | 21 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
|
| /openbmc/u-boot/include/ |
| H A D | usb_mass_storage.h | 10 #define SECTOR_SIZE 0x200 macro
|
| H A D | reiserfs.h | 18 #define SECTOR_SIZE 0x200 macro
|
| H A D | zfs_common.h | 25 #define SECTOR_SIZE 0x200 macro
|
| H A D | ext_common.h | 23 #define SECTOR_SIZE 0x200 macro
|
| /openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0001-linux-syslinux-support-ext2-3-4-device.patch | 48 static unsigned char sectbuf[SECTOR_SIZE]; 71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
|
| H A D | 0012-libinstaller-Fix-build-with-glibc-2.36.patch | 55 #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
|
| H A D | 0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch | 237 - set_16(&sbs->bsBytesPerSec, SECTOR_SIZE); 423 + set_16(&sbs->bsBytesPerSec, SECTOR_SIZE);
|
| H A D | 0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch | 186 + nsect = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | vvfat | 34 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)
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | f_mass_storage.c | 758 file_offset / SECTOR_SIZE, in do_read() 759 amount / SECTOR_SIZE, in do_read() 764 nread = rc * SECTOR_SIZE; in do_read() 932 file_offset / SECTOR_SIZE, in do_write() 933 amount / SECTOR_SIZE, in do_write() 937 nwritten = rc * SECTOR_SIZE; in do_write() 1048 file_offset / SECTOR_SIZE, in do_verify() 1049 amount / SECTOR_SIZE, in do_verify() 1053 nread = rc * SECTOR_SIZE; in do_verify()
|
| /openbmc/u-boot/cmd/ |
| H A D | usb_mass_storage.c | 87 if (block_dev->blksz != SECTOR_SIZE) in ums_init()
|
| H A D | fdc.c | 61 #define SECTOR_SIZE 5 macro 272 pCMD->cmd[SECTOR_SIZE]=pFG->sect_code; /* sector size code */ in fdc_issue_cmd()
|
| /openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/ |
| H A D | direct.py | 296 SECTOR_SIZE = 512 variable 329 self.sector_size = SECTOR_SIZE 331 self.sector_size = SECTOR_SIZE
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/cdrkit/files/ |
| H A D | 0001-add-new-option-eltorito-platform.patch | 86 - if (offset >= SECTOR_SIZE) { 95 + if (offset >= (SECTOR_SIZE - sizeof (boot_desc_record))) {
|
| /openbmc/u-boot/fs/reiserfs/ |
| H A D | reiserfs_private.h | 407 #define FSYSREISER_MIN_BLOCKSIZE SECTOR_SIZE
|
| H A D | reiserfs.c | 326 || (SECTOR_SIZE << INFO->blocksize_shift) != sb_blocksize(&super)) in reiserfs_mount()
|