Home
last modified time | relevance | path

Searched refs:saRoot (Results 1 – 18 of 18) sorted by relevance

/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/
H A Dmpidebug.c140 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siEnableTracing() local
141 agsaSwConfig_t *swC = &saRoot->swConfig; in siEnableTracing()
144 OS_ASSERT(saRoot != NULL, ""); in siEnableTracing()
146 if( saRoot->TraceBlockReInit != 0) in siEnableTracing()
156 saRoot->traceBuffLookup[count] = (bit8)('0' + count); in siEnableTracing()
160 saRoot->traceBuffLookup[(bitptr)count + 10] = (bit8)('a' + count); in siEnableTracing()
164 saRoot->TraceDestination = swC->TraceDestination; in siEnableTracing()
165 saRoot->TraceMask = swC->TraceMask; in siEnableTracing()
166 saRoot->CurrentTraceIndexWrapCount = 0; in siEnableTracing()
167 saRoot->CurrentTraceIndex = 0; in siEnableTracing()
[all …]
H A Dsatimer.c33 void mpiMsgProduceBunch( agsaLLRoot_t *saRoot);
57 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saTimerTick() local
62 if(agNULL == saRoot) in saTimerTick()
72 pTimer = (agsaTimerDesc_t *) saLlistGetHead(&(saRoot->validTimers)); in saTimerTick()
76 if ( pTimer->timeoutTick == saRoot->timeTick ) in saTimerTick()
79 saLlistRemove(&(saRoot->validTimers), &(pTimer->linkNode)); in saTimerTick()
94 saLlistAdd(&(saRoot->freeTimers), &(pTimer->linkNode)); in saTimerTick()
101 pTimer = (agsaTimerDesc_t *) saLlistGetHead(&(saRoot->validTimers)); in saTimerTick()
105 saRoot->timeTick ++; in saTimerTick()
107 if( saRoot->ResetFailed ) in saTimerTick()
[all …]
H A Dsampicmd.c102 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in mpiBuildCmd() local
117 outq = saRoot->QueueConfig.numOutboundQueues -1; in mpiBuildCmd()
126 circularQ = &saRoot->inboundQueue[inq]; in mpiBuildCmd()
196 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in mpiEchoCmd() local
204 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in mpiEchoCmd()
219 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in mpiEchoCmd()
220 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in mpiEchoCmd()
221 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in mpiEchoCmd()
222 saRoot->IOMap[pRequest->HTag].agContext = agContext; in mpiEchoCmd()
239 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in mpiEchoCmd()
[all …]
H A Dsampirsp.c70 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
87 saRoot->LLCounters.IOCounter.numSSPCompleted++;
89 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted));
98 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest;
119 saRoot->LLCounters.IOCounter.numSSPCompleted++;
121 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted));
137 saRoot->LLCounters.IOCounter.numSSPCompleted++;
139 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted));
149 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest;
169 saRoot->LLCounters.IOCounter.numSataCompleted++;
[all …]
H A Dsainit.c310 agsaLLRoot_t *saRoot; in saInitialize() local
394 saRoot = (agsaLLRoot_t *) (memoryAllocated->agMemory[LLROOT_MEM_INDEX].virtPtr); in saInitialize()
395 SA_ASSERT((agNULL != saRoot), "saRoot"); in saInitialize()
396 if(agNULL == saRoot) in saInitialize()
402 agRoot->sdkData = (void *) saRoot; in saInitialize()
404 SA_DBG1(("saInitialize: saRoot %p\n",saRoot)); in saInitialize()
406 if ( (memoryAllocated != &saRoot->memoryAllocated) || in saInitialize()
407 (hwConfig != &saRoot->hwConfig) || in saInitialize()
408 (swConfig != &saRoot->swConfig) ) in saInitialize()
410 agsaMemoryRequirement_t *memA = &saRoot->memoryAllocated; in saInitialize()
[all …]
H A Dsaint.c81 agsaLLRoot_t *saRoot = agNULL; in siFatalInterruptHandler() local
93 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siFatalInterruptHandler()
94 SA_ASSERT((agNULL != saRoot), ""); in siFatalInterruptHandler()
95 if (saRoot == agNULL) in siFatalInterruptHandler()
102 if (saRoot->ResetFailed) in siFatalInterruptHandler()
247 if (agNULL != saRoot) in siFatalInterruptHandler()
249 fatal_error.regDumpBusBaseNum0 = saRoot->mainConfigTable.regDumpPCIBAR; in siFatalInterruptHandler()
250 fatal_error.regDumpOffset0 = saRoot->mainConfigTable.FatalErrorDumpOffset0; in siFatalInterruptHandler()
251 fatal_error.regDumpLen0 = saRoot->mainConfigTable.FatalErrorDumpLength0; in siFatalInterruptHandler()
252 fatal_error.regDumpBusBaseNum1 = saRoot->mainConfigTable.regDumpPCIBAR; in siFatalInterruptHandler()
[all …]
H A Dsaphy.c68 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saPhyStart() local
85 if ( phyId >= saRoot->phyCount ) in saPhyStart()
94 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); /* */ in saPhyStart()
98 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); in saPhyStart()
118 saLlistIORemove(&(saRoot->freeReservedRequests), &(pRequest->linkNode)); in saPhyStart()
123 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saPhyStart()
127 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saPhyStart()
128 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saPhyStart()
129 saRoot->IOMap[pRequest->HTag].agContext = agContext; in saPhyStart()
141 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in saPhyStart()
[all …]
H A Dsaioctlcmd.c77 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saFwProfile() local
91 pRequest = (agsaIORequestDesc_t *)saLlistGetHead(&(saRoot->freeIORequests)); in saFwProfile()
109 saLlistRemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saFwProfile()
110 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saFwProfile()
111 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saFwProfile()
112 saRoot->IOMap[pRequest->HTag].agContext = agContext; in saFwProfile()
120 circularQ = &saRoot->inboundQueue[inq]; in saFwProfile()
131 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in saFwProfile()
132 saRoot->IOMap[pRequest->HTag].IORequest = agNULL; in saFwProfile()
133 saRoot->IOMap[pRequest->HTag].agContext = agNULL; in saFwProfile()
[all …]
H A Dsautil.c135 agsaLLRoot_t *saRoot = agNULL; in siDumpActiveIORequests() local
141 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siDumpActiveIORequests()
142 SA_ASSERT((agNULL != saRoot), ""); in siDumpActiveIORequests()
164 for ( i = 0; i < saRoot->QueueConfig.numOutboundQueues; i++ ) in siDumpActiveIORequests()
166 circularQ = &saRoot->outboundQueue[i]; in siDumpActiveIORequests()
174 pRequestDesc = (agsaIORequestDesc_t *) AGSAMEM_ELEMENT_READ(&(saRoot->IORequestMem), 0); in siDumpActiveIORequests()
176 saRoot->timeTick, saRoot->usecsPerTick)); in siDumpActiveIORequests()
180 pRequestDesc = (agsaIORequestDesc_t *) AGSAMEM_ELEMENT_READ(&(saRoot->IORequestMem), j); in siDumpActiveIORequests()
191 ((saRoot->timeTick - pRequestDesc->startTick)*saRoot->usecsPerTick)/1000000 )); in siDumpActiveIORequests()
219 agsaLLRoot_t *saRoot = agNULL; in siClearActiveIORequests() local
[all …]
H A Dsadisc.c89 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saDeregisterDeviceHandle() local
126 if ((deviceid != saRoot->DeviceMap[deviceIdx].DeviceIdFromFW) || in saDeregisterDeviceHandle()
127 (pDevice != saRoot->DeviceMap[deviceIdx].DeviceHandle)) in saDeregisterDeviceHandle()
253 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saGetDeviceHandles() local
273 saRoot->DeviceHandle[i] = agDev[i]; in saGetDeviceHandles()
312 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saRegisterNewDevice() local
320 OS_ASSERT(saRoot != agNULL, "saRoot is NULL"); in saRegisterNewDevice()
323 if(saRoot == agNULL) in saRegisterNewDevice()
365 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in saRegisterNewDevice()
370 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); /**/ in saRegisterNewDevice()
[all …]
H A Dsasmp.c72 agsaLLRoot_t *saRoot = agNULL; in saSMPStart() local
94 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSMPStart()
95 SA_ASSERT((agNULL != saRoot), ""); in saSMPStart()
97 if(saRoot == agNULL) in saSMPStart()
123 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); /**/ in saSMPStart()
129 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); in saSMPStart()
149 saLlistIORemove(&(saRoot->freeReservedRequests), &(pRequest->linkNode)); in saSMPStart()
153 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSMPStart()
167 pRequest->startTick = saRoot->timeTick; in saSMPStart()
174 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saSMPStart()
[all …]
H A Dsahw.c92 agsaLLRoot_t *saRoot = agNULL; in saHwReset() local
114 saRoot = (agsaLLRoot_t*) agRoot->sdkData; in saHwReset()
115 sysIntsActive = saRoot->sysIntsActive; in saHwReset()
161 if (agNULL != saRoot) in saHwReset()
163 fatal_error.regDumpBusBaseNum0 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset()
164 fatal_error.regDumpBusBaseNum1 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset()
165 fatal_error.regDumpLen0 = saRoot->mainConfigTable.FatalErrorDumpLength0; in saHwReset()
166 fatal_error.regDumpLen1 = saRoot->mainConfigTable.FatalErrorDumpLength1; in saHwReset()
167 fatal_error.regDumpOffset0 = saRoot->mainConfigTable.FatalErrorDumpOffset0; in saHwReset()
168 fatal_error.regDumpOffset1 = saRoot->mainConfigTable.FatalErrorDumpOffset1; in saHwReset()
[all …]
H A Dsassp.c58 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saGetIBQPI() local
61 circularQ = &saRoot->inboundQueue[inq]; in saGetIBQPI()
71 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSetIBQPI() local
74 circularQ = &saRoot->inboundQueue[inq]; in saSetIBQPI()
82 agsaLLRoot_t *saRoot = (agsaLLRoot_t*)(agRoot->sdkData); in siFastSSPReqAlloc() local
85 if (!saRoot->freeFastIdx) in siFastSSPReqAlloc()
93 saRoot->freeFastIdx--; in siFastSSPReqAlloc()
94 idx = saRoot->freeFastIdx; in siFastSSPReqAlloc()
97 fr = saRoot->freeFastReq[idx]; in siFastSSPReqAlloc()
109 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siFastSSPReqFree() local
[all …]
H A Dmpi.c490 agsaLLRoot_t *saRoot = agNULL; in mpiMsgProduce() local
491 saRoot = agRoot->sdkData; in mpiMsgProduce()
564 if(saRoot->BunchStarts_Enable) in mpiMsgProduce()
569 circularQ->BunchStarts_QPendingTick = saRoot->timeTick; in mpiMsgProduce()
575 saRoot->BunchStarts_Pending++; in mpiMsgProduce()
577 SA_DBG1(("mpiMsgProduce: BunchStarts - Global Pending %d\n", saRoot->BunchStarts_Pending)); in mpiMsgProduce()
584 saRoot->BunchStarts_Pending = 0; in mpiMsgProduce()
600 void mpiMsgProduceBunch( agsaLLRoot_t *saRoot) in mpiMsgProduceBunch() argument
605 for(inq=0; ((inq < saRoot->QueueConfig.numInboundQueues) && saRoot->BunchStarts_Pending); inq++) in mpiMsgProduceBunch()
607 circularQ= &saRoot->inboundQueue[inq]; in mpiMsgProduceBunch()
[all …]
H A Dsaport.c71 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortSASDeviceAdd() local
86 pDevice = (agsaDeviceDesc_t *) saLlistGetHead(&(saRoot->freeDevicesList)); in siPortSASDeviceAdd()
94 saLlistRemove(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortSASDeviceAdd()
175 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortDeviceRemove() local
199 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortDeviceRemove()
207 saRoot->DeviceMap[deviceIdx].DeviceIdFromFW = 0; in siPortDeviceRemove()
208 saRoot->DeviceMap[deviceIdx].DeviceHandle = agNULL; in siPortDeviceRemove()
251 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortSATADeviceAdd() local
264 pDevice = (agsaDeviceDesc_t *) saLlistGetHead(&(saRoot->freeDevicesList)); in siPortSATADeviceAdd()
272 saLlistRemove(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortSATADeviceAdd()
[all …]
H A Dsasata.c70 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSATAStart() local
119 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in saSATAStart()
124 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart()
153 pRequest->startTick = saRoot->timeTick; in saSATAStart()
159 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saSATAStart()
160 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saSATAStart()
167 circularQ = &saRoot->inboundQueue[inq]; in saSATAStart()
179 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart()
198 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart()
565 saRoot->LLCounters.IOCounter.numSataStarted++; in saSATAStart()
[all …]
H A Dsadefs.h153 #define LL_IOREQ_IBQ0_LOCK (LL_IOREQ_OBQ_LOCK + saRoot->QueueConfig.numOutboundQueues +1)
/freebsd/sys/dev/pms/RefTisa/tisa/sassata/common/
H A Dtdioctl.c740 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in tiCOMMgntIOCTL() local
747 for( i = 0; i < saRoot->phyCount ; i++) in tiCOMMgntIOCTL()
749 PhyDetails[i].attached_phy = saRoot->phys[i].sasIdentify.phyIdentifier; in tiCOMMgntIOCTL()
758 sas_dev_type = (saRoot->phys[i].sasIdentify.deviceType_addressFrameType & 0x70 ) >> 4 ; in tiCOMMgntIOCTL()
759 if ((saRoot->phys[i].status == 1) && (sas_dev_type == 0)){ //status 1 - Phy Up in tiCOMMgntIOCTL()
768 …osti_memcpy(&PhyDetails[i].attached_sasAddressHi, saRoot->phys[i].sasIdentify.sasAddressHi, sizeof… in tiCOMMgntIOCTL()
769 …osti_memcpy(&PhyDetails[i].attached_sasAddressLo, saRoot->phys[i].sasIdentify.sasAddressLo, sizeof… in tiCOMMgntIOCTL()