/openthread-3.5.0/examples/apps/cli/ |
D | cli_uart.cpp | 132 static int Output(const char *aBuf, uint16_t aBufLength); 135 static void ReceiveTask(const uint8_t *aBuf, uint16_t aBufLength) in ReceiveTask() argument 142 end = aBuf + aBufLength; in ReceiveTask() 144 for (; aBuf < end; aBuf++) in ReceiveTask() 146 switch (*aBuf) in ReceiveTask() 185 Output(reinterpret_cast<const char *>(aBuf), 1); in ReceiveTask() 186 sRxBuffer[sRxLength++] = static_cast<char>(*aBuf); in ReceiveTask() 192 sLastChar = *aBuf; in ReceiveTask() 246 static int Output(const char *aBuf, uint16_t aBufLength) in Output() argument 265 sTxBuffer[tail] = *aBuf++; in Output() [all …]
|
/openthread-3.5.0/src/core/api/ |
D | message_api.cpp | 69 otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength) in otMessageAppend() argument 71 AssertPointerIsNotNull(aBuf); in otMessageAppend() 73 return AsCoreType(aMessage).AppendBytes(aBuf, aLength); in otMessageAppend() 76 uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength) in otMessageRead() argument 78 AssertPointerIsNotNull(aBuf); in otMessageRead() 80 return AsCoreType(aMessage).ReadBytes(aOffset, aBuf, aLength); in otMessageRead() 83 int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength) in otMessageWrite() argument 85 AssertPointerIsNotNull(aBuf); in otMessageWrite() 87 AsCoreType(aMessage).WriteBytes(aOffset, aBuf, aLength); in otMessageWrite()
|
D | crypto_api.cpp | 50 void otCryptoHmacSha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCrypto… in otCryptoHmacSha256() argument 54 AssertPointerIsNotNull(aBuf); in otCryptoHmacSha256() 57 hmac.Update(aBuf, aBufLength); in otCryptoHmacSha256()
|
D | tcp_ext_api.cpp | 90 int otTcpMbedTlsSslSendCallback(void *aCtx, const unsigned char *aBuf, size_t aLen) in otTcpMbedTlsSslSendCallback() argument 99 error = otTcpCircularSendBufferWrite(endpoint, sendBuffer, aBuf, aLen, &bytes_written, 0); in otTcpMbedTlsSslSendCallback() 108 int otTcpMbedTlsSslRecvCallback(void *aCtx, unsigned char *aBuf, size_t aLen) in otTcpMbedTlsSslRecvCallback() argument 122 memcpy(&aBuf[bytes_read], buffer->mData, to_copy); in otTcpMbedTlsSslRecvCallback()
|
/openthread-3.5.0/examples/apps/ncp/ |
D | ncp.c | 40 void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength) { otNcpHdlcReceive(aBuf, aBufLeng… in otPlatUartReceived() argument 47 static int NcpSend(const uint8_t *aBuf, uint16_t aBufLength) in NcpSend() argument 49 IgnoreError(otPlatUartSend(aBuf, aBufLength)); in NcpSend()
|
/openthread-3.5.0/src/core/meshcop/ |
D | dtls.hpp | 101 typedef void (*ReceiveHandler)(void *aContext, uint8_t *aBuf, uint16_t aLength); 391 static int HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength); 392 int HandleMbedtlsReceive(unsigned char *aBuf, size_t aLength); 394 static int HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength); 395 int HandleMbedtlsTransmit(const unsigned char *aBuf, size_t aLength); 437 void HandleDtlsReceive(const uint8_t *aBuf, uint16_t aLength); 438 Error HandleDtlsSend(const uint8_t *aBuf, uint16_t aLength, Message::SubType aMessageSubType);
|
D | dtls.cpp | 595 int Dtls::HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength) in HandleMbedtlsTransmit() argument 597 return static_cast<Dtls *>(aContext)->HandleMbedtlsTransmit(aBuf, aLength); in HandleMbedtlsTransmit() 600 int Dtls::HandleMbedtlsTransmit(const unsigned char *aBuf, size_t aLength) in HandleMbedtlsTransmit() argument 616 error = HandleDtlsSend(aBuf, static_cast<uint16_t>(aLength), mMessageSubType); in HandleMbedtlsTransmit() 640 int Dtls::HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength) in HandleMbedtlsReceive() argument 642 return static_cast<Dtls *>(aContext)->HandleMbedtlsReceive(aBuf, aLength); in HandleMbedtlsReceive() 645 int Dtls::HandleMbedtlsReceive(unsigned char *aBuf, size_t aLength) in HandleMbedtlsReceive() argument 668 …rval = mReceiveMessage->ReadBytes(mReceiveMessage->GetOffset(), aBuf, static_cast<uint16_t>(aLengt… in HandleMbedtlsReceive() 973 Error Dtls::HandleDtlsSend(const uint8_t *aBuf, uint16_t aLength, Message::SubType aMessageSubType) in HandleDtlsSend() argument 982 SuccessOrExit(error = message->AppendBytes(aBuf, aLength)); in HandleDtlsSend()
|
/openthread-3.5.0/examples/platforms/utils/ |
D | uart.h | 84 otError otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength); 112 extern void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength);
|
D | uart_rtt.c | 88 otError otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength) in otPlatUartSend() argument 92 …otEXPECT_ACTION(SEGGER_RTT_Write(UART_RTT_BUFFER_INDEX, aBuf, aBufLength) != 0, error = OT_ERROR_F… in otPlatUartSend()
|
/openthread-3.5.0/src/ncp/ |
D | ncp_hdlc.cpp | 228 extern "C" void otNcpHdlcReceive(const uint8_t *aBuf, uint16_t aBufLength) in otNcpHdlcReceive() argument 234 ncpHdlc->HandleHdlcReceiveDone(aBuf, aBufLength); in otNcpHdlcReceive() 238 void NcpHdlc::HandleHdlcReceiveDone(const uint8_t *aBuf, uint16_t aBufLength) in HandleHdlcReceiveDone() argument 240 mFrameDecoder.Decode(aBuf, aBufLength); in HandleHdlcReceiveDone() 270 void NcpHdlc::HandleError(otError aError, uint8_t *aBuf, uint16_t aBufLength) in HandleError() argument 286 snprintf(&hexbuf[i * 3], sizeof(hexbuf) - i * 3, " %02X", static_cast<uint8_t>(aBuf[i])); in HandleError()
|
D | example_vendor_hook.cpp | 132 static int SendHdlc(const uint8_t *aBuf, uint16_t aBufLength) in SendHdlc() argument 134 OT_UNUSED_VARIABLE(aBuf); in SendHdlc()
|
D | ncp_hdlc.hpp | 72 void HandleHdlcReceiveDone(const uint8_t *aBuf, uint16_t aBufLength); 120 void HandleError(otError aError, uint8_t *aBuf, uint16_t aBufLength);
|
/openthread-3.5.0/include/openthread/ |
D | message.h | 221 otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength); 242 uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength); 263 int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength);
|
D | ncp.h | 66 typedef int (*otNcpHdlcSendCallback)(const uint8_t *aBuf, uint16_t aBufLength); 81 void otNcpHdlcReceive(const uint8_t *aBuf, uint16_t aBufLength);
|
D | tcp_ext.h | 236 int otTcpMbedTlsSslSendCallback(void *aCtx, const unsigned char *aBuf, size_t aLen); 247 int otTcpMbedTlsSslRecvCallback(void *aCtx, unsigned char *aBuf, size_t aLen);
|
D | crypto.h | 75 void otCryptoHmacSha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCrypto…
|
D | cli.h | 98 void otCliInputLine(char *aBuf);
|
/openthread-3.5.0/examples/platforms/simulation/ |
D | spi-stubs.c | 76 void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength) in otPlatUartReceived() argument 78 OT_UNUSED_VARIABLE(aBuf); in otPlatUartReceived()
|
/openthread-3.5.0/src/core/crypto/ |
D | sha256.cpp | 54 void Sha256::Update(const void *aBuf, uint16_t aBufLength) in Update() argument 56 SuccessOrAssert(otPlatCryptoSha256Update(&mContext, aBuf, aBufLength)); in Update()
|
D | hmac_sha256.cpp | 54 void HmacSha256::Update(const void *aBuf, uint16_t aBufLength) in Update() argument 56 SuccessOrAssert(otPlatCryptoHmacSha256Update(&mContext, aBuf, aBufLength)); in Update()
|
D | hmac_sha256.hpp | 101 void Update(const void *aBuf, uint16_t aBufLength);
|
/openthread-3.5.0/src/core/common/ |
D | message.cpp | 401 Error Message::AppendBytes(const void *aBuf, uint16_t aLength) in AppendBytes() argument 407 WriteBytes(oldLength, aBuf, aLength); in AppendBytes() 435 Error Message::PrependBytes(const void *aBuf, uint16_t aLength) in PrependBytes() argument 461 if (aBuf != nullptr) in PrependBytes() 463 WriteBytes(0, aBuf, aLength); in PrependBytes() 631 uint16_t Message::ReadBytes(uint16_t aOffset, void *aBuf, uint16_t aLength) const in ReadBytes() argument 633 uint8_t *bufPtr = reinterpret_cast<uint8_t *>(aBuf); in ReadBytes() 645 return static_cast<uint16_t>(bufPtr - reinterpret_cast<uint8_t *>(aBuf)); in ReadBytes() 648 Error Message::Read(uint16_t aOffset, void *aBuf, uint16_t aLength) const in Read() argument 650 return (ReadBytes(aOffset, aBuf, aLength) == aLength) ? kErrorNone : kErrorParse; in Read() [all …]
|
/openthread-3.5.0/tests/fuzz/ |
D | ncp_hdlc_received.cpp | 46 static int HdlcSend(const uint8_t *aBuf, uint16_t aBufLength) in HdlcSend() argument 48 OT_UNUSED_VARIABLE(aBuf); in HdlcSend()
|
/openthread-3.5.0/src/core/coap/ |
D | coap_secure.cpp | 174 void CoapSecure::HandleDtlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength) in HandleDtlsReceive() argument 176 return static_cast<CoapSecure *>(aContext)->HandleDtlsReceive(aBuf, aLength); in HandleDtlsReceive() 179 void CoapSecure::HandleDtlsReceive(uint8_t *aBuf, uint16_t aLength) in HandleDtlsReceive() argument 184 SuccessOrExit(message->AppendBytes(aBuf, aLength)); in HandleDtlsReceive()
|
/openthread-3.5.0/include/openthread/platform/ |
D | crypto.h | 364 otError otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLeng… 378 otError otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength); 550 otError otPlatCryptoSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLength);
|