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/ |
D | nvs_page_test.cpp | 866 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/ |
D | nvs_pagemanager.cpp | 222 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()
|
D | nvs_handle_simple.cpp | 117 esp_err_t NVSHandleSimple::fillStats(nvs_stats_t& nvsStats) { in fillStats() argument 118 return mStoragePtr->fillStats(nvsStats); in fillStats()
|
D | nvs_pagemanager.hpp | 57 esp_err_t fillStats(nvs_stats_t& nvsStats);
|
D | nvs_handle_simple.hpp | 71 esp_err_t fillStats(nvs_stats_t &nvsStats);
|
D | nvs_page.cpp | 1035 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() 1050 … nvsStats.free_entries += ENTRY_COUNT - mUsedEntryCount; // it's equivalent free + erase entries. in calcEntries()
|
D | nvs_storage.hpp | 130 esp_err_t fillStats(nvs_stats_t& nvsStats);
|
D | nvs_storage.cpp | 693 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()
|
D | nvs_page.hpp | 153 esp_err_t calcEntries(nvs_stats_t &nvsStats);
|