Home
last modified time | relevance | path

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

/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/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/test/
Dfake_link_sync_test.cpp37 static void init(void *linkContext, in init() argument
39 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in init()
44 static void deinit(void *linkContext) { in deinit() argument
45 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in deinit()
50 static enum ChppLinkErrorCode send(void *linkContext, size_t len) { in send() argument
51 auto context = static_cast<struct ChppTestLinkState *>(linkContext); in send()
68 uint8_t *getTxBuffer(void *linkContext) { in getTxBuffer() argument
69 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()
/system/chre/chpp/
Dtransport.c434 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppProcessTransportLoopbackRequest()
829 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddHeader()
850 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddPayload()
891 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAddFooter()
977 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppTransportDoWork()
979 context->linkApi->getConfig(context->linkContext); in chppTransportDoWork()
1075 uint8_t *linkTxBuffer = context->linkApi->getTxBuffer(context->linkContext); in chppAppendToPendingTxPacket()
1080 context->linkApi->getConfig(context->linkContext).txBufferLen); in chppAppendToPendingTxPacket()
1181 context->linkApi->send(context->linkContext, context->linkBufferSize); in chppSendPendingPacket()
1234 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…