Lines Matching refs:mSwapIndex

50     for (mSwapIndex = 0;; mSwapIndex++)  in Init()
54 if (mSwapIndex >= 2) in Init()
60 otPlatFlashRead(&GetInstance(), mSwapIndex, 0, &swapMarker, sizeof(swapMarker)); in Init()
70 otPlatFlashRead(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(record)); in Init()
100 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &temp, sizeof(temp)); in SanitizeFreeSpace()
124 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Get()
147 … otPlatFlashRead(&GetInstance(), mSwapIndex, offset + sizeof(record), aValue, readLength); in Get()
193 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add()
196 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, sizeof(RecordHeader)); in Add()
211 otPlatFlashRead(&GetInstance(), mSwapIndex, aOffset, &record, sizeof(record)); in DoesValidRecordExist()
225 uint8_t dstIndex = !mSwapIndex; in Swap()
233 otPlatFlashRead(&GetInstance(), mSwapIndex, srcOffset, &record, sizeof(RecordHeader)); in Swap()
242 otPlatFlashRead(&GetInstance(), mSwapIndex, srcOffset, &record, record.GetSize()); in Swap()
249 otPlatFlashWrite(&GetInstance(), mSwapIndex, 0, &sSwapInactive, sizeof(sSwapInactive)); in Swap()
251 mSwapIndex = dstIndex; in Swap()
263 otPlatFlashRead(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Delete()
278 otPlatFlashWrite(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Delete()
289 otPlatFlashWrite(&GetInstance(), mSwapIndex, offset, &record, sizeof(record)); in Delete()
303 mSwapIndex = 0; in Wipe()