Lines Matching full:timer_msg
72 phOsalNfc_Timer_Msg_t *timer_msg;
77 timer_msg = (phOsalNfc_Timer_Msg_t *)params;
79 if((timer_msg != NULL) && (timer_msg->pCallBck != NULL))
80 timer_msg->pCallBck(timer_msg->TimerId, timer_msg->pContext);
82 if ((timer_msg->TimerId >= MAX_NO_TIMERS) || (timer_msg->TimerId < 0))
84 printf("Bad TimerId=%d, should be <= to %d\n", timer_msg->TimerId, 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;
94 phOsalNfc_FreeMemory(timer_msg);
123 phOsalNfc_Timer_Msg_t *timer_msg;
127 timer_msg = phOsalNfc_GetMemory(sizeof(phOsalNfc_Timer_Msg_t));
128 if(timer_msg == NULL)
134 phOsalNfc_FreeMemory(timer_msg);
138 timer_msg->TimerId = timerid;
139 timer_msg->pCallBck = timers[timerid].callback;
140 timer_msg->pContext = timers[timerid].pContext;
143 osal_defer_msg->pParameter = timer_msg;