61#ifdef INITIATOR_DRIVER
69#include <dev/pms/RefTisa/tisa/sassata/sas/tgt/ttdxchg.h>
180 timerRequest->
timeout = timeout;
262 timerlist_to_process = &tdsaAllShared->
timerlist;
264 timerlist_to_process = timerlist_to_process->
flink;
266 while ((timerlist_to_process !=
agNULL) && (timerlist_to_process != &tdsaAllShared->
timerlist))
268 nexttimerlist = timerlist_to_process->
flink;
274 if (timerRequest_to_process ==
agNULL)
276 TI_DBG1((
"tdsaProcessTimers: timerRequest_to_process is NULL! Error!!!\n"));
280 timerRequest_to_process->timeout--;
282 if (timerRequest_to_process->timeout == 0)
285 if (timerRequest_to_process->timerRunning ==
agTRUE)
287 timerRequest_to_process->timerRunning =
agFALSE;
292 (timerRequest_to_process->timerCBFunc)(
tiRoot,
293 timerRequest_to_process->timerData1,
294 timerRequest_to_process->timerData2,
295 timerRequest_to_process->timerData3
298 timerlist_to_process = nexttimerlist;
osGLOBAL void dmTimerTick(dmRoot_t *dmRoot)
The file defines the constants, data structure, and functions defined by LL API.
The file defines the declaration of tSDK APIs.
GLOBAL void saTimerTick(agsaRoot_t *agRoot)
TimerTick.
The file defines the declaration of OS APIs.
osGLOBAL void smTimerTick(smRoot_t *smRoot)
data structure stores OS specific and LL specific context
data structure for SAS/SATA context at TD layer
the root data structure for TD layer
tdsaContext_t tdsaAllShared
data structure for timer request Timer requests are enqueued and dequeued using tdList_t and have a c...
tdsaTimerCBFunc_t timerCBFunc
#define TDLIST_OBJECT_BASE(baseType, fieldName, fieldPtr)
#define TDLIST_ENQUEUE_AT_TAIL(toAddHdr, listHdr)
#define TDLIST_INIT_ELEMENT(hdr)
#define TDLIST_DEQUEUE_THIS(hdr)
void tdsaSingleThreadedEnter(tiRoot_t *ptiRoot, bit32 queueId)
void tdsaSingleThreadedLeave(tiRoot_t *ptiRoot, bit32 queueId)
osGLOBAL void tdsaInitTimerRequest(tiRoot_t *tiRoot, tdsaTimerRequest_t *timerRequest)
osGLOBAL void tdsaProcessTimers(tiRoot_t *tiRoot)
osGLOBAL void tiCOMTimerTick(tiRoot_t *tiRoot)
osGLOBAL void tdsaAddTimer(tiRoot_t *tiRoot, tdList_t *timerListHdr, tdsaTimerRequest_t *timerRequest)
osGLOBAL void tdsaKillTimer(tiRoot_t *tiRoot, tdsaTimerRequest_t *timerRequest)
osGLOBAL void tdsaSetTimerRequest(tiRoot_t *tiRoot, tdsaTimerRequest_t *timerRequest, bit32 timeout, tdsaTimerCBFunc_t CBFunc, void *timerData1, void *timerData2, void *timerData3)
void(* tdsaTimerCBFunc_t)(tiRoot_t *tiRoot, void *timerData1, void *timerData2, void *timerData3)