Lines Matching refs:timerid
107 uint32_t timerid = (uint32_t)(sv.sival_int); in phOsalNfc_Timer_Expired() local
109 if((timerid < MAX_NO_TIMERS)&&(timers[timerid].nIsStopped == 1)) in phOsalNfc_Timer_Expired()
115 if(timerid < MAX_NO_TIMERS) in phOsalNfc_Timer_Expired()
118 phOsalNfc_Timer_Stop(timerid); in phOsalNfc_Timer_Expired()
138 timer_msg->TimerId = timerid; 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()
160 static void phOsalNfc_Timer_Dummy_Cb(uint32_t timerid, void *pContext) {} in phOsalNfc_Timer_Dummy_Cb() argument
172 uint32_t timerid; in phOsalNfc_Timer_Create() local
180 for(timerid = 0; timerid < MAX_NO_TIMERS; timerid++) in phOsalNfc_Timer_Create()
181 if(timers[timerid].callback == NULL) in phOsalNfc_Timer_Create()
183 if(timerid == MAX_NO_TIMERS) in phOsalNfc_Timer_Create()
186 se.sigev_value.sival_int = (int)timerid; 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()
196 return timerid; in phOsalNfc_Timer_Create()