Home
last modified time | relevance | path

Searched refs:nvsStats (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/host_test/nvs_page_test/main/
Dnvs_page_test.cpp866 nvs_stats_t nvsStats = {0, 0, 0, 0}; in test_Page_calcEntries__uninit() local
868 TEST_ASSERT_EQUAL(ESP_OK, fix.page.calcEntries(nvsStats)); in test_Page_calcEntries__uninit()
869 TEST_ASSERT_EQUAL(0, nvsStats.used_entries); in test_Page_calcEntries__uninit()
870 TEST_ASSERT_EQUAL(Page::ENTRY_COUNT, nvsStats.free_entries); in test_Page_calcEntries__uninit()
871 TEST_ASSERT_EQUAL(Page::ENTRY_COUNT, nvsStats.total_entries); in test_Page_calcEntries__uninit()
872 TEST_ASSERT_EQUAL(0, nvsStats.namespace_count); in test_Page_calcEntries__uninit()
891 nvs_stats_t nvsStats = {0, 0, 0, 0}; in test_Page_calcEntries__corrupt() local
893 TEST_ASSERT_EQUAL(ESP_OK, page.calcEntries(nvsStats)); in test_Page_calcEntries__corrupt()
894 TEST_ASSERT_EQUAL(0, nvsStats.used_entries); in test_Page_calcEntries__corrupt()
895 TEST_ASSERT_EQUAL(Page::ENTRY_COUNT, nvsStats.free_entries); in test_Page_calcEntries__corrupt()
[all …]
/hal_espressif-3.6.0/components/nvs_flash/src/
Dnvs_pagemanager.cpp222 esp_err_t PageManager::fillStats(nvs_stats_t& nvsStats) in fillStats() argument
224 nvsStats.used_entries = 0; in fillStats()
225 nvsStats.free_entries = 0; in fillStats()
226 nvsStats.total_entries = 0; in fillStats()
231 err = p->calcEntries(nvsStats); in fillStats()
238 nvsStats.total_entries += mFreePageList.size() * Page::ENTRY_COUNT; in fillStats()
239 nvsStats.free_entries += mFreePageList.size() * Page::ENTRY_COUNT; in fillStats()
Dnvs_handle_simple.cpp117 esp_err_t NVSHandleSimple::fillStats(nvs_stats_t& nvsStats) { in fillStats() argument
118 return mStoragePtr->fillStats(nvsStats); in fillStats()
Dnvs_pagemanager.hpp57 esp_err_t fillStats(nvs_stats_t& nvsStats);
Dnvs_handle_simple.hpp71 esp_err_t fillStats(nvs_stats_t &nvsStats);
Dnvs_page.cpp1035 esp_err_t Page::calcEntries(nvs_stats_t &nvsStats) in calcEntries() argument
1039 nvsStats.total_entries += ENTRY_COUNT; in calcEntries()
1044 nvsStats.free_entries += ENTRY_COUNT; in calcEntries()
1049 nvsStats.used_entries += mUsedEntryCount; in calcEntries()
1050nvsStats.free_entries += ENTRY_COUNT - mUsedEntryCount; // it's equivalent free + erase entries. in calcEntries()
Dnvs_storage.hpp130 esp_err_t fillStats(nvs_stats_t& nvsStats);
Dnvs_storage.cpp693 esp_err_t Storage::fillStats(nvs_stats_t& nvsStats) in fillStats() argument
695 nvsStats.namespace_count = mNamespaces.size(); in fillStats()
696 return mPageManager.fillStats(nvsStats); in fillStats()
Dnvs_page.hpp153 esp_err_t calcEntries(nvs_stats_t &nvsStats);