Lines Matching refs:timer_msg
72 phOsalNfc_Timer_Msg_t *timer_msg; in phOsalNfc_Timer_DeferredCall() local
77 timer_msg = (phOsalNfc_Timer_Msg_t *)params; in phOsalNfc_Timer_DeferredCall()
79 if((timer_msg != NULL) && (timer_msg->pCallBck != NULL)) in phOsalNfc_Timer_DeferredCall()
80 timer_msg->pCallBck(timer_msg->TimerId, timer_msg->pContext); in phOsalNfc_Timer_DeferredCall()
82 if ((timer_msg->TimerId >= MAX_NO_TIMERS) || (timer_msg->TimerId < 0)) in phOsalNfc_Timer_DeferredCall()
84 printf("Bad TimerId=%d, should be <= to %d\n", timer_msg->TimerId, MAX_NO_TIMERS); in phOsalNfc_Timer_DeferredCall()
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()
94 phOsalNfc_FreeMemory(timer_msg); in phOsalNfc_Timer_DeferredCall()
123 phOsalNfc_Timer_Msg_t *timer_msg; in phOsalNfc_Timer_Expired() local
127 timer_msg = phOsalNfc_GetMemory(sizeof(phOsalNfc_Timer_Msg_t)); in phOsalNfc_Timer_Expired()
128 if(timer_msg == NULL) in phOsalNfc_Timer_Expired()
134 phOsalNfc_FreeMemory(timer_msg); 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()
143 osal_defer_msg->pParameter = timer_msg; in phOsalNfc_Timer_Expired()