Home
last modified time | relevance | path

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

/openbmc/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 */
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 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()
/openbmc/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
/openbmc/u-boot/include/
H A Dusb_mass_storage.h10 #define SECTOR_SIZE 0x200 macro
H A Dreiserfs.h18 #define SECTOR_SIZE 0x200 macro
H A Dzfs_common.h25 #define SECTOR_SIZE 0x200 macro
H A Dext_common.h23 #define SECTOR_SIZE 0x200 macro
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0001-linux-syslinux-support-ext2-3-4-device.patch48 static unsigned char sectbuf[SECTOR_SIZE];
71 xpread(dev_fd, sectbuf, SECTOR_SIZE, opt.offset);
H A D0012-libinstaller-Fix-build-with-glibc-2.36.patch55 #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch237 - set_16(&sbs->bsBytesPerSec, SECTOR_SIZE);
423 + set_16(&sbs->bsBytesPerSec, SECTOR_SIZE);
H A D0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch186 + nsect = (boot_image_len + SECTOR_SIZE - 1) >> SECTOR_SHIFT;
/openbmc/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)
/openbmc/u-boot/drivers/usb/gadget/
H A Df_mass_storage.c758 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 Dusb_mass_storage.c87 if (block_dev->blksz != SECTOR_SIZE) in ums_init()
H A Dfdc.c61 #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 Ddirect.py296 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 D0001-add-new-option-eltorito-platform.patch86 - if (offset >= SECTOR_SIZE) {
95 + if (offset >= (SECTOR_SIZE - sizeof (boot_desc_record))) {
/openbmc/u-boot/fs/reiserfs/
H A Dreiserfs_private.h407 #define FSYSREISER_MIN_BLOCKSIZE SECTOR_SIZE
H A Dreiserfs.c326 || (SECTOR_SIZE << INFO->blocksize_shift) != sb_blocksize(&super)) in reiserfs_mount()