Lines Matching refs:gnssServiceContext
102 struct ChppGnssServiceState *gnssServiceContext,
105 struct ChppGnssServiceState *gnssServiceContext,
108 struct ChppGnssServiceState *gnssServiceContext,
111 struct ChppGnssServiceState *gnssServiceContext,
114 struct ChppGnssServiceState *gnssServiceContext,
117 struct ChppGnssServiceState *gnssServiceContext,
154 struct ChppGnssServiceState *gnssServiceContext = in chppDispatchGnssRequest() local
162 rRState = &gnssServiceContext->open; in chppDispatchGnssRequest()
164 error = chppGnssServiceOpen(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
169 rRState = &gnssServiceContext->close; in chppDispatchGnssRequest()
171 error = chppGnssServiceClose(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
176 rRState = &gnssServiceContext->getCapabilities; in chppDispatchGnssRequest()
178 error = chppGnssServiceGetCapabilities(gnssServiceContext, rxHeader); in chppDispatchGnssRequest()
183 rRState = &gnssServiceContext->controlLocationSession; in chppDispatchGnssRequest()
185 error = chppGnssServiceControlLocationSession(gnssServiceContext, in chppDispatchGnssRequest()
191 rRState = &gnssServiceContext->controlMeasurementSession; in chppDispatchGnssRequest()
193 error = chppGnssServiceControlMeasurementSession(gnssServiceContext, in chppDispatchGnssRequest()
199 rRState = &gnssServiceContext->configurePassiveLocationListener; in chppDispatchGnssRequest()
202 gnssServiceContext, rxHeader, buf, len); in chppDispatchGnssRequest()
232 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceOpen() argument
246 if (gnssServiceContext->service.openState == CHPP_OPEN_STATE_OPENED) { in chppGnssServiceOpen()
251 } else if (!gnssServiceContext->api->open( in chppGnssServiceOpen()
252 gnssServiceContext->service.appContext->systemApi, in chppGnssServiceOpen()
260 gnssServiceContext->service.openState = CHPP_OPEN_STATE_OPENED; in chppGnssServiceOpen()
270 chppSendTimestampedResponseOrFail(&gnssServiceContext->service, in chppGnssServiceOpen()
271 &gnssServiceContext->open, response, in chppGnssServiceOpen()
288 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceClose() argument
292 gnssServiceContext->api->close(); in chppGnssServiceClose()
293 gnssServiceContext->service.openState = CHPP_OPEN_STATE_CLOSED; in chppGnssServiceClose()
305 chppSendTimestampedResponseOrFail(&gnssServiceContext->service, in chppGnssServiceClose()
306 &gnssServiceContext->close, response, in chppGnssServiceClose()
319 struct ChppGnssServiceState *gnssServiceContext = in chppGnssServiceNotifyReset() local
322 if (gnssServiceContext->service.openState != CHPP_OPEN_STATE_OPENED) { in chppGnssServiceNotifyReset()
326 gnssServiceContext->service.openState = CHPP_OPEN_STATE_CLOSED; in chppGnssServiceNotifyReset()
327 gnssServiceContext->api->close(); in chppGnssServiceNotifyReset()
341 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceGetCapabilities() argument
354 response->params.capabilities = gnssServiceContext->api->getCapabilities(); in chppGnssServiceGetCapabilities()
359 chppSendTimestampedResponseOrFail(&gnssServiceContext->service, in chppGnssServiceGetCapabilities()
360 &gnssServiceContext->getCapabilities, in chppGnssServiceGetCapabilities()
384 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceControlLocationSession() argument
396 if (!gnssServiceContext->api->controlLocationSession( in chppGnssServiceControlLocationSession()
423 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceControlMeasurementSession() argument
435 if (!gnssServiceContext->api->controlMeasurementSession( in chppGnssServiceControlMeasurementSession()
460 struct ChppGnssServiceState *gnssServiceContext, in chppGnssServiceConfigurePassiveLocationListener() argument
471 if (!gnssServiceContext->api->configurePassiveLocationListener( in chppGnssServiceConfigurePassiveLocationListener()
485 &gnssServiceContext->service, in chppGnssServiceConfigurePassiveLocationListener()
486 &gnssServiceContext->configurePassiveLocationListener, response, in chppGnssServiceConfigurePassiveLocationListener()