Lines Matching refs:timers
57 static struct phOsalNfc_Timer timers[MAX_NO_TIMERS] = variable
88 if(timers[timer_msg->TimerId].ptr != NULL) in phOsalNfc_Timer_DeferredCall()
90 phOsalNfc_FreeMemory(timers[timer_msg->TimerId].ptr); in phOsalNfc_Timer_DeferredCall()
91 timers[timer_msg->TimerId].ptr = NULL; in phOsalNfc_Timer_DeferredCall()
109 if((timerid < MAX_NO_TIMERS)&&(timers[timerid].nIsStopped == 1)) in phOsalNfc_Timer_Expired()
139 timer_msg->pCallBck = timers[timerid].callback; in phOsalNfc_Timer_Expired()
140 timer_msg->pContext = timers[timerid].pContext; in phOsalNfc_Timer_Expired()
150 timers[timerid].ptr = osal_defer_msg; in phOsalNfc_Timer_Expired()
155 (timers[timerid].callback)(timerid, timers[timerid].pContext); in phOsalNfc_Timer_Expired()
181 if(timers[timerid].callback == NULL) in phOsalNfc_Timer_Create()
189 if(timer_create(CLOCK_REALTIME, &se, &(timers[timerid].handle)) == -1) in phOsalNfc_Timer_Create()
191 timers[timerid].callback = phOsalNfc_Timer_Dummy_Cb; in phOsalNfc_Timer_Create()
193 timers[timerid].ptr = NULL; in phOsalNfc_Timer_Create()
220 if(timers[TimerId].callback == NULL) in phOsalNfc_Timer_Start()
233 timers[TimerId].callback = Application_callback; in phOsalNfc_Timer_Start()
234 timers[TimerId].pContext = pContext; in phOsalNfc_Timer_Start()
235 timers[TimerId].nIsStopped = 0; in phOsalNfc_Timer_Start()
237 timer_settime(timers[TimerId].handle, 0, &its, NULL); in phOsalNfc_Timer_Start()
252 if(timers[TimerId].callback == NULL) in phOsalNfc_Timer_Stop()
254 if(timers[TimerId].nIsStopped == 1) in phOsalNfc_Timer_Stop()
257 timers[TimerId].nIsStopped = 1; in phOsalNfc_Timer_Stop()
258 timer_settime(timers[TimerId].handle, 0, &its, NULL); in phOsalNfc_Timer_Stop()
271 if(timers[TimerId].callback == NULL) in phOsalNfc_Timer_Delete()
274 timer_delete(timers[TimerId].handle); in phOsalNfc_Timer_Delete()
276 timers[TimerId].callback = NULL; in phOsalNfc_Timer_Delete()
277 timers[TimerId].pContext = NULL; in phOsalNfc_Timer_Delete()