/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | read_worker.cpp | 280 bool ReadWorker::ReadDataFromBaseDevice(sector_t sector, void* buffer, size_t read_size) { in ReadDataFromBaseDevice() argument 283 loff_t offset = sector << SECTOR_SHIFT; in ReadDataFromBaseDevice() 286 << "at sector :" << sector << " size: " << read_size; in ReadDataFromBaseDevice() 307 bool ReadWorker::ReadAlignedSector(sector_t sector, size_t sz) { in ReadAlignedSector() argument 324 std::make_pair(sector, nullptr), SnapshotHandler::compare); in ReadAlignedSector() 325 const bool sector_not_found = (it == chunk_vec.end() || it->first != sector); in ReadAlignedSector() 335 uint64_t io_block = SectorToChunk(sector); in ReadAlignedSector() 410 if (!ReadDataFromBaseDevice(sector, buffer, size)) { in ReadAlignedSector() 421 << "ProcessCowOp failed, sector = " << sector << ", size = " << sz; in ReadAlignedSector() 430 sector += (ret >> SECTOR_SHIFT); in ReadAlignedSector() [all …]
|
D | read_worker.h | 36 bool RequestSectors(uint64_t sector, uint64_t size) override; 53 bool ReadAlignedSector(sector_t sector, size_t sz); 54 bool ReadUnalignedSector(sector_t sector, size_t size); 55 int ReadUnalignedSector(sector_t sector, size_t size, 58 bool ReadDataFromBaseDevice(sector_t sector, void* buffer, size_t read_size); 62 constexpr chunk_t SectorToChunk(sector_t sector) { return sector >> CHUNK_SHIFT; } in SectorToChunk() argument
|
D | snapuserd_core.h | 192 chunk_t SectorToChunk(sector_t sector) { return sector >> CHUNK_SHIFT; } in SectorToChunk() argument
|
D | snapuserd_test.cpp | 1211 AssertionResult ReadSectors(sector_t sector, uint64_t size, void* buffer); 1260 AssertionResult HandlerTest::ReadSectors(sector_t sector, uint64_t size, void* buffer) { in ReadSectors() argument 1261 if (!read_worker_->RequestSectors(sector, size)) { in ReadSectors()
|
/system/core/fs_mgr/libsnapshot/ |
D | dm_snapshot_internals.h | 35 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 | 261 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData() argument 263 if (!SectorToBlock(sector, &block)) { in AddData() 275 bool ImageBuilder::SectorToBlock(uint64_t sector, uint32_t* block) { in SectorToBlock() argument 282 if ((sector * LP_SECTOR_SIZE) % block_size_ != 0) { in SectorToBlock() 283 LERROR << "sector " << sector << " is not aligned to block size " << block_size_; in SectorToBlock() 286 *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/tools/ |
D | dmuserd.cpp | 71 __u64 sector; member 204 << std::to_string(msg.sector) << " with length " << std::to_string(msg.len) in simple_daemon() 222 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon() 262 if (lseek64(backing_fd, msg.sector * SECTOR_SIZE, SEEK_SET) < 0) { in simple_daemon()
|
D | dmctl.cpp | 466 uint64_t sector; in DmMessageCmdHandler() local 467 if (!android::base::ParseUint(argv[1], §or)) { in DmMessageCmdHandler() 472 if (!dm.SendMessage(argv[0], sector, argv[2])) { in DmMessageCmdHandler()
|
/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/nfc/src/nfc/tags/ |
D | rw_t2t.cc | 424 p_t2t->sector = p_t2t->select_sector; in rw_t2t_process_timeout() 646 tNFC_STATUS rw_t2t_sector_change(uint8_t sector) { in rw_t2t_sector_change() argument 661 UINT8_TO_BE_STREAM(p, sector); in rw_t2t_sector_change() 708 if (p_t2t->sector != block / T2T_BLOCKS_PER_SECTOR) { in rw_t2t_read() 767 if (p_t2t->sector != block / T2T_BLOCKS_PER_SECTOR) { in rw_t2t_write() 996 tNFC_STATUS RW_T2tSectorSelect(uint8_t sector) { in RW_T2tSectorSelect() argument 1007 if (sector >= T2T_MAX_SECTOR) { in RW_T2tSectorSelect() 1011 sector, T2T_MAX_SECTOR - 1); in RW_T2tSectorSelect() 1020 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/snapuserd/ |
D | dm_user_block_server.cpp | 46 SNAP_LOG(DEBUG) << "Daemon: msg->sector: " << std::dec << header->sector; in ProcessRequests() 70 return delegate_->RequestSectors(header->sector, header->len); in ProcessRequest()
|
/system/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/ |
D | block_server.h | 41 virtual bool RequestSectors(uint64_t sector, uint64_t size) = 0;
|
D | snapuserd_kernel.h | 91 __u64 sector; member
|
/system/core/fs_mgr/libdm/ |
D | dm_test.cpp | 128 char sector[512]; in TEST_F() local 129 ASSERT_TRUE(android::base::ReadFully(dev_fd, sector, sizeof(sector))); in TEST_F() 130 ASSERT_EQ(strncmp(sector, message1, sizeof(message1)), 0); in TEST_F() 131 ASSERT_TRUE(android::base::ReadFully(dev_fd, sector, sizeof(sector))); in TEST_F() 132 ASSERT_EQ(strncmp(sector, message2, sizeof(message2)), 0); in TEST_F()
|
D | dm.cpp | 772 bool DeviceMapper::SendMessage(const std::string& name, uint64_t sector, in SendMessage() argument 784 msg->sector = sector; in SendMessage()
|
/system/vold/ |
D | Checkpoint.cpp | 603 sector_t sector, uint32_t size, uint32_t block_size) { in relocatedRead() argument 606 off64_t offset = sector * kSectorSize; in relocatedRead() 617 for (uint32_t i = 0; i < size; i += block_size, sector += block_size / kSectorSize) { in relocatedRead() 618 auto relocation = --relocations.upper_bound(sector); in relocatedRead() 619 off64_t offset = (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 889 extern tNFC_STATUS rw_t2t_sector_change(uint8_t sector);
|
D | rw_api.h | 547 extern tNFC_STATUS RW_T2tSectorSelect(uint8_t sector);
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 311 bool SendMessage(const std::string& name, uint64_t sector, const std::string& message);
|
/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 | 387 bool AlignSector(const LpMetadataBlockDevice& device, uint64_t sector, uint64_t* out) const;
|