/system/chre/chpp/ |
D | services.c | 147 void chppServiceTimestampRequest(struct ChppRequestResponseState *rRState, in chppServiceTimestampRequest() argument 149 if (rRState->responseTimeNs == CHPP_TIME_NONE && in chppServiceTimestampRequest() 150 rRState->requestTimeNs != CHPP_TIME_NONE) { in chppServiceTimestampRequest() 152 rRState->requestTimeNs / CHPP_NSEC_PER_MSEC); in chppServiceTimestampRequest() 154 rRState->requestTimeNs = chppGetCurrentTimeNs(); in chppServiceTimestampRequest() 155 rRState->responseTimeNs = CHPP_TIME_NONE; in chppServiceTimestampRequest() 156 rRState->transaction = requestHeader->transaction; in chppServiceTimestampRequest() 159 void chppServiceTimestampResponse(struct ChppRequestResponseState *rRState) { in chppServiceTimestampResponse() argument 160 uint64_t previousResponseTime = rRState->responseTimeNs; in chppServiceTimestampResponse() 161 rRState->responseTimeNs = chppGetCurrentTimeNs(); in chppServiceTimestampResponse() [all …]
|
D | clients.c | 312 struct ChppRequestResponseState *rRState, in chppClientTimestampRequest() argument 315 if (rRState->requestState == CHPP_REQUEST_STATE_REQUEST_SENT) { in chppClientTimestampRequest() 317 requestHeader->transaction, rRState->transaction, in chppClientTimestampRequest() 318 rRState->requestTimeNs / CHPP_NSEC_PER_MSEC); in chppClientTimestampRequest() 321 rRState->responseTimeNs = CHPP_TIME_MAX; in chppClientTimestampRequest() 325 rRState->requestTimeNs = chppGetCurrentTimeNs(); in chppClientTimestampRequest() 326 rRState->requestState = CHPP_REQUEST_STATE_REQUEST_SENT; in chppClientTimestampRequest() 327 rRState->transaction = requestHeader->transaction; in chppClientTimestampRequest() 330 rRState->responseTimeNs = CHPP_TIME_MAX; in chppClientTimestampRequest() 333 rRState->responseTimeNs = timeoutNs + rRState->requestTimeNs; in chppClientTimestampRequest() [all …]
|
D | transport.c | 1290 struct ChppRequestResponseState *rRState = in chppTransportGetClientRequestTimeoutResponse() local 1294 if (rRState->requestState == CHPP_REQUEST_STATE_REQUEST_SENT && in chppTransportGetClientRequestTimeoutResponse() 1295 rRState->responseTimeNs != CHPP_TIME_NONE && in chppTransportGetClientRequestTimeoutResponse() 1296 rRState->responseTimeNs < lowestTimeout) { in chppTransportGetClientRequestTimeoutResponse() 1297 lowestTimeout = rRState->responseTimeNs; in chppTransportGetClientRequestTimeoutResponse()
|
/system/chre/chpp/services/ |
D | wwan.c | 141 struct ChppRequestResponseState *rRState = NULL; in chppDispatchWwanRequest() local 149 rRState = &wwanServiceContext->open; in chppDispatchWwanRequest() 150 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest() 156 rRState = &wwanServiceContext->close; in chppDispatchWwanRequest() 157 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest() 163 rRState = &wwanServiceContext->getCapabilities; in chppDispatchWwanRequest() 164 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest() 170 rRState = &wwanServiceContext->getCellInfoAsync; in chppDispatchWwanRequest() 171 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWwanRequest() 186 chppServiceTimestampResponse(rRState); in chppDispatchWwanRequest() [all …]
|
D | gnss.c | 156 struct ChppRequestResponseState *rRState = NULL; in chppDispatchGnssRequest() local 162 rRState = &gnssServiceContext->open; in chppDispatchGnssRequest() 163 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest() 169 rRState = &gnssServiceContext->close; in chppDispatchGnssRequest() 170 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest() 176 rRState = &gnssServiceContext->getCapabilities; in chppDispatchGnssRequest() 177 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest() 183 rRState = &gnssServiceContext->controlLocationSession; in chppDispatchGnssRequest() 184 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchGnssRequest() 191 rRState = &gnssServiceContext->controlMeasurementSession; in chppDispatchGnssRequest() [all …]
|
D | wifi.c | 152 struct ChppRequestResponseState *rRState = NULL; in chppDispatchWifiRequest() local 158 rRState = &wifiServiceContext->open; in chppDispatchWifiRequest() 159 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest() 165 rRState = &wifiServiceContext->close; in chppDispatchWifiRequest() 166 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest() 172 rRState = &wifiServiceContext->getCapabilities; in chppDispatchWifiRequest() 173 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest() 179 rRState = &wifiServiceContext->configureScanMonitorAsync; in chppDispatchWifiRequest() 180 chppServiceTimestampRequest(rRState, rxHeader); in chppDispatchWifiRequest() 187 rRState = &wifiServiceContext->requestScanAsync; in chppDispatchWifiRequest() [all …]
|
/system/chre/chpp/include/chpp/ |
D | clients.h | 251 struct ChppRequestResponseState *rRState, 274 struct ChppRequestResponseState *rRState, 298 struct ChppRequestResponseState *rRState, 320 struct ChppRequestResponseState *rRState, 328 struct ChppRequestResponseState *rRState, void *buf, size_t len,
|
D | services.h | 198 void chppServiceTimestampRequest(struct ChppRequestResponseState *rRState, 217 void chppServiceTimestampResponse(struct ChppRequestResponseState *rRState); 235 struct ChppRequestResponseState *rRState,
|
/system/chre/chpp/clients/ |
D | wwan.c | 69 struct ChppRequestResponseState rRState[CHPP_WWAN_CLIENT_REQUEST_MAX + 1]; member 110 .rRStateCount = ARRAY_SIZE(gWwanClientContext.rRState), 165 &wwanClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchWwanResponse() 252 &wwanClientContext->rRState[CHPP_WWAN_OPEN], in chppWwanClientNotifyReset() 270 &wwanClientContext->rRState[CHPP_WWAN_OPEN], in chppWwanClientNotifyMatch() 420 &gWwanClientContext.client, &gWwanClientContext.rRState[CHPP_WWAN_OPEN], in chppWwanClientOpen() 445 &gWwanClientContext.rRState[CHPP_WWAN_CLOSE], request, in chppWwanClientClose() 480 &gWwanClientContext.rRState[CHPP_WWAN_GET_CAPABILITIES], request, in chppWwanClientGetCapabilities() 509 &gWwanClientContext.rRState[CHPP_WWAN_GET_CELLINFO_ASYNC], request, in chppWwanClientGetCellInfoAsync() 535 &gWwanClientContext.client, gWwanClientContext.rRState, in chppRegisterWwanClient()
|
D | gnss.c | 68 struct ChppRequestResponseState rRState[CHPP_GNSS_CLIENT_REQUEST_MAX + 1]; member 111 .rRStateCount = ARRAY_SIZE(gGnssClientContext.rRState), 184 &gnssClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchGnssResponse() 333 &gGnssClientContext.rRState[CHPP_GNSS_OPEN], in chppGnssClientNotifyReset() 351 &gGnssClientContext.rRState[CHPP_GNSS_OPEN], in chppGnssClientNotifyMatch() 616 &gGnssClientContext.client, &gGnssClientContext.rRState[CHPP_GNSS_OPEN], in chppGnssClientOpen() 641 &gGnssClientContext.rRState[CHPP_GNSS_CLOSE], request, in chppGnssClientClose() 676 &gGnssClientContext.rRState[CHPP_GNSS_GET_CAPABILITIES], request, in chppGnssClientGetCapabilities() 718 &gGnssClientContext.rRState[CHPP_GNSS_CONTROL_LOCATION_SESSION], in chppGnssClientControlLocationSession() 764 &gGnssClientContext.rRState[CHPP_GNSS_CONTROL_MEASUREMENT_SESSION], in chppGnssClientControlMeasurementSession() [all …]
|
D | wifi.c | 76 struct ChppRequestResponseState rRState[CHPP_WIFI_CLIENT_REQUEST_MAX + 1]; member 120 .rRStateCount = ARRAY_SIZE(gWifiClientContext.rRState), 190 &wifiClientContext->rRState[rxHeader->command], rxHeader)) { in chppDispatchWifiResponse() 330 &wifiClientContext->rRState[CHPP_WIFI_OPEN], in chppWifiClientNotifyReset() 348 &wifiClientContext->rRState[CHPP_WIFI_OPEN], in chppWifiClientNotifyMatch() 644 &gWifiClientContext.client, &gWifiClientContext.rRState[CHPP_WIFI_OPEN], in chppWifiClientOpen() 669 &gWifiClientContext.rRState[CHPP_WIFI_CLOSE], request, in chppWifiClientClose() 704 &gWifiClientContext.rRState[CHPP_WIFI_GET_CAPABILITIES], request, in chppWifiClientGetCapabilities() 736 &gWifiClientContext.rRState[CHPP_WIFI_CONFIGURE_SCAN_MONITOR_ASYNC]; in chppWifiClientConfigureScanMonitor() 740 &gWifiClientContext.rRState[CHPP_WIFI_CONFIGURE_SCAN_MONITOR_ASYNC], in chppWifiClientConfigureScanMonitor() [all …]
|
/system/chre/chpp/test/ |
D | clients_test.cpp | 104 struct ChppRequestResponseState *rRState = in registerAndValidateRequestForTimeout() local 106 chppClientTimestampRequest(clientState, rRState, header, timeoutNs); in registerAndValidateRequestForTimeout() 128 struct ChppRequestResponseState *rRState = in registerAndValidateResponseForTimeout() local 131 chppClientTimestampResponse(clientState, rRState, header); in registerAndValidateResponseForTimeout()
|