Home
last modified time | relevance | path

Searched refs:SectorDescriptor (Results 1 – 6 of 6) sorted by relevance

/external/pigweed/pw_kvs/public/pw_kvs/internal/
Dsectors.h29 class SectorDescriptor {
92 explicit constexpr SectorDescriptor(uint16_t sector_size_bytes) in SectorDescriptor() function
104 constexpr Sectors(Vector<SectorDescriptor>& sectors, in Sectors()
106 const SectorDescriptor** temp_sectors_to_skip) in Sectors()
116 SectorDescriptor(partition_.sector_size_bytes())); in Reset()
128 SectorDescriptor* last_new() const { return last_new_; } in last_new()
136 bool AddressInSector(const SectorDescriptor& sector, Address address) const { in AddressInSector()
144 Address BaseAddress(const SectorDescriptor& sector) const { in BaseAddress()
148 SectorDescriptor& FromAddress(Address address) const { in FromAddress()
154 Address NextWritableAddress(const SectorDescriptor& sector) const { in NextWritableAddress()
[all …]
/external/pigweed/pw_kvs/
Dsectors.cc37 SectorDescriptor** found_sector, in Find()
41 SectorDescriptor* first_empty_sector = nullptr; in Find()
45 SectorDescriptor* non_empty_least_reclaimable_sector = nullptr; in Find()
81 SectorDescriptor* sector = last_new_; in Find()
161 SectorDescriptor& Sectors::WearLeveledSectorFromIndex(size_t idx) const { in WearLeveledSectorFromIndex()
166 SectorDescriptor* Sectors::FindSectorToGarbageCollect( in FindSectorToGarbageCollect()
169 SectorDescriptor* sector_candidate = nullptr; in FindSectorToGarbageCollect()
186 SectorDescriptor& sector = WearLeveledSectorFromIndex(i); in FindSectorToGarbageCollect()
199 SectorDescriptor& sector = WearLeveledSectorFromIndex(i); in FindSectorToGarbageCollect()
214 SectorDescriptor& sector = WearLeveledSectorFromIndex(i); in FindSectorToGarbageCollect()
Dkey_value_store.cc45 Vector<SectorDescriptor>& sector_descriptor_list, in KeyValueStore()
46 const SectorDescriptor** temp_sectors_to_skip, in KeyValueStore()
83 if (sector_size_bytes > SectorDescriptor::max_sector_size()) { in Init()
87 unsigned(SectorDescriptor::max_sector_size())); in Init()
153 for (SectorDescriptor& sector : sectors_) { in InitializeMetadata()
247 SectorDescriptor& sector = sectors_.FromAddress(address); in InitializeMetadata()
309 for (const SectorDescriptor& sector : sectors_) { in GetStorageStats()
333 for (SectorDescriptor& sector : sectors_) { in CheckForErrors()
373 Status KeyValueStore::ScanForEntry(const SectorDescriptor& sector, in ScanForEntry()
722 SectorDescriptor* sector; in GetAddressesForWrite()
[all …]
Dsectors_test.cc34 Vector<SectorDescriptor, 32> sector_descriptors_;
51 SectorDescriptor& sector = sectors_.FromAddress(128); in TEST_F()
Dentry_cache_test.cc283 void CheckForCorruptSectors(SectorDescriptor* sector1 = nullptr, in CheckForCorruptSectors()
284 SectorDescriptor* sector2 = nullptr) { in CheckForCorruptSectors()
296 Vector<SectorDescriptor, kTotalSectors> sector_descriptors_;
/external/pigweed/pw_kvs/public/pw_kvs/
Dkey_value_store.h347 using SectorDescriptor = internal::SectorDescriptor; variable
355 Vector<SectorDescriptor>& sector_descriptor_list,
356 const SectorDescriptor** temp_sectors_to_skip,
376 Status ScanForEntry(const SectorDescriptor& sector,
448 Status GetSectorForWrite(SectorDescriptor** sector,
452 Status MarkSectorCorruptIfNotOk(Status status, SectorDescriptor* sector);
459 SectorDescriptor* new_sector,
486 SectorDescriptor& sector_to_gc,
490 Status GarbageCollectSector(SectorDescriptor& sector_to_gc,
607 Vector<SectorDescriptor, kMaxUsableSectors> sectors_;
[all …]