Home
last modified time | relevance | path

Searched refs:mSwapIndex (Results 1 – 2 of 2) sorted by relevance

/openthread-3.4.0/src/core/utils/
Dflash.cpp53 for (mSwapIndex = 0;; mSwapIndex++) in Init()
57 if (mSwapIndex >= 2) in Init()
63 otPlatFlashRead(&GetInstance(), mSwapIndex, 0, &swapMarker, sizeof(swapMarker)); in Init()
73 otPlatFlashRead(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(record)); in Init()
103 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &temp, sizeof(temp)); in SanitizeFreeSpace()
127 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Get()
150 … otPlatFlashRead(&GetInstance(), mSwapIndex, offset + sizeof(record), aValue, readLength); in Get()
196 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add()
199 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(RecordHeader)); in Add()
214 otPlatFlashRead(&GetInstance(), mSwapIndex, aOffset, &record, sizeof(record)); in DoesValidRecordExist()
[all …]
Dflash.hpp223 uint8_t mSwapIndex; member in ot::Flash