/system/core/fs_mgr/libsnapshot/ |
D | snapuserd_worker.cpp | 230 sector_t sector, size_t size, in ReadUnalignedSector() argument 234 SNAP_LOG(DEBUG) << "ReadUnalignedSector: sector " << sector << " size: " << size in ReadUnalignedSector() 238 SNAP_LOG(ERROR) << "ReadUnalignedSector: " << sector << " failed of size: " << size in ReadUnalignedSector() 243 int num_sectors_skip = sector - it->first; in ReadUnalignedSector() 251 SNAP_LOG(ERROR) << "Invalid un-aligned IO request at sector: " << sector in ReadUnalignedSector() 274 int WorkerThread::ReadData(sector_t sector, size_t size) { in ReadData() argument 287 it = std::lower_bound(chunk_vec.begin(), chunk_vec.end(), std::make_pair(sector, nullptr), in ReadData() 291 SNAP_LOG(ERROR) << "ReadData: Sector " << sector << " not found in chunk_vec"; in ReadData() 298 if (it->first != sector) { in ReadData() 326 return ReadUnalignedSector(sector, size, it); in ReadData() [all …]
|
D | snapuserd.h | 183 int ReadData(sector_t sector, size_t size); 184 int ReadUnalignedSector(sector_t sector, size_t size, 205 chunk_t SectorToChunk(sector_t sector) { return sector >> CHUNK_SHIFT; } in SectorToChunk() argument 295 chunk_t SectorToChunk(sector_t sector) { return sector >> CHUNK_SHIFT; } in SectorToChunk() argument
|
D | dm_snapshot_internals.h | 34 void WriteSector(uint64_t sector) { WriteChunk(sector / chunk_sectors_); } in WriteSector() argument
|
/system/core/fs_mgr/liblp/ |
D | images.h | 50 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector); 53 bool SectorToBlock(uint64_t sector, uint32_t* block);
|
D | images.cpp | 227 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData() argument 229 if (!SectorToBlock(sector, &block)) { in AddData() 241 bool ImageBuilder::SectorToBlock(uint64_t sector, uint32_t* block) { in SectorToBlock() argument 248 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 249 LERROR << "sector " << sector << " is not aligned to block size " << block_size_; in SectorToBlock() 252 *block = (sector * LP_SECTOR_SIZE) / block_size_; in SectorToBlock()
|
D | builder.cpp | 986 bool MetadataBuilder::AlignSector(const LpMetadataBlockDevice& block_device, uint64_t sector, in AlignSector() argument 990 uint64_t lba = sector * LP_SECTOR_SIZE; in AlignSector()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 95 uint64_t sector = 0; in CreateDmTableInternal() local 101 target = std::make_unique<DmTargetZero>(sector, extent.num_sectors); in CreateDmTableInternal() 111 target = std::make_unique<DmTargetLinear>(sector, extent.num_sectors, dev_string, in CreateDmTableInternal() 122 sector += extent.num_sectors; in CreateDmTableInternal()
|
/system/core/fs_mgr/tools/ |
D | dmuserd.cpp | 70 __u64 sector; member 203 << std::to_string(msg.sector) << " with length " << std::to_string(msg.len) in simple_daemon() 221 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon() 261 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon()
|
/system/nfc/src/nfc/tags/ |
D | rw_t2t.cc | 428 p_t2t->sector = p_t2t->select_sector; in rw_t2t_process_timeout() 651 tNFC_STATUS rw_t2t_sector_change(uint8_t sector) { in rw_t2t_sector_change() argument 666 UINT8_TO_BE_STREAM(p, sector); in rw_t2t_sector_change() 714 if (p_t2t->sector != block / T2T_BLOCKS_PER_SECTOR) { in rw_t2t_read() 774 if (p_t2t->sector != block / T2T_BLOCKS_PER_SECTOR) { in rw_t2t_write() 1005 tNFC_STATUS RW_T2tSectorSelect(uint8_t sector) { in RW_T2tSectorSelect() argument 1016 if (sector >= T2T_MAX_SECTOR) { in RW_T2tSectorSelect() 1020 sector, T2T_MAX_SECTOR - 1); in RW_T2tSectorSelect() 1029 p_t2t->select_sector = sector; in RW_T2tSectorSelect()
|
D | rw_mfc.cc | 91 static bool rw_mfc_authenticate(int sector, bool KeyA);
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapuserd_kernel.h | 87 __u64 sector; member
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 99 char sector[512]; in TEST() local 100 ASSERT_TRUE(android::base::ReadFully(dev_fd, sector, sizeof(sector))); in TEST() 101 ASSERT_EQ(strncmp(sector, message1, sizeof(message1)), 0); in TEST() 102 ASSERT_TRUE(android::base::ReadFully(dev_fd, sector, sizeof(sector))); in TEST() 103 ASSERT_EQ(strncmp(sector, message2, sizeof(message2)), 0); in TEST()
|
/system/core/libdiskconfig/include/diskconfig/ |
D | diskconfig.h | 58 uint8_t sector; member
|
/system/vold/ |
D | Checkpoint.cpp | 590 sector_t sector, uint32_t size, uint32_t block_size) { in relocatedRead() argument 593 lseek64(device_fd, sector * kSectorSize, SEEK_SET); in relocatedRead() 599 for (uint32_t i = 0; i < size; i += block_size, sector += block_size / kSectorSize) { in relocatedRead() 600 auto relocation = --relocations.upper_bound(sector); in relocatedRead() 601 lseek64(device_fd, (sector + relocation->second - relocation->first) * kSectorSize, in relocatedRead()
|
/system/nfc/src/nfc/include/ |
D | rw_int.h | 392 uint8_t sector; /* Sector number that is selected */ member 888 extern tNFC_STATUS rw_t2t_sector_change(uint8_t sector);
|
D | rw_api.h | 547 extern tNFC_STATUS RW_T2tSectorSelect(uint8_t sector);
|
/system/extras/partition_tools/ |
D | README.md | 11 … the device. It must match exactly, and it must be evenly divisible by the sector size (512 bytes).
|
/system/core/fs_mgr/liblp/include/liblp/ |
D | builder.h | 385 bool AlignSector(const LpMetadataBlockDevice& device, uint64_t sector, uint64_t* out) const;
|