Lines Matching defs:timers
57 static struct phOsalNfc_Timer timers[MAX_NO_TIMERS] =
88 if(timers[timer_msg->TimerId].ptr != NULL)
90 phOsalNfc_FreeMemory(timers[timer_msg->TimerId].ptr);
91 timers[timer_msg->TimerId].ptr = NULL;
100 * This callback is called by Linux whenever one the timers expires. It
109 if((timerid < MAX_NO_TIMERS)&&(timers[timerid].nIsStopped == 1))
139 timer_msg->pCallBck = timers[timerid].callback;
140 timer_msg->pContext = timers[timerid].pContext;
150 timers[timerid].ptr = osal_defer_msg;
155 (timers[timerid].callback)(timerid, timers[timerid].pContext);
181 if(timers[timerid].callback == NULL)
189 if(timer_create(CLOCK_REALTIME, &se, &(timers[timerid].handle)) == -1)
191 timers[timerid].callback = phOsalNfc_Timer_Dummy_Cb;
193 timers[timerid].ptr = NULL;
220 if(timers[TimerId].callback == NULL)
233 timers[TimerId].callback = Application_callback;
234 timers[TimerId].pContext = pContext;
235 timers[TimerId].nIsStopped = 0;
237 timer_settime(timers[TimerId].handle, 0, &its, NULL);
252 if(timers[TimerId].callback == NULL)
254 if(timers[TimerId].nIsStopped == 1)
257 timers[TimerId].nIsStopped = 1;
258 timer_settime(timers[TimerId].handle, 0, &its, NULL);
271 if(timers[TimerId].callback == NULL)
274 timer_delete(timers[TimerId].handle);
276 timers[TimerId].callback = NULL;
277 timers[TimerId].pContext = NULL;