Home
last modified time | relevance | path

Searched refs:linkContext (Results 1 – 12 of 12) sorted by relevance

/system/chre/chpp/platform/linux/
Dlink.c46 static void *linkSendThread(void *linkContext) { in linkSendThread() argument
48 (struct ChppLinuxLinkState *)(linkContext); in linkSendThread()
110 static void init(void *linkContext, in init() argument
113 (struct ChppLinuxLinkState *)(linkContext); in init()
127 static void deinit(void *linkContext) { in deinit() argument
129 (struct ChppLinuxLinkState *)(linkContext); in deinit()
143 static enum ChppLinkErrorCode send(void *linkContext, size_t len) { in send() argument
145 (struct ChppLinuxLinkState *)(linkContext); in send()
165 static void doWork(void *linkContext, uint32_t signal) { in doWork() argument
166 UNUSED_VAR(linkContext); in doWork()
[all …]
/system/chre/chpp/include/chpp/
Dlink.h93 void (*init)(void *linkContext, struct ChppTransportState *transportContext);
101 void (*deinit)(void *linkContext);
119 enum ChppLinkErrorCode (*send)(void *linkContext, size_t len);
132 void (*doWork)(void *linkContext, uint32_t signal);
143 void (*reset)(void *linkContext);
150 struct ChppLinkConfiguration (*getConfig)(void *linkContext);
163 uint8_t *(*getTxBuffer)(void *linkContext);
Dtransport.h410 void *linkContext; // Pointer to the link layer state member
454 struct ChppAppState *appContext, void *linkContext,
/system/chre/chpp/test/
Dfake_link_sync_test.cpp38 static void init(void *linkContext, in init() argument
40 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in init()
45 static void deinit(void *linkContext) { in deinit() argument
46 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in deinit()
51 static enum ChppLinkErrorCode send(void *linkContext, size_t len) { in send() argument
52 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in send()
69 uint8_t *getTxBuffer(void *linkContext) { in getTxBuffer() argument
70 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in getTxBuffer()
Dapp_test_base.cpp38 struct ChppLinuxLinkState *linkContext = in workThread() local
39 (struct ChppLinuxLinkState *)(transportContext->linkContext); in workThread()
40 pthread_setname_np(pthread_self(), linkContext->workThreadName); in workThread()
Dapp_notification_test.cpp48 auto linkContext = in workThread() local
49 static_cast<struct ChppLinuxLinkState *>(state->linkContext); in workThread()
51 pthread_setname_np(pthread_self(), linkContext->workThreadName); in workThread()
Dapp_discovery_test.cpp45 auto linkContext = in workThread() local
46 static_cast<struct ChppLinuxLinkState *>(state->linkContext); in workThread()
48 pthread_setname_np(pthread_self(), linkContext->workThreadName); in workThread()
Dapp_req_resp_test.cpp47 auto linkContext = in workThread() local
48 static_cast<struct ChppLinuxLinkState *>(state->linkContext); in workThread()
50 pthread_setname_np(pthread_self(), linkContext->workThreadName); in workThread()
/system/chre/chpp/
Dtransport.c454 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppProcessTransportLoopbackRequest()
849 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddHeader()
870 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddPayload()
911 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddFooter()
997 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppTransportDoWork()
999 context->linkApi->getConfig(context->linkContext); in chppTransportDoWork()
1110 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAppendToPendingTxPacket()
1115 context->linkApi->getConfig(context->linkContext).txBufferLen); in chppAppendToPendingTxPacket()
1216 context->linkApi->send(context->linkContext, context->linkBufferSize); in chppSendPendingPacket()
1269 transportContext->linkApi->reset(transportContext->linkContext); in chppReset()
[all …]
DQUICKSTART.md29 1. Allocate the linkContext, transportContext, and appContext structs that hold the state for each …
43 1. Deallocate the transportContext, appContext, and the linkContext structs
DREADME.md120 ## void chppTransportInit(\*transportContext, \*appContext, \*linkContext, \*linkApi)
124 After calling chppTransportInit, it is also necessary to separately initialize the linkContext - no…
145 ## [Link API] enum ChppLinkErrorCode send(\*linkContext, \*buf, len)
147 …link TxBuffer (see getTxBuffer), with its length specified as len. The linkContext should include …
DRELEASE_NOTES.md228 …e a `struct ChppPlatformLinkParameters *`. You should cast that `void* linkContext` pointer to the…