• Home
  • Raw
  • Download

Lines Matching refs:pTimerHandle

75   phOsalNfc_TimerHandle_t* pTimerHandle;  in phOsalNfc_Timer_Create()  local
86 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwTimerId - 1]; in phOsalNfc_Timer_Create()
91 if (timer_create(CLOCK_REALTIME, &se, &(pTimerHandle->hTimerHandle)) == in phOsalNfc_Timer_Create()
96 pTimerHandle->eState = eTimerIdle; in phOsalNfc_Timer_Create()
99 pTimerHandle->TimerId = dwTimerId; in phOsalNfc_Timer_Create()
144 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_Timer_Start() local
147 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_Timer_Start()
150 if ((dwIndex < PH_NFC_MAX_TIMER) && (0x00 != pTimerHandle->TimerId) && in phOsalNfc_Timer_Start()
160 pTimerHandle->Application_callback = pApplication_callback; in phOsalNfc_Timer_Start()
161 pTimerHandle->pContext = pContext; in phOsalNfc_Timer_Start()
162 pTimerHandle->eState = eTimerRunning; in phOsalNfc_Timer_Start()
164 if ((timer_settime(pTimerHandle->hTimerHandle, 0, &its, NULL)) == -1) { in phOsalNfc_Timer_Start()
198 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_Timer_Stop() local
200 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_Timer_Stop()
203 if ((dwIndex < PH_NFC_MAX_TIMER) && (0x00 != pTimerHandle->TimerId) && in phOsalNfc_Timer_Stop()
204 (pTimerHandle->eState != eTimerIdle)) { in phOsalNfc_Timer_Stop()
206 if (pTimerHandle->eState == eTimerRunning) { in phOsalNfc_Timer_Stop()
207 if ((timer_settime(pTimerHandle->hTimerHandle, 0, &its, NULL)) == -1) { in phOsalNfc_Timer_Stop()
211 pTimerHandle->eState = eTimerStopped; in phOsalNfc_Timer_Stop()
244 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_Timer_Delete() local
246 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_Timer_Delete()
251 if ((dwIndex < PH_NFC_MAX_TIMER) && (0x00 != pTimerHandle->TimerId) && in phOsalNfc_Timer_Delete()
252 (NFCSTATUS_SUCCESS == phOsalNfc_CheckTimerPresence(pTimerHandle))) { in phOsalNfc_Timer_Delete()
254 if (timer_delete(pTimerHandle->hTimerHandle) == -1) { in phOsalNfc_Timer_Delete()
258 memset(pTimerHandle, (uint8_t)0x00, sizeof(phOsalNfc_TimerHandle_t)); in phOsalNfc_Timer_Delete()
281 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_Timer_Cleanup() local
283 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_Timer_Cleanup()
288 if ((0x00 != pTimerHandle->TimerId) && in phOsalNfc_Timer_Cleanup()
289 (NFCSTATUS_SUCCESS == phOsalNfc_CheckTimerPresence(pTimerHandle))) { in phOsalNfc_Timer_Cleanup()
291 if (timer_delete(pTimerHandle->hTimerHandle) == -1) { in phOsalNfc_Timer_Cleanup()
295 memset(pTimerHandle, (uint8_t)0x00, sizeof(phOsalNfc_TimerHandle_t)); in phOsalNfc_Timer_Cleanup()
318 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_DeferredCall() local
322 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_DeferredCall()
323 if (pTimerHandle->Application_callback != NULL) { in phOsalNfc_DeferredCall()
325 pTimerHandle->Application_callback((uintptr_t)pParams, in phOsalNfc_DeferredCall()
326 pTimerHandle->pContext); in phOsalNfc_DeferredCall()
371 phOsalNfc_TimerHandle_t* pTimerHandle; in phOsalNfc_Timer_Expired() local
374 pTimerHandle = (phOsalNfc_TimerHandle_t*)&apTimerInfo[dwIndex]; in phOsalNfc_Timer_Expired()
376 pTimerHandle->eState = eTimerStopped; in phOsalNfc_Timer_Expired()
378 pTimerHandle->tDeferedCallInfo.pDeferedCall = &phOsalNfc_DeferredCall; in phOsalNfc_Timer_Expired()
379 pTimerHandle->tDeferedCallInfo.pParam = (void*)((intptr_t)(sv.sival_int)); in phOsalNfc_Timer_Expired()
381 pTimerHandle->tOsalMessage.eMsgType = PH_LIBNFC_DEFERREDCALL_MSG; in phOsalNfc_Timer_Expired()
382 pTimerHandle->tOsalMessage.pMsgData = (void*)&pTimerHandle->tDeferedCallInfo; in phOsalNfc_Timer_Expired()
385 phOsalNfc_PostTimerMsg((phLibNfc_Message_t*)&pTimerHandle->tOsalMessage); in phOsalNfc_Timer_Expired()