Home
last modified time | relevance | path

Searched refs:aData (Results 1 – 25 of 56) sorted by relevance

123

/openthread-3.5.0/src/core/common/
Dlog.hpp209 #define DumpCrit(aText, aData, aDataLength) Logger::Dump<kLogLevelCrit, kLogModuleName>(aText, aDat… argument
211 #define DumpCrit(aText, aData, aDataLength) argument
223 #define DumpWarn(aText, aData, aDataLength) Logger::Dump<kLogLevelWarn, kLogModuleName>(aText, aDat… argument
225 #define DumpWarn(aText, aData, aDataLength) argument
237 #define DumpNote(aText, aData, aDataLength) Logger::Dump<kLogLevelNote, kLogModuleName>(aText, aDat… argument
239 #define DumpNote(aText, aData, aDataLength) argument
251 #define DumpInfo(aText, aData, aDataLength) Logger::Dump<kLogLevelInfo, kLogModuleName>(aText, aDat… argument
253 #define DumpInfo(aText, aData, aDataLength) argument
265 #define DumpDebg(aText, aData, aDataLength) Logger::Dump<kLogLevelDebg, kLogModuleName>(aText, aDat… argument
267 #define DumpDebg(aText, aData, aDataLength) argument
[all …]
Dlog.cpp141 void Logger::DumpAtLevel(const char *aModuleName, const char *aText, const void *aData, uint16_t aD… in DumpAtLevel() argument
143 DumpInModule(aModuleName, kLogLevel, aText, aData, aDataLength); in DumpAtLevel()
149 const void *aData,
153 const void *aData,
157 const void *aData,
161 const void *aData,
165 const void *aData,
169 const void *aData,
172 void Logger::DumpLine(const char *aModuleName, LogLevel aLogLevel, const uint8_t *aData, const uint… in DumpLine() argument
182 string.Append(" %02X", aData[i]); in DumpLine()
[all …]
Dheap_data.cpp75 void Data::SetFrom(Data &&aData) in SetFrom() argument
78 TakeFrom(aData); in SetFrom()
111 void Data::TakeFrom(Data &aData) in TakeFrom() argument
113 mData.Init(aData.mData.GetBytes(), aData.GetLength()); in TakeFrom()
114 aData.mData.Init(nullptr, 0); in TakeFrom()
Dheap_data.hpp68 Data(Data &&aData) { TakeFrom(aData); } in Data() argument
149 void SetFrom(Data &&aData);
186 void TakeFrom(Data &aData);
Dappender.cpp87 void Appender::GetAsData(Data<kWithUint16Length> &aData) const in GetAsData()
89 aData.Init(mShared.mFrameBuilder.GetBytes(), mShared.mFrameBuilder.GetLength()); in GetAsData()
Ddata.hpp385 Error CopyBytesFrom(const Data<kDataLengthType> &aData) in CopyBytesFrom() argument
387 return CopyBytesFrom(aData.GetBytes(), aData.GetLength()); in CopyBytesFrom()
/openthread-3.5.0/src/core/api/
Dlogging_api.cpp127 void otDumpCritPlat(const char *aText, const void *aData, uint16_t aDataLength) in otDumpCritPlat() argument
130 Logger::DumpInModule(kPlatformModuleName, kLogLevelCrit, aText, aData, aDataLength); in otDumpCritPlat()
133 OT_UNUSED_VARIABLE(aData); in otDumpCritPlat()
138 void otDumpWarnPlat(const char *aText, const void *aData, uint16_t aDataLength) in otDumpWarnPlat() argument
141 Logger::DumpInModule(kPlatformModuleName, kLogLevelWarn, aText, aData, aDataLength); in otDumpWarnPlat()
144 OT_UNUSED_VARIABLE(aData); in otDumpWarnPlat()
149 void otDumpNotePlat(const char *aText, const void *aData, uint16_t aDataLength) in otDumpNotePlat() argument
152 Logger::DumpInModule(kPlatformModuleName, kLogLevelNote, aText, aData, aDataLength); in otDumpNotePlat()
155 OT_UNUSED_VARIABLE(aData); in otDumpNotePlat()
160 void otDumpInfoPlat(const char *aText, const void *aData, uint16_t aDataLength) in otDumpInfoPlat() argument
[all …]
Dnetdata_api.cpp43 otError otNetDataGet(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength) in otNetDataGet() argument
45 AssertPointerIsNotNull(aData); in otNetDataGet()
49 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otNetDataGet()
Dserver_api.cpp45 otError otServerGetNetDataLocal(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aData… in otServerGetNetDataLocal() argument
48 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otServerGetNetDataLocal()
Dborder_router_api.cpp46 otError otBorderRouterGetNetData(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDat… in otBorderRouterGetNetData() argument
49 aStable ? NetworkData::kStableSubset : NetworkData::kFullSet, aData, *aDataLength); in otBorderRouterGetNetData()
Dtcp_ext_api.cpp59 const void *aData, in otTcpCircularSendBufferWrite() argument
65 return AsCoreType(aSendBuffer).Write(AsCoreType(aEndpoint), aData, aLength, *aWritten, aFlags); in otTcpCircularSendBufferWrite()
/openthread-3.5.0/include/openthread/
Dlogging.h150 void otDumpCritPlat(const char *aText, const void *aData, uint16_t aDataLength);
163 void otDumpWarnPlat(const char *aText, const void *aData, uint16_t aDataLength);
176 void otDumpNotePlat(const char *aText, const void *aData, uint16_t aDataLength);
189 void otDumpInfoPlat(const char *aText, const void *aData, uint16_t aDataLength);
202 void otDumpDebgPlat(const char *aText, const void *aData, uint16_t aDataLength);
/openthread-3.5.0/tests/unit/
Dtest_heap_string.cpp153 void PrintData(const Heap::Data &aData) { DumpBuffer("data", aData.GetBytes(), aData.GetLength()); } in PrintData() argument
167 void VerifyData(const Heap::Data &aData, const uint8_t *aBytes, uint16_t aLength) in VerifyData() argument
172 PrintData(aData); in VerifyData()
176 VerifyOrQuit(aData.IsNull()); in VerifyData()
177 VerifyOrQuit(aData.GetBytes() == nullptr); in VerifyData()
178 VerifyOrQuit(aData.GetLength() == 0); in VerifyData()
182 VerifyOrQuit(!aData.IsNull()); in VerifyData()
183 VerifyOrQuit(aData.GetBytes() != nullptr); in VerifyData()
184 VerifyOrQuit(aData.GetLength() == aLength); in VerifyData()
185 VerifyOrQuit(memcmp(aData.GetBytes(), aBytes, aLength) == 0, "Data content is incorrect"); in VerifyData()
[all …]
/openthread-3.5.0/examples/platforms/utils/
Dlink_metrics.cpp86 uint8_t GetEnhAckData(uint8_t aLqi, int8_t aRssi, uint8_t *aData) const in GetEnhAckData()
95 VerifyOrExit(aData != nullptr); in GetEnhAckData()
99 aData[bytes++] = aLqi; in GetEnhAckData()
103 aData[bytes++] = static_cast<uint8_t>(GetLinkMargin(aRssi) * 255 / in GetEnhAckData()
108 aData[bytes++] = in GetEnhAckData()
236 …nkMetricsEnhAckGenData(const otMacAddress *aMacAddress, uint8_t aLqi, int8_t aRssi, uint8_t *aData) in otLinkMetricsEnhAckGenData() argument
243 bytes = dataInfo->GetEnhAckData(aLqi, aRssi, aData); in otLinkMetricsEnhAckGenData()
/openthread-3.5.0/examples/platforms/simulation/
Dflash.c118 void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint… in otPlatFlashRead() argument
129 rval = pread(sFlashFd, aData, aSize, (off_t)(address + aOffset)); in otPlatFlashRead()
133 …ite(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize) in otPlatFlashWrite() argument
152 byte &= ((uint8_t *)aData)[offset]; in otPlatFlashWrite()
/openthread-3.5.0/include/openthread/platform/
Dflash.h77 void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, void *aData, uint…
90 …te(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset, const void *aData, uint32_t aSize);
/openthread-3.5.0/src/lib/hdlc/
Dhdlc.cpp155 otError Encoder::Encode(const uint8_t *aData, uint16_t aLength) in Encode() argument
163 SuccessOrExit(error = Encode(*aData++)); in Encode()
219 void Decoder::Decode(const uint8_t *aData, uint16_t aLength) in Decode() argument
223 uint8_t byte = *aData++; in Decode()
Dhdlc.hpp105 otError Encode(const uint8_t *aData, uint16_t aLength);
165 void Decode(const uint8_t *aData, uint16_t aLength);
/openthread-3.5.0/src/lib/spinel/
Dspinel_encoder.hpp518 …otError WriteData(const uint8_t *aData, uint16_t aDataLen) { return mNcpBuffer.InFrameFeedData(aDa… in WriteData() argument
540 otError WriteDataWithLen(const uint8_t *aData, uint16_t aDataLen);
Dspinel_decoder.cpp317 otError Decoder::ReadData(const uint8_t *&aData, uint16_t &aDataLen) in ReadData() argument
321 return ReadItem(&aData, aDataLen); in ReadData()
324 otError Decoder::ReadDataWithLen(const uint8_t *&aData, uint16_t &aDataLen) in ReadDataWithLen() argument
330 SuccessOrExit(error = ReadItem(&aData, len)); in ReadDataWithLen()
Dspinel_decoder.hpp480 otError ReadData(const uint8_t *&aData, uint16_t &aDataLen);
497 otError ReadDataWithLen(const uint8_t *&aData, uint16_t &aDataLen);
/openthread-3.5.0/src/core/net/
Dtcp6_ext.cpp58 const void *aData, in Write() argument
95 memcpy(&mDataBuffer[writeIndex], aData, aLength); in Write()
134 const uint8_t *dataIndexable = static_cast<const uint8_t *>(aData); in Write()
/openthread-3.5.0/src/cli/
Dcli_tcp.cpp580 void TcpExample::HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDoneCallback() argument
582 …static_cast<TcpExample *>(otTcpEndpointGetContext(aEndpoint))->HandleTcpSendDone(aEndpoint, aData); in HandleTcpSendDoneCallback()
633 void TcpExample::HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData) in HandleTcpSendDone() argument
642 if (aData == &mSendLink) in HandleTcpSendDone()
650 OT_ASSERT(aData != &mSendLink); in HandleTcpSendDone()
651 OT_ASSERT(mBenchmarkBytesUnsent >= aData->mLength); in HandleTcpSendDone()
652 …mBenchmarkBytesUnsent -= aData->mLength; // could be less than sizeof(mSendBufferBytes) for the fi… in HandleTcpSendDone()
655 aData->mLength = sizeof(mSendBufferBytes); in HandleTcpSendDone()
656 if (otTcpSendByReference(&mEndpoint, aData, 0) != OT_ERROR_NONE) in HandleTcpSendDone()
Dcli_tcp.hpp104 static void HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
119 void HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
/openthread-3.5.0/src/core/utils/
Dflash.hpp203 void SetData(const uint8_t *aData, uint16_t aDataLength) in SetData() argument
206 memcpy(mData, aData, aDataLength); in SetData()

123