Home | History | Annotate | Download | only in utils

Lines Matching refs:pTimerModule

125     TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
127 if (!pTimerModule)
134 if (pTimerModule->uTimersCount)
140 context_EnterCriticalSection (pTimerModule->hContext);
141 que_Destroy (pTimerModule->hInitQueue);
142 que_Destroy (pTimerModule->hOperQueue);
143 context_LeaveCriticalSection (pTimerModule->hContext);
146 os_memoryFree (pTimerModule->hOs, pTimerModule, sizeof(TTimerModule));
162 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
164 if (!pTimerModule)
171 os_memoryFree (pTimerModule->hOs, pTimerModule, sizeof(TTimerModule));
190 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
192 context_EnterCriticalSection (pTimerModule->hContext);
193 while (que_Dequeue (pTimerModule->hInitQueue) != NULL) {}
194 context_LeaveCriticalSection (pTimerModule->hContext);
199 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
201 context_EnterCriticalSection (pTimerModule->hContext);
202 while (que_Dequeue (pTimerModule->hOperQueue) != NULL) {}
203 context_LeaveCriticalSection (pTimerModule->hContext);
224 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
227 if (!pTimerModule)
233 pTimerModule->hOs = hOs;
234 pTimerModule->hReport = hReport;
235 pTimerModule->hContext = hContext;
237 pTimerModule->bOperState = TI_FALSE;
238 pTimerModule->uTimersCount = 0;
239 pTimerModule->uTwdInitCount = 0;
245 pTimerModule->hInitQueue = que_Create (pTimerModule->hOs,
246 pTimerModule->hReport,
249 pTimerModule->hOperQueue = que_Create (pTimerModule->hOs,
250 pTimerModule->hReport,
255 pTimerModule->uContextId = context_RegisterClient (pTimerModule->hContext,
281 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
283 if (!pTimerModule)
290 context_EnterCriticalSection (pTimerModule->hContext);
292 if (bOperState == pTimerModule->bOperState)
294 context_LeaveCriticalSection (pTimerModule->hContext);
295 TRACE1(pTimerModule->hReport, REPORT_SEVERITY_ERROR, "tmr_UpdateDriverState(): New bOperState (%d) is as current!\n", bOperState);
300 pTimerModule->bOperState = bOperState;
306 pTimerModule->uTwdInitCount++;
309 while (que_Dequeue (pTimerModule->hInitQueue) != NULL) {}
313 context_LeaveCriticalSection (pTimerModule->hContext);
318 context_RequestSchedule (pTimerModule->hContext, pTimerModule->uContextId);
337 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule; /* The timer module handle */
340 if (!pTimerModule)
347 pTimerInfo = os_memoryAlloc (pTimerModule->hOs, sizeof(TTimerInfo));
353 os_memoryZero (pTimerModule->hOs, pTimerInfo, (sizeof(TTimerInfo)));
356 pTimerInfo->hOsTimerObj = os_timerCreate(pTimerModule->hOs, tmr_GetExpiry, (TI_HANDLE)pTimerInfo);
359 TRACE0(pTimerModule->hReport, REPORT_SEVERITY_CONSOLE ,"tmr_CreateTimer(): OS-API Timer allocation failed!!\n");
360 os_memoryFree (pTimerModule->hOs, pTimerInfo, sizeof(TTimerInfo));
367 pTimerModule->uTimersCount++; /* count created timers */
388 TTimerModule *pTimerModule; /* The timer module handle */
394 pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule;
395 if (!pTimerModule)
403 os_timerDestroy (pTimerModule->hOs, pTimerInfo->hOsTimerObj);
404 pTimerModule->uTimersCount--; /* update created timers number */
407 os_memoryFree (pTimerModule->hOs, hTimerInfo, sizeof(TTimerInfo));
439 TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
441 if (!pTimerModule)
452 pTimerInfo->bOperStateWhenStarted = pTimerModule->bOperState;
453 pTimerModule->uTwdInitCount;
456 os_timerStart(pTimerModule->hOs, pTimerInfo->hOsTimerObj, uIntervalMsec);
476 TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
478 if (!pTimerModule)
485 os_timerStop(pTimerModule->hOs, pTimerInfo->hOsTimerObj);
508 TTimerModule *pTimerModule = (TTimerModule *)pTimerInfo->hTimerModule; /* The timer module handle */
510 if (!pTimerModule)
517 context_EnterCriticalSection (pTimerModule->hContext);
525 que_Enqueue (pTimerModule->hOperQueue, hTimerInfo);
533 else if (!pTimerModule->bOperState)
535 que_Enqueue (pTimerModule->hInitQueue, hTimerInfo);
539 context_LeaveCriticalSection (pTimerModule->hContext);
542 context_RequestSchedule (pTimerModule->hContext, pTimerModule->uContextId);
562 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule; /* The timer module handle */
566 if (!pTimerModule)
575 context_EnterCriticalSection (pTimerModule->hContext);
578 if (pTimerModule->bOperState)
580 pTimerInfo = (TTimerInfo *) que_Dequeue (pTimerModule->hOperQueue);
586 pTimerInfo = (TTimerInfo *) que_Dequeue (pTimerModule->hInitQueue);
590 context_LeaveCriticalSection (pTimerModule->hContext);
599 bTwdInitOccured = (pTimerModule->uTwdInitCount != pTimerInfo->uTwdInitCountWhenStarted);
633 TTimerModule *pTimerModule = (TTimerModule *)hTimerModule;
635 if (!pTimerModule)
643 pTimerModule->uContextId, pTimerModule->bOperState,
644 pTimerModule->uTwdInitCount, pTimerModule->uTimersCount));
648 que_Print(pTimerModule->hInitQueue);
652 que_Print(pTimerModule->hOperQueue);