Searched refs:mSwapIndex (Results 1 – 2 of 2) sorted by relevance
/openthread-3.4.0/src/core/utils/ |
D | flash.cpp | 53 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 …]
|
D | flash.hpp | 223 uint8_t mSwapIndex; member in ot::Flash
|