/openthread-3.5.0/src/core/common/ |
D | log.hpp | 209 #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 …]
|
D | log.cpp | 141 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 …]
|
D | heap_data.cpp | 75 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()
|
D | heap_data.hpp | 68 Data(Data &&aData) { TakeFrom(aData); } in Data() argument 149 void SetFrom(Data &&aData); 186 void TakeFrom(Data &aData);
|
D | appender.cpp | 87 void Appender::GetAsData(Data<kWithUint16Length> &aData) const in GetAsData() 89 aData.Init(mShared.mFrameBuilder.GetBytes(), mShared.mFrameBuilder.GetLength()); in GetAsData()
|
D | data.hpp | 385 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/ |
D | logging_api.cpp | 127 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 …]
|
D | netdata_api.cpp | 43 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()
|
D | server_api.cpp | 45 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()
|
D | border_router_api.cpp | 46 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()
|
D | tcp_ext_api.cpp | 59 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/ |
D | logging.h | 150 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/ |
D | test_heap_string.cpp | 153 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/ |
D | link_metrics.cpp | 86 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/ |
D | flash.c | 118 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/ |
D | flash.h | 77 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/ |
D | hdlc.cpp | 155 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()
|
D | hdlc.hpp | 105 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/ |
D | spinel_encoder.hpp | 518 …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);
|
D | spinel_decoder.cpp | 317 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()
|
D | spinel_decoder.hpp | 480 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/ |
D | tcp6_ext.cpp | 58 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/ |
D | cli_tcp.cpp | 580 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()
|
D | cli_tcp.hpp | 104 static void HandleTcpSendDoneCallback(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData); 119 void HandleTcpSendDone(otTcpEndpoint *aEndpoint, otLinkedBuffer *aData);
|
/openthread-3.5.0/src/core/utils/ |
D | flash.hpp | 203 void SetData(const uint8_t *aData, uint16_t aDataLength) in SetData() argument 206 memcpy(mData, aData, aDataLength); in SetData()
|