Home
last modified time | relevance | path

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

/device/google/cuttlefish/host/commands/assemble_cvd/
Dimage_aggregator.cc62 .num_sectors = (std::uint32_t) size / SECTOR_SIZE, in ProtectiveMbr()
107 static_assert(sizeof(GptBeginning) == SECTOR_SIZE * 40);
115 static_assert(sizeof(GptEnd) == SECTOR_SIZE * 33);
235 .backup_lba = (next_disk_offset_ + sizeof(GptEnd)) / SECTOR_SIZE - 1, in Beginning()
236 .first_usable_lba = sizeof(GptBeginning) / SECTOR_SIZE, in Beginning()
237 .last_usable_lba = (next_disk_offset_ - SECTOR_SIZE) / SECTOR_SIZE, in Beginning()
247 .first_lba = partition.offset / SECTOR_SIZE, in Beginning()
248 .last_lba = (partition.offset + partition.size - SECTOR_SIZE) in Beginning()
249 / SECTOR_SIZE, in Beginning()
280 gpt.footer.partition_entries_lba = next_disk_offset_ / SECTOR_SIZE; in End()
[all …]
/device/linaro/dragonboard/qcom/rmtfs/
Drmtfs.c165 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()
Drmtfs.h7 #define SECTOR_SIZE 512 macro
/device/google/cuttlefish/host/libs/config/
Dmbr.h18 constexpr int SECTOR_SIZE = 512; variable
35 static_assert(sizeof(MasterBootRecord) == SECTOR_SIZE);
Ddata_image.cpp111 .first_lba = (std::uint32_t) offset_size_bytes / SECTOR_SIZE, in CreateBlankImage()
112 .num_sectors = (std::uint32_t) image_size_bytes / SECTOR_SIZE, in CreateBlankImage()