Searched refs:SECTOR_SIZE (Results 1 – 5 of 5) sorted by relevance
/device/google/cuttlefish/host/libs/image_aggregator/ |
D | image_aggregator.cc | 67 .num_sectors = (std::uint32_t) size / SECTOR_SIZE, in ProtectiveMbr() 107 std::uint8_t header_padding[SECTOR_SIZE - sizeof(GptHeader)]; 118 std::uint8_t footer_padding[SECTOR_SIZE - sizeof(GptHeader)]; 121 static_assert(sizeof(GptEnd) % SECTOR_SIZE == 0); 364 .backup_lba = (DiskSize() / SECTOR_SIZE) - 1, in Beginning() 365 .first_usable_lba = sizeof(GptBeginning) / SECTOR_SIZE, in Beginning() 366 .last_usable_lba = (next_disk_offset_ / SECTOR_SIZE) - 1, in Beginning() 376 .first_lba = partition.offset / SECTOR_SIZE, in Beginning() 378 (partition.offset + partition.AlignedSize()) / SECTOR_SIZE - 1, in Beginning() 407 (DiskSize() - sizeof(gpt.entries)) / SECTOR_SIZE - 1; in End() [all …]
|
/device/linaro/dragonboard/qcom/rmtfs/ |
D | rmtfs.c | 165 char buf[SECTOR_SIZE]; in rmtfs_iovec() 192 sector_base = entries[i].sector_addr * SECTOR_SIZE; in rmtfs_iovec() 197 n = rmtfs_mem_read(rmem, phys_base + offset, buf, SECTOR_SIZE); in rmtfs_iovec() 198 if (n == SECTOR_SIZE) in rmtfs_iovec() 201 n = storage_pread(rmtfd, buf, SECTOR_SIZE, sector_base + offset); in rmtfs_iovec() 203 if (n < SECTOR_SIZE) in rmtfs_iovec() 204 memset(buf + n, 0, SECTOR_SIZE - n); in rmtfs_iovec() 205 n = rmtfs_mem_write(rmem, phys_base + offset, buf, SECTOR_SIZE); in rmtfs_iovec() 209 if (n != SECTOR_SIZE) { in rmtfs_iovec() 216 offset += SECTOR_SIZE; in rmtfs_iovec()
|
D | rmtfs.h | 7 #define SECTOR_SIZE 512 macro
|
/device/google/cuttlefish/host/libs/config/ |
D | mbr.h | 19 constexpr int SECTOR_SIZE = 1 << SECTOR_SIZE_SHIFT; variable 36 static_assert(sizeof(MasterBootRecord) == SECTOR_SIZE);
|
D | data_image.cpp | 178 .first_lba = (std::uint32_t) offset_size_bytes / SECTOR_SIZE, in CreateBlankImage() 179 .num_sectors = (std::uint32_t) image_size_bytes / SECTOR_SIZE, in CreateBlankImage()
|