Home
last modified time | relevance | path

Searched refs:aContext (Results 1 – 25 of 220) sorted by relevance

123456789

/openthread-3.5.0/src/core/crypto/
Dcrypto_platform.cpp88 OT_TOOL_WEAK otError otPlatCryptoAesInit(otCryptoContext *aContext) in otPlatCryptoAesInit() argument
93 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesInit()
94 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesInit()
96 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesInit()
103 OT_TOOL_WEAK otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey) in otPlatCryptoAesSetKey() argument
109 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesSetKey()
110 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesSetKey()
112 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesSetKey()
120 OT_TOOL_WEAK otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8… in otPlatCryptoAesEncrypt() argument
125 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesEncrypt()
[all …]
/openthread-3.5.0/include/openthread/platform/
Dcrypto.h325 otError otPlatCryptoHmacSha256Init(otCryptoContext *aContext);
337 otError otPlatCryptoHmacSha256Deinit(otCryptoContext *aContext);
350 otError otPlatCryptoHmacSha256Start(otCryptoContext *aContext, const otCryptoKey *aKey);
364 otError otPlatCryptoHmacSha256Update(otCryptoContext *aContext, const void *aBuf, uint16_t aBufLeng…
378 otError otPlatCryptoHmacSha256Finish(otCryptoContext *aContext, uint8_t *aBuf, size_t aBufLength);
394 otError otPlatCryptoAesInit(otCryptoContext *aContext);
407 otError otPlatCryptoAesSetKey(otCryptoContext *aContext, const otCryptoKey *aKey);
421 otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput);
433 otError otPlatCryptoAesFree(otCryptoContext *aContext);
448 otError otPlatCryptoHkdfInit(otCryptoContext *aContext);
[all …]
/openthread-3.5.0/src/posix/platform/
Dplatform-posix.h183 void platformRadioUpdateFdSet(otSysMainloopContext *aContext);
191 void platformRadioProcess(otInstance *aInstance, const otSysMainloopContext *aContext);
213 void platformUartUpdateFdSet(otSysMainloopContext *aContext);
221 void platformUartProcess(const otSysMainloopContext *aContext);
265 void platformNetifUpdateFdSet(otSysMainloopContext *aContext);
273 void platformNetifProcess(const otSysMainloopContext *aContext);
304 void virtualTimeProcess(otInstance *aInstance, const otSysMainloopContext *aContext);
313 void virtualTimeUpdateFdSet(otSysMainloopContext *aContext);
375 void platformTrelUpdateFdSet(otSysMainloopContext *aContext);
383 void platformTrelProcess(otInstance *aInstance, const otSysMainloopContext *aContext);
Ddaemon.cpp262 [](void *aContext, const char *aFormat, va_list aArguments) -> int { in SetUp() argument
263 return static_cast<Daemon *>(aContext)->OutputFormatV(aFormat, aArguments); in SetUp()
307 void Daemon::Update(otSysMainloopContext &aContext) in Update() argument
311 FD_SET(mListenSocket, &aContext.mReadFdSet); in Update()
312 FD_SET(mListenSocket, &aContext.mErrorFdSet); in Update()
314 if (aContext.mMaxFd < mListenSocket) in Update()
316 aContext.mMaxFd = mListenSocket; in Update()
322 FD_SET(mSessionSocket, &aContext.mReadFdSet); in Update()
323 FD_SET(mSessionSocket, &aContext.mErrorFdSet); in Update()
325 if (aContext.mMaxFd < mSessionSocket) in Update()
[all …]
Dsystem.cpp63 static void processStateChange(otChangedFlags aFlags, void *aContext) in processStateChange() argument
65 otInstance *instance = static_cast<otInstance *>(aContext); in processStateChange()
293 static int trySelect(otSysMainloopContext &aContext) in trySelect() argument
296 fd_set originReadFdSet = aContext.mReadFdSet; in trySelect()
297 fd_set originWriteFdSet = aContext.mWriteFdSet; in trySelect()
298 fd_set originErrorFdSet = aContext.mErrorFdSet; in trySelect()
301 …rval = select(aContext.mMaxFd + 1, &aContext.mReadFdSet, &aContext.mWriteFdSet, &aContext.mErrorFd… in trySelect()
305 aContext.mReadFdSet = originReadFdSet; in trySelect()
306 aContext.mWriteFdSet = originWriteFdSet; in trySelect()
307 aContext.mErrorFdSet = originErrorFdSet; in trySelect()
Dmainloop.hpp58 virtual void Update(otSysMainloopContext &aContext) = 0;
66 virtual void Process(const otSysMainloopContext &aContext) = 0;
91 void Update(otSysMainloopContext &aContext);
99 void Process(const otSysMainloopContext &aContext);
Dtrel.cpp391 OT_TOOL_WEAK void trelDnssdUpdateFdSet(otSysMainloopContext *aContext) in trelDnssdUpdateFdSet() argument
396 OT_UNUSED_VARIABLE(aContext); in trelDnssdUpdateFdSet()
399 OT_TOOL_WEAK void trelDnssdProcess(otInstance *aInstance, const otSysMainloopContext *aContext) in trelDnssdProcess() argument
404 OT_UNUSED_VARIABLE(aContext); in trelDnssdProcess()
524 void platformTrelUpdateFdSet(otSysMainloopContext *aContext) in platformTrelUpdateFdSet() argument
526 assert(aContext != nullptr); in platformTrelUpdateFdSet()
530 FD_SET(sSocket, &aContext->mReadFdSet); in platformTrelUpdateFdSet()
534 FD_SET(sSocket, &aContext->mWriteFdSet); in platformTrelUpdateFdSet()
537 if (aContext->mMaxFd < sSocket) in platformTrelUpdateFdSet()
539 aContext->mMaxFd = sSocket; in platformTrelUpdateFdSet()
[all …]
Dmainloop.cpp61 void Manager::Update(otSysMainloopContext &aContext) in Update() argument
65 source->Update(aContext); in Update()
69 void Manager::Process(const otSysMainloopContext &aContext) in Process() argument
73 source->Process(aContext); in Process()
/openthread-3.5.0/src/core/coap/
Dcoap_secure.cpp70 Error CoapSecure::Start(MeshCoP::Dtls::TransportCallback aCallback, void *aContext) in Start() argument
77 SuccessOrExit(error = mDtls.Bind(aCallback, aContext)); in Start()
91 …or CoapSecure::Connect(const Ip6::SockAddr &aSockAddr, ConnectedCallback aCallback, void *aContext) in Connect() argument
93 mConnectedCallback.Set(aCallback, aContext); in Connect()
110 void *aContext, in SendMessage() argument
118 …Base::SendMessage(aMessage, mDtls.GetMessageInfo(), TxParameters::GetDefault(), aHandler, aContext, in SendMessage()
128 void *aContext, in SendMessage() argument
132 …:SendMessage(aMessage, aMessageInfo, TxParameters::GetDefault(), aHandler, aContext, aTransmitHook, in SendMessage()
136 Error CoapSecure::SendMessage(Message &aMessage, ResponseHandler aHandler, void *aContext) in SendMessage() argument
142 error = CoapBase::SendMessage(aMessage, mDtls.GetMessageInfo(), aHandler, aContext); in SendMessage()
[all …]
Dcoap_secure.hpp62 typedef void (*ConnectedCallback)(bool aConnected, void *aContext);
94 Error Start(MeshCoP::Dtls::TransportCallback aCallback, void *aContext);
103 void SetConnectedCallback(ConnectedCallback aCallback, void *aContext) in SetConnectedCallback() argument
105 mConnectedCallback.Set(aCallback, aContext); in SetConnectedCallback()
124 Error Connect(const Ip6::SockAddr &aSockAddr, ConnectedCallback aCallback, void *aContext);
268 void SetClientConnectedCallback(ConnectedCallback aCallback, void *aContext) in SetClientConnectedCallback() argument
270 mConnectedCallback.Set(aCallback, aContext); in SetClientConnectedCallback()
305 void *aContext = nullptr,
331 void *aContext = nullptr,
351 …Error SendMessage(Message &aMessage, ResponseHandler aHandler = nullptr, void *aContext = nullptr);
[all …]
/openthread-3.5.0/src/core/api/
Dmesh_diag_api.cpp49 void *aContext) in otMeshDiagDiscoverTopology() argument
52 …eturn AsCoreType(aInstance).Get<Utils::MeshDiag>().DiscoverTopology(*aConfig, aCallback, aContext); in otMeshDiagDiscoverTopology()
70 void *aContext) in otMeshDiagQueryChildTable() argument
72 … return AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildTable(aRloc16, aCallback, aContext); in otMeshDiagQueryChildTable()
78 void *aContext) in otMeshDiagQueryChildrenIp6Addrs() argument
80 …n AsCoreType(aInstance).Get<Utils::MeshDiag>().QueryChildrenIp6Addrs(aRloc16, aCallback, aContext); in otMeshDiagQueryChildrenIp6Addrs()
86 void *aContext) in otMeshDiagQueryRouterNeighborTable() argument
88 …sCoreType(aInstance).Get<Utils::MeshDiag>().QueryRouterNeighborTable(aRloc16, aCallback, aContext); in otMeshDiagQueryRouterNeighborTable()
Dcoap_secure_api.cpp108 void *aContext) in otCoapSecureConnect() argument
110 …sCoreType(aInstance).GetApplicationCoapSecure().Connect(AsCoreType(aSockAddr), aHandler, aContext); in otCoapSecureConnect()
131 void *aContext, in otCoapSecureSendRequestBlockWise() argument
135 …Type(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext, in otCoapSecureSendRequestBlockWise()
143 void *aContext) in otCoapSecureSendRequest() argument
145 …ype(aInstance).GetApplicationCoapSecure().SendMessage(AsCoapMessage(aMessage), aHandler, aContext); in otCoapSecureSendRequest()
172 void *aContext) in otCoapSecureSetClientConnectedCallback() argument
174 AsCoreType(aInstance).GetApplicationCoapSecure().SetClientConnectedCallback(aHandler, aContext); in otCoapSecureSetClientConnectedCallback()
177 …otCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext) in otCoapSecureSetDefaultHandler() argument
179 AsCoreType(aInstance).GetApplicationCoapSecure().SetDefaultHandler(aHandler, aContext); in otCoapSecureSetDefaultHandler()
[all …]
Ddns_api.cpp101 void *aContext, in otDnsClientResolveAddress() argument
106 return AsCoreType(aInstance).Get<Dns::Client>().ResolveAddress(aHostName, aCallback, aContext, in otDnsClientResolveAddress()
114 void *aContext, in otDnsClientResolveIp4Address() argument
119 … return AsCoreType(aInstance).Get<Dns::Client>().ResolveIp4Address(aHostName, aCallback, aContext, in otDnsClientResolveIp4Address()
148 void *aContext, in otDnsClientBrowse() argument
153 …return AsCoreType(aInstance).Get<Dns::Client>().Browse(aServiceName, aCallback, aContext, AsCoreTy… in otDnsClientBrowse()
201 void *aContext, in otDnsClientResolveService() argument
207 …ype(aInstance).Get<Dns::Client>().ResolveService(aInstanceLabel, aServiceName, aCallback, aContext, in otDnsClientResolveService()
215 void *aContext, in otDnsClientResolveServiceAndHostAddress() argument
222 aInstanceLabel, aServiceName, aCallback, aContext, AsCoreTypePtr(aConfig)); in otDnsClientResolveServiceAndHostAddress()
/openthread-3.5.0/src/core/meshcop/
Ddtls.hpp91 typedef void (*ConnectedHandler)(void *aContext, bool aConnected);
101 typedef void (*ReceiveHandler)(void *aContext, uint8_t *aBuf, uint16_t aLength);
111 …typedef Error (*TransportCallback)(void *aContext, ot::Message &aMessage, const Ip6::MessageInfo &…
124 Error Open(ReceiveHandler aReceiveHandler, ConnectedHandler aConnectedHandler, void *aContext);
157 Error Bind(TransportCallback aCallback, void *aContext);
382 …static void HandleMbedtlsDebug(void *aContext, int aLevel, const char *aFile, int aLine, const cha…
385 static int HandleMbedtlsGetTimer(void *aContext);
388 static void HandleMbedtlsSetTimer(void *aContext, uint32_t aIntermediate, uint32_t aFinish);
391 static int HandleMbedtlsReceive(void *aContext, unsigned char *aBuf, size_t aLength);
394 static int HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength);
[all …]
/openthread-3.5.0/include/openthread/
Dmesh_diag.h171 …d (*otMeshDiagDiscoverCallback)(otError aError, otMeshDiagRouterInfo *aRouterInfo, void *aContext);
190 void *aContext);
282 void *aContext);
302 void *aContext);
323 void *aContext);
343 void *aContext);
385 … void *aContext);
405 void *aContext);
Dcoap_secure.h77 typedef void (*otHandleCoapSecureClientConnect)(bool aConnected, void *aContext);
201 void *aContext);
258 void *aContext,
282 void *aContext);
328 …tCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext);
341 void *aContext);
362 void *aContext,
Ddns_client.h217 …oid (*otDnsAddressCallback)(otError aError, const otDnsAddressResponse *aResponse, void *aContext);
241 void *aContext,
271 void *aContext,
341 … void (*otDnsBrowseCallback)(otError aError, const otDnsBrowseResponse *aResponse, void *aContext);
385 void *aContext,
515 …oid (*otDnsServiceCallback)(otError aError, const otDnsServiceResponse *aResponse, void *aContext);
554 void *aContext,
591 void *aContext,
Dbackbone_router_ftd.h245 … void (*otBackboneRouterMulticastListenerCallback)(void *aContext,
259 … void *aContext);
357 typedef void (*otBackboneRouterNdProxyCallback)(void *aContext,
371 void *aContext);
418 typedef void (*otBackboneRouterDomainPrefixCallback)(void *aContext,
431 void *aContext);
Dcoap.h344 typedef void (*otCoapResponseHandler)(void *aContext,
357 typedef void (*otCoapRequestHandler)(void *aContext, otMessage *aMessage, const otMessageInfo *aMes…
378 typedef otError (*otCoapBlockwiseReceiveHook)(void *aContext,
405 typedef otError (*otCoapBlockwiseTransmitHook)(void *aContext,
890 void *aContext,
920 void *aContext,
951 void *aContext, in otCoapSendRequestBlockWise() argument
956 …CoapSendRequestBlockWiseWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL, in otCoapSendRequestBlockWise()
980 void *aContext) in otCoapSendRequest() argument
983 …return otCoapSendRequestWithParameters(aInstance, aMessage, aMessageInfo, aHandler, aContext, NULL… in otCoapSendRequest()
[all …]
Dcli.h55 otError (*mCommand)(void *aContext,
80 typedef int (*otCliOutputCallback)(void *aContext, const char *aFormat, va_list aArguments);
90 void otCliInit(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext);
110 otError otCliSetUserCommands(const otCliCommand *aUserCommands, uint8_t aLength, void *aContext);
/openthread-3.5.0/src/cli/
Dcli.hpp135 explicit Interpreter(Instance *aInstance, otCliOutputCallback aCallback, void *aContext);
158 static void Initialize(otInstance *aInstance, otCliOutputCallback aCallback, void *aContext);
199 otError SetUserCommands(const otCliCommand *aCommands, uint8_t aLength, void *aContext);
422 static void HandleLocateResult(void *aContext,
429 …void HandleMeshDiagDiscoverDone(otError aError, otMeshDiagRouterInfo *aRouterInfo, void *aContext);
433 void *aContext);
438 void *aContext);
444 … void *aContext);
450 static void HandleMlrRegResult(void *aContext,
465 static void HandlePingReply(const otPingSenderReply *aReply, void *aContext);
[all …]
Dcli_coap_secure.hpp112 … static void HandleRequest(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
115 …static void HandleResponse(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo,…
120 static otError BlockwiseReceiveHook(void *aContext,
131 static otError BlockwiseTransmitHook(void *aContext,
140 …static void DefaultHandler(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
144 static void HandleConnected(bool aConnected, void *aContext);
Dcli_commissioner.hpp93 static void HandleStateChanged(otCommissionerState aState, void *aContext);
99 void *aContext);
107 void *aContext);
110 static void HandlePanIdConflict(uint16_t aPanId, uint32_t aChannelMask, void *aContext);
/openthread-3.5.0/src/core/thread/
Dnetwork_data_leader.cpp138 Error LeaderBase::GetContext(const Ip6::Address &aAddress, Lowpan::Context &aContext) const in GetContext()
143 aContext.mPrefix.SetLength(0); in GetContext()
147 GetContextForMeshLocalPrefix(aContext); in GetContext()
159 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext()
161 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext()
162 aContext.mContextId = contextTlv->GetContextId(); in GetContext()
163 aContext.mCompressFlag = contextTlv->IsCompress(); in GetContext()
164 aContext.mIsValid = true; in GetContext()
168 return (aContext.mPrefix.GetLength() > 0) ? kErrorNone : kErrorNotFound; in GetContext()
171 Error LeaderBase::GetContext(uint8_t aContextId, Lowpan::Context &aContext) const in GetContext()
[all …]
/openthread-3.5.0/src/ncp/
Dncp_base.hpp235 static void HandleFrameRemovedFromNcpBuffer(void *aContext,
262 static void HandleStateChanged(otChangedFlags aFlags, void *aContext);
265 static void HandlePcapFrame(const otRadioFrame *aFrame, bool aIsTx, void *aContext);
268 static void HandleTimeSyncUpdate(void *aContext);
276 static void HandleParentResponseInfo(otThreadParentResponseInfo *aInfo, void *aContext);
281 static void HandleDatagramFromStack(otMessage *aMessage, void *aContext);
287 static void HandleActiveScanResult_Jump(otActiveScanResult *aResult, void *aContext);
290 static void HandleEnergyScanResult_Jump(otEnergyScanResult *aResult, void *aContext);
293 static void HandleJamStateChange_Jump(bool aJamState, void *aContext);
300 void *aContext);
[all …]

123456789