| /openbmc/u-boot/fs/ |
| H A D | fs_internal.c | 14 lbaint_t sector, int byte_offset, int byte_len, char *buf) in fs_devread() argument 26 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz)) in fs_devread() 29 sector); in fs_devread() 34 sector += byte_offset >> log2blksz; in fs_devread() 37 debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len); in fs_devread() 42 if (blk_dread(blk, partition->start + sector, 1, in fs_devread() 52 sector++; in fs_devread() 65 blk_dread(blk, partition->start + sector, 1, in fs_devread() 71 if (blk_dread(blk, partition->start + sector, in fs_devread() 80 sector += block_len / blk->blksz; in fs_devread() [all …]
|
| /openbmc/u-boot/board/imgtec/malta/ |
| H A D | flash-malta-boot.tcl | 22 flash erase sector 0xbe000000; 23 flash erase sector 0xbe020000; 24 flash erase sector 0xbe040000; 25 flash erase sector 0xbe060000; 26 flash erase sector 0xbe080000; 27 flash erase sector 0xbe0a0000; 28 flash erase sector 0xbe0c0000; 29 flash erase sector 0xbe0e0000;
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-crypto-ivgen.c | 28 uint64_t sector; member 40 .sector = 0x1, 49 .sector = 0x1f2e3d4cULL, 58 .sector = 0x1f2e3d4c5b6a7988ULL, 67 .sector = 0x1, 76 .sector = 0x1f2e3d4cULL, 85 .sector = 0x1f2e3d4c5b6a7988ULL, 94 .sector = 0x1, 108 .sector = 0x1f2e3d4cULL, 122 .sector = 0x1f2e3d4c5b6a7988ULL, [all …]
|
| /openbmc/u-boot/tools/ |
| H A D | rkspi.c | 22 int sector; in rkspi_set_header() local 40 for (sector = size / RKSPI_SECT_LEN - 1; sector >= 0; sector--) { in rkspi_set_header() 41 debug("sector %u\n", sector); in rkspi_set_header() 42 memmove(buf + sector * RKSPI_SECT_LEN * 2, in rkspi_set_header() 43 buf + sector * RKSPI_SECT_LEN, in rkspi_set_header() 45 memset(buf + sector * RKSPI_SECT_LEN * 2 + RKSPI_SECT_LEN, in rkspi_set_header()
|
| /openbmc/qemu/hw/vmapple/ |
| H A D | bdif.c | 56 uint32_t sector; member 67 VblkReqCmd sector; member 118 static void le2cpu_sector(VblkSector *sector) in le2cpu_sector() argument 120 sector->sector = le32_to_cpu(sector->sector); in le2cpu_sector() 132 le2cpu_reqcmd(&req->sector); in le2cpu_req() 141 VblkSector sector; in vblk_cmd() local 156 if (req.sector.len != sizeof(sector)) { in vblk_cmd() 161 dma_result = dma_memory_read(&address_space_memory, req.sector.addr, in vblk_cmd() 162 §or, sizeof(sector), in vblk_cmd() 167 le2cpu_sector(§or); in vblk_cmd() [all …]
|
| /openbmc/qemu/crypto/ |
| H A D | ivgen-essiv.c | 72 uint64_t sector, in qcrypto_ivgen_essiv_calculate() argument 80 sector = cpu_to_le64(sector); in qcrypto_ivgen_essiv_calculate() 81 memcpy(data, (uint8_t *)§or, MIN(sizeof(sector), ndata)); in qcrypto_ivgen_essiv_calculate() 82 if (sizeof(sector) < ndata) { in qcrypto_ivgen_essiv_calculate() 83 memset(data + sizeof(sector), 0, ndata - sizeof(sector)); in qcrypto_ivgen_essiv_calculate()
|
| H A D | ivgen-plain64.c | 33 uint64_t sector, in qcrypto_ivgen_plain_calculate() argument 38 ivprefix = sizeof(sector); in qcrypto_ivgen_plain_calculate() 39 sector = cpu_to_le64(sector); in qcrypto_ivgen_plain_calculate() 43 memcpy(iv, §or, ivprefix); in qcrypto_ivgen_plain_calculate()
|
| /openbmc/qemu/block/export/ |
| H A D | virtio-blk-handler.c | 27 uint64_t sector, size_t size) in virtio_blk_sect_range_ok() argument 42 if ((sector << VIRTIO_BLK_SECTOR_BITS) % block_size) { in virtio_blk_sect_range_ok() 46 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok() 59 uint64_t sector; in virtio_blk_discard_write_zeroes() local 76 sector = le64_to_cpu(desc.sector); in virtio_blk_discard_write_zeroes() 91 sector, bytes))) { in virtio_blk_discard_write_zeroes() 110 if (blk_co_pwrite_zeroes(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes() 123 if (blk_co_pdiscard(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes() 177 int64_t sector_num = le64_to_cpu(out.sector); in virtio_blk_process_req()
|
| /openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0001-Add-extra-sector-count-from-section-entry-for-EFI-ca.patch | 4 Subject: [PATCH] Add extra sector count from section entry for EFI catalogue 7 CD-ROM Format Specification [1]. The sector count tooks 2 byte which 8 means max sector count is 0xffff (65535), for 512-byte sector, the 16 Yocto defines `Selection criteria type = 2', add extra sector count 17 to original sector count as total count; for other situation, still use 18 original sector count as usual 82 + // 2 - Save extra sector count to vendor unique selection criteria (Yocto) 90 + // save extra sector count to vendor unique selection criteria 97 + // total count = sector count + extra sector count
|
| /openbmc/u-boot/drivers/mtd/ |
| H A D | cfi_flash.c | 568 static int flash_status_check(flash_info_t *info, flash_sect_t sector, in flash_status_check() argument 587 while (flash_is_busy(info, sector)) { in flash_status_check() 590 prompt, info->start[sector], in flash_status_check() 591 flash_read_long(info, sector, 0)); in flash_status_check() 592 flash_write_cmd(info, sector, 0, info->cmd_reset); in flash_status_check() 607 static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, in flash_full_status_check() argument 612 retcode = flash_status_check(info, sector, tout, prompt); in flash_full_status_check() 618 !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) { in flash_full_status_check() 621 info->start[sector]); in flash_full_status_check() 622 if (flash_isset(info, sector, 0, FLASH_STATUS_ECLBS | in flash_full_status_check() [all …]
|
| /openbmc/qemu/pc-bios/s390-ccw/ |
| H A D | virtio-blkdev.c | 19 static int virtio_blk_read_many(VDev *vdev, unsigned long sector, void *load_addr, in virtio_blk_read_many() argument 29 out_hdr.sector = virtio_sector_adjust(sector); in virtio_blk_read_many() 52 int virtio_read_many(unsigned long sector, void *load_addr, int sec_num) in virtio_read_many() argument 58 return virtio_blk_read_many(vdev, sector, load_addr, sec_num); in virtio_read_many() 60 return virtio_scsi_read_many(vdev, sector, load_addr, sec_num); in virtio_read_many() 89 int virtio_read(unsigned long sector, void *load_addr) in virtio_read() argument 91 return virtio_read_many(sector, load_addr, 1); in virtio_read()
|
| /openbmc/u-boot/common/spl/ |
| H A D | spl_mmc.c | 19 ulong sector, struct image_header *header) in mmc_load_legacy() argument 34 count = blk_dread(mmc_get_blk_desc(mmc), sector, image_size_sectors, in mmc_load_legacy() 44 static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, in h_spl_load_read() argument 49 return blk_dread(mmc_get_blk_desc(mmc), sector, count, buf); in h_spl_load_read() 54 struct mmc *mmc, unsigned long sector) in mmc_load_image_raw_sector() argument 64 count = blk_dread(bd, sector, 1, header); in mmc_load_image_raw_sector() 65 debug("hdr read sector %lx, count=%lu\n", sector, count); in mmc_load_image_raw_sector() 81 ret = spl_load_simple_fit(spl_image, &load, sector, header); in mmc_load_image_raw_sector() 83 ret = mmc_load_legacy(spl_image, mmc, sector, header); in mmc_load_image_raw_sector() 155 unsigned long sector) in mmc_load_image_raw_partition() argument [all …]
|
| H A D | spl_fit.c | 170 static int spl_load_fit_image(struct spl_load_info *info, ulong sector, in spl_load_fit_image() argument 224 sector + get_aligned_image_offset(info, offset), in spl_load_fit_image() 277 struct spl_load_info *info, ulong sector, in spl_fit_append_fdt() argument 295 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt() 354 struct spl_load_info *info, ulong sector, void *fit) in spl_load_simple_fit() argument 396 count = info->read(info, sector, sectors, fit); in spl_load_simple_fit() 398 sector, sectors, fit, count, size); in spl_load_simple_fit() 418 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit() 470 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit() 491 spl_fit_append_fdt(spl_image, info, sector, fit, in spl_load_simple_fit() [all …]
|
| H A D | spl_ram.c | 22 static ulong spl_ram_load_read(struct spl_load_info *load, ulong sector, in spl_ram_load_read() argument 26 __func__, sector, count, (ulong)buf); in spl_ram_load_read() 27 memcpy(buf, (void *)(CONFIG_SPL_LOAD_FIT_ADDRESS + sector), count); in spl_ram_load_read()
|
| /openbmc/u-boot/fs/btrfs/ |
| H A D | dev.c | 17 lbaint_t sector; in btrfs_devread() local 20 sector = address >> btrfs_blk_desc->log2blksz; in btrfs_devread() 23 return fs_devread(btrfs_blk_desc, btrfs_part_info, sector, byte_offset, in btrfs_devread()
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | fat16.py | 141 def __init__(self, data: bytes, sector: int, offset: int): 158 self.sector = sector 302 for sector in self.fats_dirty_sectors: 303 data = self.fats[sector * SECTOR_SIZE : (sector + 1) * SECTOR_SIZE] 304 sector = self.boot_sector.reserved_sectors + sector 305 self.write_sectors(sector, data) 435 new_entry.sector = self.boot_sector.root_dir_start() + i 444 new_entry.sector = ( 458 sector = self.read_sectors(entry.sector, 1) 459 sector = ( [all …]
|
| /openbmc/openbmc/meta-fii/meta-mori/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton/ |
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Futhermore, if the Flash sector size is ommitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 13 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /openbmc/openbmc/meta-fii/meta-kudo/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton/ |
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Futhermore, if the Flash sector size is ommitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 13 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /openbmc/openbmc/meta-quanta/meta-olympus-nuvoton/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton/ |
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Futhermore, if the Flash sector size is ommitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 13 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /openbmc/openbmc/poky/meta/recipes-devtools/cdrtools/cdrtools/ |
| H A D | 0001-fix-nsectors-exceeds-0xffff-situation.patch | 7 CD-ROM Format Specification [1]. The sector count takes 2 byte which 8 means max sector count is 0xffff (65535), for 512-byte sector, the 15 In this patch, nsectors means sector count, if it exceeds 0xffff, 52 + // 2 - Save extra sector count to vendor unique selection criteria 58 + // Description: Save extra sector count to vendor unique selection criteria.
|
| /openbmc/openbmc/meta-hpe/meta-gxp/recipes-bsp/u-boot/u-boot-fw-utils-gxp/ |
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Furthermore, if the Flash sector size is omitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 14 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| H A D | alt_fw_env.config | 3 # environment sector is assumed present. 5 # Furthermore, if the Flash sector size is omitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 14 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /openbmc/openbmc/meta-aspeed/recipes-bsp/u-boot/files/ |
| H A D | alt_fw_env.config | 3 # environment sector is assumed present. 5 # Furthermore, if the Flash sector size is omitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 14 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| H A D | fw_env.config | 3 # environment sector is assumed present. 5 # Furthermore, if the Flash sector size is omitted, this value is assumed to 9 # MTD device name Device offset Env. size Flash sector size Number of sectors 14 # MTD device name Device offset Env. size Flash sector size Number of sectors
|
| /openbmc/qemu/hw/block/ |
| H A D | trace-events | 19 pflash_erase_complete(const char *name) "%s: sector erase complete" 30 … *name, int width1, uint64_t start, int width2, uint64_t end) "%s: start sector erase at: 0x%0*" P… 52 …_zone_append_complete(void *vdev, void *req, int64_t sector, int ret) "vdev %p req %p, append sect… 53 …tio_blk_handle_write(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sect… 54 …rtio_blk_handle_read(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sect… 56 …handle_zone_report(void *vdev, void *req, int64_t sector, unsigned int nr_zones) "vdev %p req %p s… 57 …ne_mgmt(void *vdev, void *req, uint8_t op, int64_t sector, int64_t len) "vdev %p req %p op 0x%x se… 58 …k_handle_zone_reset_all(void *vdev, void *req, int64_t sector, int64_t len) "vdev %p req %p sector… 59 virtio_blk_handle_zone_append(void *vdev, void *req, int64_t sector) "vdev %p req %p, append sector…
|