Lines Matching refs:session_handle
211 void OnChannelConfig(uint32_t session_handle, uint8_t channel) { in OnChannelConfig() argument
214 auto pSessionInfo = GetSessionInfo(session_handle); in OnChannelConfig()
232 auto session_handle = elem.first; in OnCountryCodeChanged() local
240 blocked_session_handles.push_back(session_handle); in OnCountryCodeChanged()
251 for (auto session_handle : blocked_session_handles) { in OnCountryCodeChanged() local
252 …L_D("SessionTrack: stop session (handle=0x%08x) due to country code restrictions", session_handle); in OnCountryCodeChanged()
254 StopRanging(session_handle); in OnCountryCodeChanged()
272 … uint32_t session_handle = le_bytes_to_cpu<uint32_t>(&packet[UCI_MSG_SESSION_START_HANDLE_OFFSET]); in OnSessionStart() local
277 pSessionInfo = GetSessionInfo(session_handle); in OnSessionStart()
284 auto result = QueryStsIndex(session_handle); in OnSessionStart()
286 … NXPLOG_UCIHAL_E("SessionTrack: failed to query sts index, session_handle=0x%x", session_handle); in OnSessionStart()
298 …NXPLOG_UCIHAL_D("SessionTrack: session handle 0x%x has zero sts_index0, fetch it", session_handle); in OnSessionStart()
300 SetStsIndex(session_handle, new_sts_index); in OnSessionStart()
303 …D("SessionTrack: session handle 0x%x doesn't have valid sts_index0, increment it", session_handle); in OnSessionStart()
305 result = QueryLastStsIndexUsed(session_handle); in OnSessionStart()
307 …UCIHAL_E("SessionTrack: failed to query last sts index used, session_handle=0x%x", session_handle); in OnSessionStart()
312 SetStsIndex(session_handle, new_sts_index); in OnSessionStart()
318 void StopRanging(uint32_t session_handle) { in StopRanging() argument
320 cpu_to_le_bytes(session_handle_bytes, session_handle); in StopRanging()
328 NXPLOG_UCIHAL_E("SessionTrack: Failed to stop session handle 0x%08x", session_handle); in StopRanging()
411 std::pair<bool, uint32_t> GetAppConfLe32(uint32_t session_handle, uint8_t tag) in GetAppConfLe32() argument
447 cpu_to_le_bytes(session_handle_bytes, session_handle); in GetAppConfLe32()
462 std::pair<bool, uint32_t> QueryStsIndex(uint32_t session_handle) in QueryStsIndex() argument
464 return GetAppConfLe32(session_handle, UCI_APP_CONFIG_FIRA_STS_INDEX); in QueryStsIndex()
467 std::pair<bool, uint32_t> QueryLastStsIndexUsed(uint32_t session_handle) in QueryLastStsIndexUsed() argument
469 return GetAppConfLe32(session_handle, UCI_APP_CONFIG_CCC_LAST_STS_INDEX_USED); in QueryLastStsIndexUsed()
472 bool SetStsIndex(uint32_t session_handle, uint32_t sts_index) in SetStsIndex() argument
474 …PLOG_UCIHAL_D("SessionTrack: SetStsIndex 0x%x for session handle 0x%x", sts_index, session_handle); in SetStsIndex()
479 cpu_to_le_bytes(session_handle_bytes, session_handle); in SetStsIndex()
517 …uint32_t session_handle = le_bytes_to_cpu<uint32_t>(&packet[UCI_MSG_SESSION_STATUS_NTF_HANDLE_OFFS… in OnSessionStatusNtf() local
524 auto pSessionInfo = GetSessionInfo(session_handle); in OnSessionStatusNtf()
526 …NXPLOG_UCIHAL_D("SessionTrack: update session handle 0x%08x state %u", session_handle, session_sta… in OnSessionStatusNtf()
531 NXPLOG_UCIHAL_D("SessionTrack: remove session handle 0x%08x", session_handle); in OnSessionStatusNtf()
539 sessions_.erase(session_handle); in OnSessionStatusNtf()
673 std::shared_ptr<SessionInfo> GetSessionInfo(uint32_t session_handle) { in GetSessionInfo() argument
674 auto it = sessions_.find(session_handle); in GetSessionInfo()
676 NXPLOG_UCIHAL_E("SessionTrack: Session 0x%08x not registered", session_handle); in GetSessionInfo()
705 void SessionTrack_onAppConfig(uint32_t session_handle, uint8_t channel) in SessionTrack_onAppConfig() argument
708 gSessionTrack->OnChannelConfig(session_handle, channel); in SessionTrack_onAppConfig()