Home
last modified time | relevance | path

Searched refs:ENTRY_SIZE (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/components/nvs_flash/src/
Dnvs_page.cpp121 assert(size % ENTRY_SIZE == 0); in writeEntryData()
124 const uint16_t count = size / ENTRY_SIZE; in writeEntryData()
199 size_t totalSize = ENTRY_SIZE; in writeItem()
202 size_t roundedSize = (dataSize + ENTRY_SIZE - 1) & ~(ENTRY_SIZE - 1); in writeItem()
204 entriesCount += roundedSize / ENTRY_SIZE; in writeItem()
208 assert(totalSize == ENTRY_SIZE || in writeItem()
217 size_t span = (totalSize + ENTRY_SIZE - 1) / ENTRY_SIZE; in writeItem()
243 size_t rest = dataSize % ENTRY_SIZE; in writeItem()
254 std::fill_n(item.rawData, ENTRY_SIZE, 0xff); in writeItem()
301 size_t willCopy = ENTRY_SIZE; in readItem()
[all …]
Dnvs_page.hpp46 static const size_t ENTRY_SIZE = 32; member in nvs::Page
50 static const size_t CHUNK_MAX_SIZE = ENTRY_SIZE * (ENTRY_COUNT - 1);
210 return mBaseAddress + ENTRY_DATA_OFFSET + static_cast<uint32_t>(entry) * ENTRY_SIZE; in getEntryAddress()
Dnvs_storage.cpp225 if (remainingSize || (tailroom - chunkSize) < Page::ENTRY_SIZE) { in writeMultiPageBlob()
/hal_espressif-3.6.0/components/nvs_flash/test_nvs_host/
Dtest_nvs.cpp268 …TEST_ESP_ERR(page.writeItem(1, ItemType::BLOB, "2", buf, Page::ENTRY_COUNT * Page::ENTRY_SIZE), ES…
432 uint8_t bigdata[(Page::CHUNK_MAX_SIZE - Page::ENTRY_SIZE)/2] = {0};
2021 const size_t blob_size = (Page::ENTRY_COUNT-3) * Page::ENTRY_SIZE;
2933 uint8_t ptxt_hex[Page::ENTRY_SIZE], ctxt_hex[Page::ENTRY_SIZE], ba_hex[16];
2950 char ptxt[][2 * Page::ENTRY_SIZE + 1] = {
2954 char ctxt[][2 * Page::ENTRY_SIZE + 1] = {
2972 …CHECK(!mbedtls_aes_crypt_xts(ectx, MBEDTLS_AES_ENCRYPT, Page::ENTRY_SIZE, ba_hex, ptxt_hex, ptxt_h…
2974 CHECK(!memcmp(ptxt_hex, ctxt_hex, Page::ENTRY_SIZE));
/hal_espressif-3.6.0/components/nvs_flash/host_test/nvs_page_test/main/
Dnvs_page_test.cpp858 TEST_ASSERT_EQUAL((Page::ENTRY_COUNT - 3) * Page::ENTRY_SIZE, fix.page.getVarDataTailroom()); in test_Page_getVarDataTailroom__success()