/external/pigweed/pw_kvs/ |
D | key_value_store_binary_format_test.cc | 175 : flash_(internal::Entry::kMinAlignmentBytes), in KvsErrorHandling() 176 partition_(&flash_), in KvsErrorHandling() 181 std::memcpy(flash_.buffer().data(), contents.data(), contents.size()); in InitFlashTo() 184 FakeFlashMemoryBuffer<512, 4> flash_; member in pw::kvs::__anon371466c50111::KvsErrorHandling 211 flash_.buffer()[i] = byte(int(flash_.buffer()[i]) + 1); in TEST_F() 230 flash_.buffer()[9] = byte(0xef); in TEST_F() 231 flash_.buffer()[67] = byte(0xef); in TEST_F() 252 flash_.InjectReadError( in TEST_F() 266 flash_.buffer()[1] = byte(0xef); in TEST_F() 267 flash_.buffer()[513] = byte(0xef); in TEST_F() [all …]
|
D | flash_memory.cc | 35 PW_TRY_WITH_SIZE(flash_.Write(address_, data)); in DoWrite() 41 StatusWithSize result = flash_.Read(address_, data); in DoRead() 53 : flash_(*flash), in FlashPartition() 58 ? flash_.alignment_bytes() in FlashPartition() 59 : std::max(alignment_bytes, uint32_t(flash_.alignment_bytes()))), in FlashPartition() 61 uint32_t misalignment = (alignment_bytes_ % flash_.alignment_bytes()); in FlashPartition() 77 return flash_.Erase(PartitionToFlashAddress(address), num_sectors); in Erase() 82 return flash_.Read(PartitionToFlashAddress(address), output); in Read() 95 return flash_.Write(PartitionToFlashAddress(address), data); in Write() 117 const byte erased_byte = flash_.erased_memory_content(); in IsRegionErased() [all …]
|
D | key_value_store_wear_test.cc | 35 : flash_(internal::Entry::kMinAlignmentBytes), in WearTest() 36 partition_(&flash_, 0, flash_.sector_count()), in WearTest() 45 FakeFlashMemoryBuffer<kTestPartitionSectorSize, kSectors> flash_; member in pw::kvs::__anon9dbb52e70111::WearTest
|
D | entry_test.cc | 118 ValidEntryInFlash() : flash_(kEntry1), partition_(&flash_) { in ValidEntryInFlash() 122 FakeFlashMemoryBuffer<1024, 4> flash_; member in pw::kvs::internal::__anond3b7b29a0111::ValidEntryInFlash 235 : flash_(bytes::Concat(kHeader2, kKeyAndPadding2)), partition_(&flash_) { in TombstoneEntryInFlash() 239 FakeFlashMemoryBuffer<1024, 4> flash_; member in pw::kvs::internal::__anond3b7b29a0111::TombstoneEntryInFlash 348 flash_.InjectReadError(FlashError::Unconditional(Status::Aborted())); in TEST_F() 360 flash_.InjectReadError(FlashError::Unconditional(Status::Aborted())); in TEST_F() 372 &flash_.buffer().data()[123], kEntry1.data(), kEntry1.size())); in TEST_F() 376 flash_.InjectReadError(FlashError::Unconditional(Status::Unimplemented())); in TEST_F() 450 &flash_.buffer()[kEntry1.size()], new_data.data(), new_data.size())); in TEST_F() 533 std::memcmp(&flash_.buffer()[kEntry1.size()], in TEST_F() [all …]
|
D | sectors_test.cc | 26 : partition_(&flash_), in SectorsTest() 32 FakeFlashMemoryBuffer<128, 16> flash_; member in pw::kvs::internal::__anonddb40b0b0111::SectorsTest
|
D | entry_cache_test.cc | 252 : flash_(bytes::Concat(kTheEntry, in InitializedEntryCache() 260 partition_(&flash_), in InitializedEntryCache() 293 FakeFlashMemoryBuffer<kSectorSize, kTotalSectors> flash_; member in pw::kvs::internal::__anona4a3f82d0111::InitializedEntryCache 332 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 2)); in TEST_F() 347 flash_.InjectReadError(FlashError::Unconditional(Status::Internal(), 4)); in TEST_F()
|
D | key_value_store_map_test.cc | 84 : partition_(&flash_, in KvsTester() 400 flash_; member in pw::kvs::__anon7dbde6360111::KvsTester 413 KvsTester<kParams>::flash_ = member in pw::kvs::__anon7dbde6360111::KvsTester<kParams>
|
/external/pigweed/pw_kvs/public/pw_kvs/ |
D | flash_memory.h | 147 : flash_(flash), address_(address) {} in Output() 152 FlashPartition& flash_; variable 160 : flash_(flash), address_(address) {} in Input() 165 FlashPartition& flash_; variable 253 return flash_.sector_size_bytes(); in sector_size_bytes() 266 return flash_.FlashAddressToMcuAddress(PartitionToFlashAddress(address)); in PartitionAddressToMcuAddress() 273 return flash_.start_address() + in PartitionToFlashAddress() 274 (start_sector_index_ - flash_.start_sector()) * sector_size_bytes() + in PartitionToFlashAddress() 283 return flash_.erased_memory_content(); in erased_memory_content() 291 FlashMemory& flash() const { return flash_; } in flash() [all …]
|
/external/pigweed/pw_blob_store/ |
D | blob_store_chunk_write_test.cc | 34 BlobStoreChunkTest() : flash_(kFlashAlignment), partition_(&flash_) {} in BlobStoreChunkTest() 38 std::memcpy(flash_.buffer().data(), contents.data(), contents.size()); in InitFlashTo() 95 EXPECT_EQ(source_buffer_.size(), flash_.buffer().size_bytes()); in VerifyFlash() 110 kvs::FakeFlashMemoryBuffer<kSectorSize, kSectorCount> flash_; member in pw::blob_store::__anon87845aac0111::BlobStoreChunkTest
|
D | blob_store_deferred_write_test.cc | 34 DeferredWriteTest() : flash_(kFlashAlignment), partition_(&flash_) {} in DeferredWriteTest() 38 std::memcpy(flash_.buffer().data(), contents.data(), contents.size()); in InitFlashTo() 103 EXPECT_EQ(buffer_.size(), flash_.buffer().size_bytes()); in VerifyFlash() 118 kvs::FakeFlashMemoryBuffer<kSectorSize, kSectorCount> flash_; member in pw::blob_store::__anon0752f3f40111::DeferredWriteTest
|
D | blob_store_test.cc | 35 BlobStoreTest() : flash_(kFlashAlignment), partition_(&flash_) {} in BlobStoreTest() 39 std::memcpy(flash_.buffer().data(), contents.data(), contents.size()); in InitFlashTo() 48 static_cast<int>(flash_.erased_memory_content()), in InitSourceBufferToRandom() 57 static_cast<int>(flash_.erased_memory_content()), in InitSourceBufferToFill() 91 VerifyFlash(flash_.buffer().first(write_size_bytes)); in WriteTestBlock() 99 VerifyFlash(flash_.buffer()); in ChunkReadTest() 140 EXPECT_EQ(source_buffer_.size(), flash_.buffer().size_bytes()); in VerifyFlash() 155 kvs::FakeFlashMemoryBuffer<kSectorSize, kSectorCount> flash_; member in pw::blob_store::__anon64de6dea0111::BlobStoreTest
|