Home
last modified time | relevance | path

Searched refs:rxHeader (Results 1 – 14 of 14) sorted by relevance

/system/chre/chpp/
Dapp.c59 struct ChppAppHeader *rxHeader, size_t len);
100 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppProcessPredefinedClientRequest() local
104 switch (rxHeader->handle) { in chppProcessPredefinedClientRequest()
127 rxHeader->handle, rxHeader->command, rxHeader->transaction); in chppProcessPredefinedClientRequest()
145 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppProcessPredefinedServiceResponse() local
149 switch (rxHeader->handle) { in chppProcessPredefinedServiceResponse()
179 rxHeader->handle, rxHeader->command, rxHeader->transaction, len); in chppProcessPredefinedServiceResponse()
197 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppProcessPredefinedClientNotification() local
206 UNUSED_VAR(rxHeader); in chppProcessPredefinedClientNotification()
224 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppProcessPredefinedServiceNotification() local
[all …]
Dtransport.c184 memcpy(((uint8_t *)&context->rxHeader) + context->rxStatus.locInState, buf, in chppConsumeHeader()
199 } else if (context->rxHeader.length == 0) { in chppConsumeHeader()
209 tempPayload = chppMalloc(context->rxHeader.length); in chppConsumeHeader()
214 context->rxDatagram.length + context->rxHeader.length, in chppConsumeHeader()
224 context->rxDatagram.length += context->rxHeader.length; in chppConsumeHeader()
246 CHPP_ASSERT(context->rxStatus.locInState < context->rxHeader.length); in chppConsumePayload()
248 MIN(len, (context->rxHeader.length - context->rxStatus.locInState)); in chppConsumePayload()
254 if (context->rxStatus.locInState == context->rxHeader.length) { in chppConsumePayload()
286 if (CHPP_TRANSPORT_GET_ERROR(context->rxHeader.packetCode) != in chppConsumeFooter()
290 context->rxHeader.length, context->rxHeader.seq, in chppConsumeFooter()
[all …]
Dclients.c529 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppClientProcessOpenResponse() local
530 if (rxHeader->error != CHPP_APP_ERROR_NONE) { in chppClientProcessOpenResponse()
/system/chre/chpp/clients/
Dgnss.c174 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchGnssResponse() local
179 if (rxHeader->command > CHPP_GNSS_CLIENT_REQUEST_MAX) { in chppDispatchGnssResponse()
184 &gnssClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchGnssResponse()
188 switch (rxHeader->command) { in chppDispatchGnssResponse()
250 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchGnssNotification() local
255 switch (rxHeader->command) { in chppDispatchGnssNotification()
386 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppGnssGetCapabilitiesResult() local
387 CHPP_LOGE("GetCapabilities resp. too short. err=%" PRIu8, rxHeader->error); in chppGnssGetCapabilitiesResult()
422 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppGnssControlLocationSessionResult() local
423 CHPP_LOGE("ControlLocation resp. too short. err=%" PRIu8, rxHeader->error); in chppGnssControlLocationSessionResult()
[all …]
Dwifi.c180 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchWifiResponse() local
185 if (rxHeader->command > CHPP_WIFI_CLIENT_REQUEST_MAX) { in chppDispatchWifiResponse()
190 &wifiClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchWifiResponse()
194 switch (rxHeader->command) { in chppDispatchWifiResponse()
252 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchWifiNotification() local
257 switch (rxHeader->command) { in chppDispatchWifiNotification()
403 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppWifiGetCapabilitiesResult() local
404 CHPP_LOGE("GetCapabilities resp. too short. err=%" PRIu8, rxHeader->error); in chppWifiGetCapabilitiesResult()
439 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppWifiConfigureScanMonitorResult() local
440 CHPP_LOGE("ScanMonitor resp. too short. err=%" PRIu8, rxHeader->error); in chppWifiConfigureScanMonitorResult()
[all …]
Dwwan.c155 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchWwanResponse() local
160 if (rxHeader->command > CHPP_WWAN_CLIENT_REQUEST_MAX) { in chppDispatchWwanResponse()
165 &wwanClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchWwanResponse()
169 switch (rxHeader->command) { in chppDispatchWwanResponse()
305 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppWwanGetCapabilitiesResult() local
306 CHPP_LOGE("GetCapabilities resp. too short. err=%" PRIu8, rxHeader->error); in chppWwanGetCapabilitiesResult()
340 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppWwanGetCellInfoAsyncResult() local
346 CHPP_LOGE("GetCellInfo resp. too short. err=%" PRIu8, rxHeader->error); in chppWwanGetCellInfoAsyncResult()
348 if (rxHeader->error == CHPP_APP_ERROR_NONE) { in chppWwanGetCellInfoAsyncResult()
351 errorCode = chppAppErrorToChreError(rxHeader->error); in chppWwanGetCellInfoAsyncResult()
[all …]
Ddiscovery.c296 const struct ChppAppHeader *rxHeader = (const struct ChppAppHeader *)buf; in chppDispatchDiscoveryServiceResponse() local
299 switch (rxHeader->command) { in chppDispatchDiscoveryServiceResponse()
/system/chre/chpp/services/
Ddiscovery.c35 const struct ChppAppHeader *rxHeader);
85 const struct ChppAppHeader *rxHeader = (const struct ChppAppHeader *)buf; in chppDispatchDiscoveryClientRequest() local
88 switch (rxHeader->command) { in chppDispatchDiscoveryClientRequest()
91 chppDiscoveryDiscoverAll(context, rxHeader); in chppDispatchDiscoveryClientRequest()
Dwwan.c138 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchWwanRequest() local
147 switch (rxHeader->command) { in chppDispatchWwanRequest()
150 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest()
151 error = chppWwanServiceOpen(wwanServiceContext, rxHeader); in chppDispatchWwanRequest()
157 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest()
158 error = chppWwanServiceClose(wwanServiceContext, rxHeader); in chppDispatchWwanRequest()
164 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest()
165 error = chppWwanServiceGetCapabilities(wwanServiceContext, rxHeader); in chppDispatchWwanRequest()
171 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest()
172 error = chppWwanServiceGetCellInfoAsync(wwanServiceContext, rxHeader); in chppDispatchWwanRequest()
Dgnss.c150 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchGnssRequest() local
160 switch (rxHeader->command) { in chppDispatchGnssRequest()
163 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest()
164 error = chppGnssServiceOpen(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
170 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest()
171 error = chppGnssServiceClose(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
177 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest()
178 error = chppGnssServiceGetCapabilities(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
184 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest()
186 rxHeader, buf, len); in chppDispatchGnssRequest()
[all …]
Dwifi.c146 struct ChppAppHeader *rxHeader = (struct ChppAppHeader *)buf; in chppDispatchWifiRequest() local
156 switch (rxHeader->command) { in chppDispatchWifiRequest()
159 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest()
160 error = chppWifiServiceOpen(wifiServiceContext, rxHeader); in chppDispatchWifiRequest()
166 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest()
167 error = chppWifiServiceClose(wifiServiceContext, rxHeader); in chppDispatchWifiRequest()
173 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest()
174 error = chppWifiServiceGetCapabilities(wifiServiceContext, rxHeader); in chppDispatchWifiRequest()
180 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest()
182 rxHeader, buf, len); in chppDispatchWifiRequest()
[all …]
Dtimesync.c71 const struct ChppAppHeader *rxHeader = (const struct ChppAppHeader *)buf; in chppDispatchTimesyncClientRequest() local
74 switch (rxHeader->command) { in chppDispatchTimesyncClientRequest()
/system/chre/chpp/include/chpp/
Dtransport.h425 struct ChppTransportHeader rxHeader; // Rx packet header member
/system/chre/chpp/test/
Dtransport_test.cpp431 EXPECT_EQ(mTransportContext.rxHeader.length, len); in TEST_P()
553 EXPECT_EQ(mTransportContext.rxHeader.length, payloadLen); in TEST_F()
581 EXPECT_EQ(mTransportContext.rxHeader.length, payloadLen); in TEST_F()
614 EXPECT_EQ(mTransportContext.rxHeader.length, payloadLen); in TEST_F()