Home
last modified time | relevance | path

Searched refs:aBuf (Results 1 – 25 of 46) sorted by relevance

12

/openthread-latest/examples/apps/cli/
Dcli_uart.cpp132 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-latest/src/core/api/
Dmessage_api.cpp98 otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength) in otMessageAppend() argument
100 AssertPointerIsNotNull(aBuf); in otMessageAppend()
102 return AsCoreType(aMessage).AppendBytes(aBuf, aLength); in otMessageAppend()
105 uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength) in otMessageRead() argument
107 AssertPointerIsNotNull(aBuf); in otMessageRead()
109 return AsCoreType(aMessage).ReadBytes(aOffset, aBuf, aLength); in otMessageRead()
112 int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength) in otMessageWrite() argument
114 AssertPointerIsNotNull(aBuf); in otMessageWrite()
116 AsCoreType(aMessage).WriteBytes(aOffset, aBuf, aLength); in otMessageWrite()
Dtcp_ext_api.cpp90 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()
Dcrypto_api.cpp50 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()
Dble_secure_api.cpp177 otError otBleSecureSend(otInstance *aInstance, uint8_t *aBuf, uint16_t aLength) in otBleSecureSend() argument
179 return AsCoreType(aInstance).Get<Ble::BleSecure>().Send(aBuf, aLength); in otBleSecureSend()
182 otError otBleSecureSendApplicationTlv(otInstance *aInstance, uint8_t *aBuf, uint16_t aLength) in otBleSecureSendApplicationTlv() argument
184 return AsCoreType(aInstance).Get<Ble::BleSecure>().SendApplicationTlv(aBuf, aLength); in otBleSecureSendApplicationTlv()
/openthread-latest/examples/apps/ncp/
Dncp.c40 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-latest/src/core/radio/
Dble_secure.cpp208 Error BleSecure::Send(uint8_t *aBuf, uint16_t aLength) in Send() argument
218 SuccessOrExit(error = mSendMessage->AppendBytes(aBuf, aLength)); in Send()
224 Error BleSecure::SendApplicationTlv(uint8_t *aBuf, uint16_t aLength) in SendApplicationTlv() argument
244 error = Send(aBuf, aLength); in SendApplicationTlv()
265 Error BleSecure::HandleBleReceive(uint8_t *aBuf, uint16_t aLength) in HandleBleReceive() argument
276 SuccessOrExit(error = message->AppendBytes(aBuf, aLength)); in HandleBleReceive()
365 void BleSecure::HandleTlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength) in HandleTlsReceive() argument
367 return static_cast<BleSecure *>(aContext)->HandleTlsReceive(aBuf, aLength); in HandleTlsReceive()
370 void BleSecure::HandleTlsReceive(uint8_t *aBuf, uint16_t aLength) in HandleTlsReceive() argument
376 SuccessOrExit(mReceivedMessage->AppendBytes(aBuf, aLength)); in HandleTlsReceive()
[all …]
Dble_secure.hpp396 Error Send(uint8_t *aBuf, uint16_t aLength);
409 Error SendApplicationTlv(uint8_t *aBuf, uint16_t aLength);
428 Error HandleBleReceive(uint8_t *aBuf, uint16_t aLength);
470 static void HandleTlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength);
471 void HandleTlsReceive(uint8_t *aBuf, uint16_t aLength);
/openthread-latest/src/core/common/
Dmessage.cpp403 Error Message::AppendBytes(const void *aBuf, uint16_t aLength) in AppendBytes() argument
409 WriteBytes(oldLength, aBuf, aLength); in AppendBytes()
442 Error Message::PrependBytes(const void *aBuf, uint16_t aLength) in PrependBytes() argument
468 if (aBuf != nullptr) in PrependBytes()
470 WriteBytes(0, aBuf, aLength); in PrependBytes()
640 uint16_t Message::ReadBytes(uint16_t aOffset, void *aBuf, uint16_t aLength) const in ReadBytes() argument
642 uint8_t *bufPtr = reinterpret_cast<uint8_t *>(aBuf); in ReadBytes()
654 return static_cast<uint16_t>(bufPtr - reinterpret_cast<uint8_t *>(aBuf)); in ReadBytes()
657 uint16_t Message::ReadBytes(const OffsetRange &aOffsetRange, void *aBuf) const in ReadBytes()
659 return ReadBytes(aOffsetRange.GetOffset(), aBuf, aOffsetRange.GetLength()); in ReadBytes()
[all …]
Dmessage.hpp605 Error PrependBytes(const void *aBuf, uint16_t aLength);
693 Error AppendBytes(const void *aBuf, uint16_t aLength);
772 uint16_t ReadBytes(uint16_t aOffset, void *aBuf, uint16_t aLength) const;
783 uint16_t ReadBytes(const OffsetRange &aOffsetRange, void *aBuf) const;
799 Error Read(uint16_t aOffset, void *aBuf, uint16_t aLength) const;
815 Error Read(const OffsetRange &aOffsetRange, void *aBuf, uint16_t aLength) const;
879 …bool CompareBytes(uint16_t aOffset, const void *aBuf, uint16_t aLength, ByteMatcher aMatcher = nul…
936 void WriteBytes(uint16_t aOffset, const void *aBuf, uint16_t aLength);
/openthread-latest/src/core/meshcop/
Dsecure_transport.hpp126 typedef void (*ReceiveHandler)(void *aContext, uint8_t *aBuf, uint16_t aLength);
550 static int HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength);
551 int HandleMbedtlsReceive(unsigned char *aBuf, size_t aLength);
553 static int HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength);
554 int HandleMbedtlsTransmit(const unsigned char *aBuf, size_t aLength);
594 void HandleReceive(const uint8_t *aBuf, uint16_t aLength);
595 …Error HandleSecureTransportSend(const uint8_t *aBuf, uint16_t aLength, Message::SubType aMessageSu…
/openthread-latest/src/ncp/
Dncp_hdlc.cpp273 extern "C" void otNcpHdlcReceive(const uint8_t *aBuf, uint16_t aBufLength) in otNcpHdlcReceive() argument
279 ncpHdlc->HandleHdlcReceiveDone(aBuf, aBufLength); in otNcpHdlcReceive()
283 void NcpHdlc::HandleHdlcReceiveDone(const uint8_t *aBuf, uint16_t aBufLength) in HandleHdlcReceiveDone() argument
285 mFrameDecoder.Decode(aBuf, aBufLength); in HandleHdlcReceiveDone()
315 void NcpHdlc::HandleError(otError aError, uint8_t *aBuf, uint16_t aBufLength) in HandleError() argument
331 snprintf(&hexbuf[i * 3], sizeof(hexbuf) - i * 3, " %02X", static_cast<uint8_t>(aBuf[i])); in HandleError()
Dncp_hdlc.hpp85 void HandleHdlcReceiveDone(const uint8_t *aBuf, uint16_t aBufLength);
133 void HandleError(otError aError, uint8_t *aBuf, uint16_t aBufLength);
/openthread-latest/examples/platforms/utils/
Duart.h84 otError otPlatUartSend(const uint8_t *aBuf, uint16_t aBufLength);
112 extern void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength);
Duart_rtt.c88 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-latest/examples/platforms/simulation/
Dspi-stubs.c76 void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength) in otPlatUartReceived() argument
78 OT_UNUSED_VARIABLE(aBuf); in otPlatUartReceived()
/openthread-latest/include/openthread/
Dncp.h66 typedef int (*otNcpHdlcSendCallback)(const uint8_t *aBuf, uint16_t aBufLength);
81 void otNcpHdlcReceive(const uint8_t *aBuf, uint16_t aBufLength);
Dmessage.h328 otError otMessageAppend(otMessage *aMessage, const void *aBuf, uint16_t aLength);
349 uint16_t otMessageRead(const otMessage *aMessage, uint16_t aOffset, void *aBuf, uint16_t aLength);
370 int otMessageWrite(otMessage *aMessage, uint16_t aOffset, const void *aBuf, uint16_t aLength);
Dtcp_ext.h236 int otTcpMbedTlsSslSendCallback(void *aCtx, const unsigned char *aBuf, size_t aLen);
247 int otTcpMbedTlsSslRecvCallback(void *aCtx, unsigned char *aBuf, size_t aLen);
Dble_secure.h408 otError otBleSecureSend(otInstance *aInstance, uint8_t *aBuf, uint16_t aLength);
422 otError otBleSecureSendApplicationTlv(otInstance *aInstance, uint8_t *aBuf, uint16_t aLength);
/openthread-latest/src/core/crypto/
Dsha256.cpp54 void Sha256::Update(const void *aBuf, uint16_t aBufLength) in Update() argument
56 SuccessOrAssert(otPlatCryptoSha256Update(&mContext, aBuf, aBufLength)); in Update()
Dhmac_sha256.cpp54 void HmacSha256::Update(const void *aBuf, uint16_t aBufLength) in Update() argument
56 SuccessOrAssert(otPlatCryptoHmacSha256Update(&mContext, aBuf, aBufLength)); in Update()
/openthread-latest/src/core/coap/
Dcoap_secure.cpp202 void CoapSecure::HandleDtlsReceive(void *aContext, uint8_t *aBuf, uint16_t aLength) in HandleDtlsReceive() argument
204 return static_cast<CoapSecure *>(aContext)->HandleDtlsReceive(aBuf, aLength); in HandleDtlsReceive()
207 void CoapSecure::HandleDtlsReceive(uint8_t *aBuf, uint16_t aLength) in HandleDtlsReceive() argument
212 SuccessOrExit(message->AppendBytes(aBuf, aLength)); in HandleDtlsReceive()
/openthread-latest/tests/fuzz/
Dncp_hdlc_received.cpp46 static int HdlcSend(const uint8_t *aBuf, uint16_t aBufLength) in HdlcSend() argument
48 OT_UNUSED_VARIABLE(aBuf); in HdlcSend()
/openthread-latest/include/openthread/platform/
Dcrypto.h364 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);

12