Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 24 of 24) sorted by relevance

/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dread_worker.cpp280 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 …]
Dread_worker.h36 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
Dsnapuserd_core.h192 chunk_t SectorToChunk(sector_t sector) { return sector >> CHUNK_SHIFT; } in SectorToChunk() argument
Dsnapuserd_test.cpp1211 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/
Ddm_snapshot_internals.h35 void WriteSector(uint64_t sector) { WriteChunk(sector / chunk_sectors_); } in WriteSector() argument
/system/core/fs_mgr/liblp/
Dimages.h50 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector);
53 bool SectorToBlock(uint64_t sector, uint32_t* block);
Dimages.cpp261 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()
Dbuilder.cpp986 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/
Ddmuserd.cpp71 __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()
Ddmctl.cpp466 uint64_t sector; in DmMessageCmdHandler() local
467 if (!android::base::ParseUint(argv[1], &sector)) { in DmMessageCmdHandler()
472 if (!dm.SendMessage(argv[0], sector, argv[2])) { in DmMessageCmdHandler()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp95 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/
Drw_t2t.cc424 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()
Drw_mfc.cc91 static bool rw_mfc_authenticate(int sector, bool KeyA);
/system/core/fs_mgr/libsnapshot/snapuserd/
Ddm_user_block_server.cpp46 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/
Dblock_server.h41 virtual bool RequestSectors(uint64_t sector, uint64_t size) = 0;
Dsnapuserd_kernel.h91 __u64 sector; member
/system/core/fs_mgr/libdm/
Ddm_test.cpp128 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()
Ddm.cpp772 bool DeviceMapper::SendMessage(const std::string& name, uint64_t sector, in SendMessage() argument
784 msg->sector = sector; in SendMessage()
/system/vold/
DCheckpoint.cpp603 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/
Drw_int.h392 uint8_t sector; /* Sector number that is selected */ member
889 extern tNFC_STATUS rw_t2t_sector_change(uint8_t sector);
Drw_api.h547 extern tNFC_STATUS RW_T2tSectorSelect(uint8_t sector);
/system/core/fs_mgr/libdm/include/libdm/
Ddm.h311 bool SendMessage(const std::string& name, uint64_t sector, const std::string& message);
/system/extras/partition_tools/
DREADME.md11 … 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/
Dbuilder.h387 bool AlignSector(const LpMetadataBlockDevice& device, uint64_t sector, uint64_t* out) const;