Home
last modified time | relevance | path

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

/device/google/cuttlefish/host/libs/image_aggregator/
Dimage_aggregator.cc67 .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/
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.h19 constexpr int SECTOR_SIZE = 1 << SECTOR_SIZE_SHIFT; variable
36 static_assert(sizeof(MasterBootRecord) == SECTOR_SIZE);
Ddata_image.cpp178 .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()