| /NextBSD/sys/dev/pms/RefTisa/sallsdk/spc/ |
| HD | mpidebug.c | 141 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siEnableTracing() local 142 agsaSwConfig_t *swC = &saRoot->swConfig; in siEnableTracing() 145 OS_ASSERT(saRoot != NULL, ""); in siEnableTracing() 147 if( saRoot->TraceBlockReInit != 0) in siEnableTracing() 157 saRoot->traceBuffLookup[count] = (bit8)('0' + count); in siEnableTracing() 161 saRoot->traceBuffLookup[(bitptr)count + 10] = (bit8)('a' + count); in siEnableTracing() 165 saRoot->TraceDestination = swC->TraceDestination; in siEnableTracing() 166 saRoot->TraceMask = swC->TraceMask; in siEnableTracing() 167 saRoot->CurrentTraceIndexWrapCount = 0; in siEnableTracing() 168 saRoot->CurrentTraceIndex = 0; in siEnableTracing() [all …]
|
| HD | satimer.c | 34 void mpiMsgProduceBunch( agsaLLRoot_t *saRoot); 58 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saTimerTick() local 63 if(agNULL == saRoot) in saTimerTick() 73 pTimer = (agsaTimerDesc_t *) saLlistGetHead(&(saRoot->validTimers)); in saTimerTick() 77 if ( pTimer->timeoutTick == saRoot->timeTick ) in saTimerTick() 80 saLlistRemove(&(saRoot->validTimers), &(pTimer->linkNode)); in saTimerTick() 95 saLlistAdd(&(saRoot->freeTimers), &(pTimer->linkNode)); in saTimerTick() 102 pTimer = (agsaTimerDesc_t *) saLlistGetHead(&(saRoot->validTimers)); in saTimerTick() 106 saRoot->timeTick ++; in saTimerTick() 108 if( saRoot->ResetFailed ) in saTimerTick() [all …]
|
| HD | sampicmd.c | 103 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in mpiBuildCmd() local 118 outq = saRoot->QueueConfig.numOutboundQueues -1; in mpiBuildCmd() 127 circularQ = &saRoot->inboundQueue[inq]; in mpiBuildCmd() 197 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in mpiEchoCmd() local 205 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in mpiEchoCmd() 220 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in mpiEchoCmd() 221 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in mpiEchoCmd() 222 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in mpiEchoCmd() 223 saRoot->IOMap[pRequest->HTag].agContext = agContext; in mpiEchoCmd() 240 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in mpiEchoCmd() [all …]
|
| HD | sampirsp.c | 71 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); 88 saRoot->LLCounters.IOCounter.numSSPCompleted++; 90 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted)); 99 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest; 120 saRoot->LLCounters.IOCounter.numSSPCompleted++; 122 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted)); 138 saRoot->LLCounters.IOCounter.numSSPCompleted++; 140 pMsg1, saRoot->LLCounters.IOCounter.numSSPCompleted)); 150 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest; 170 saRoot->LLCounters.IOCounter.numSataCompleted++; [all …]
|
| HD | sainit.c | 311 agsaLLRoot_t *saRoot; in saInitialize() local 395 saRoot = (agsaLLRoot_t *) (memoryAllocated->agMemory[LLROOT_MEM_INDEX].virtPtr); in saInitialize() 396 SA_ASSERT((agNULL != saRoot), "saRoot"); in saInitialize() 397 if(agNULL == saRoot) in saInitialize() 403 agRoot->sdkData = (void *) saRoot; in saInitialize() 405 SA_DBG1(("saInitialize: saRoot %p\n",saRoot)); in saInitialize() 407 if ( (memoryAllocated != &saRoot->memoryAllocated) || in saInitialize() 408 (hwConfig != &saRoot->hwConfig) || in saInitialize() 409 (swConfig != &saRoot->swConfig) ) in saInitialize() 411 agsaMemoryRequirement_t *memA = &saRoot->memoryAllocated; in saInitialize() [all …]
|
| HD | saint.c | 82 agsaLLRoot_t *saRoot = agNULL; in siFatalInterruptHandler() local 94 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siFatalInterruptHandler() 95 SA_ASSERT((agNULL != saRoot), ""); in siFatalInterruptHandler() 96 if (saRoot == agNULL) in siFatalInterruptHandler() 103 if (saRoot->ResetFailed) in siFatalInterruptHandler() 248 if (agNULL != saRoot) in siFatalInterruptHandler() 250 fatal_error.regDumpBusBaseNum0 = saRoot->mainConfigTable.regDumpPCIBAR; in siFatalInterruptHandler() 251 fatal_error.regDumpOffset0 = saRoot->mainConfigTable.FatalErrorDumpOffset0; in siFatalInterruptHandler() 252 fatal_error.regDumpLen0 = saRoot->mainConfigTable.FatalErrorDumpLength0; in siFatalInterruptHandler() 253 fatal_error.regDumpBusBaseNum1 = saRoot->mainConfigTable.regDumpPCIBAR; in siFatalInterruptHandler() [all …]
|
| HD | saphy.c | 69 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saPhyStart() local 86 if ( phyId >= saRoot->phyCount ) in saPhyStart() 95 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); /* */ in saPhyStart() 99 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); in saPhyStart() 119 saLlistIORemove(&(saRoot->freeReservedRequests), &(pRequest->linkNode)); in saPhyStart() 124 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saPhyStart() 128 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saPhyStart() 129 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saPhyStart() 130 saRoot->IOMap[pRequest->HTag].agContext = agContext; in saPhyStart() 142 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in saPhyStart() [all …]
|
| HD | saioctlcmd.c | 78 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saFwProfile() local 92 pRequest = (agsaIORequestDesc_t *)saLlistGetHead(&(saRoot->freeIORequests)); in saFwProfile() 110 saLlistRemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saFwProfile() 111 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saFwProfile() 112 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saFwProfile() 113 saRoot->IOMap[pRequest->HTag].agContext = agContext; in saFwProfile() 121 circularQ = &saRoot->inboundQueue[inq]; in saFwProfile() 132 saRoot->IOMap[pRequest->HTag].Tag = MARK_OFF; in saFwProfile() 133 saRoot->IOMap[pRequest->HTag].IORequest = agNULL; in saFwProfile() 134 saRoot->IOMap[pRequest->HTag].agContext = agNULL; in saFwProfile() [all …]
|
| HD | sautil.c | 136 agsaLLRoot_t *saRoot = agNULL; in siDumpActiveIORequests() local 142 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siDumpActiveIORequests() 143 SA_ASSERT((agNULL != saRoot), ""); in siDumpActiveIORequests() 165 for ( i = 0; i < saRoot->QueueConfig.numOutboundQueues; i++ ) in siDumpActiveIORequests() 167 circularQ = &saRoot->outboundQueue[i]; in siDumpActiveIORequests() 175 pRequestDesc = (agsaIORequestDesc_t *) AGSAMEM_ELEMENT_READ(&(saRoot->IORequestMem), 0); in siDumpActiveIORequests() 177 saRoot->timeTick, saRoot->usecsPerTick)); in siDumpActiveIORequests() 181 pRequestDesc = (agsaIORequestDesc_t *) AGSAMEM_ELEMENT_READ(&(saRoot->IORequestMem), j); in siDumpActiveIORequests() 192 ((saRoot->timeTick - pRequestDesc->startTick)*saRoot->usecsPerTick)/1000000 )); in siDumpActiveIORequests() 220 agsaLLRoot_t *saRoot = agNULL; in siClearActiveIORequests() local [all …]
|
| HD | sadisc.c | 90 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saDeregisterDeviceHandle() local 127 if ((deviceid != saRoot->DeviceMap[deviceIdx].DeviceIdFromFW) || in saDeregisterDeviceHandle() 128 (pDevice != saRoot->DeviceMap[deviceIdx].DeviceHandle)) in saDeregisterDeviceHandle() 254 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saGetDeviceHandles() local 274 saRoot->DeviceHandle[i] = agDev[i]; in saGetDeviceHandles() 313 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in saRegisterNewDevice() local 321 OS_ASSERT(saRoot != agNULL, "saRoot is NULL"); in saRegisterNewDevice() 324 if(saRoot == agNULL) in saRegisterNewDevice() 366 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in saRegisterNewDevice() 371 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); /**/ in saRegisterNewDevice() [all …]
|
| HD | sasmp.c | 73 agsaLLRoot_t *saRoot = agNULL; in saSMPStart() local 95 saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSMPStart() 96 SA_ASSERT((agNULL != saRoot), ""); in saSMPStart() 98 if(saRoot == agNULL) in saSMPStart() 124 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); /**/ in saSMPStart() 130 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeReservedRequests)); in saSMPStart() 150 saLlistIORemove(&(saRoot->freeReservedRequests), &(pRequest->linkNode)); in saSMPStart() 154 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSMPStart() 168 pRequest->startTick = saRoot->timeTick; in saSMPStart() 175 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saSMPStart() [all …]
|
| HD | sahw.c | 93 agsaLLRoot_t *saRoot = agNULL; in saHwReset() local 115 saRoot = (agsaLLRoot_t*) agRoot->sdkData; in saHwReset() 116 sysIntsActive = saRoot->sysIntsActive; in saHwReset() 162 if (agNULL != saRoot) in saHwReset() 164 fatal_error.regDumpBusBaseNum0 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset() 165 fatal_error.regDumpBusBaseNum1 = saRoot->mainConfigTable.regDumpPCIBAR; in saHwReset() 166 fatal_error.regDumpLen0 = saRoot->mainConfigTable.FatalErrorDumpLength0; in saHwReset() 167 fatal_error.regDumpLen1 = saRoot->mainConfigTable.FatalErrorDumpLength1; in saHwReset() 168 fatal_error.regDumpOffset0 = saRoot->mainConfigTable.FatalErrorDumpOffset0; in saHwReset() 169 fatal_error.regDumpOffset1 = saRoot->mainConfigTable.FatalErrorDumpOffset1; in saHwReset() [all …]
|
| HD | sassp.c | 59 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saGetIBQPI() local 62 circularQ = &saRoot->inboundQueue[inq]; in saGetIBQPI() 72 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSetIBQPI() local 75 circularQ = &saRoot->inboundQueue[inq]; in saSetIBQPI() 83 agsaLLRoot_t *saRoot = (agsaLLRoot_t*)(agRoot->sdkData); in siFastSSPReqAlloc() local 86 if (!saRoot->freeFastIdx) in siFastSSPReqAlloc() 94 saRoot->freeFastIdx--; in siFastSSPReqAlloc() 95 idx = saRoot->freeFastIdx; in siFastSSPReqAlloc() 98 fr = saRoot->freeFastReq[idx]; in siFastSSPReqAlloc() 110 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in siFastSSPReqFree() local [all …]
|
| HD | mpi.c | 491 agsaLLRoot_t *saRoot = agNULL; in mpiMsgProduce() local 492 saRoot = agRoot->sdkData; in mpiMsgProduce() 565 if(saRoot->BunchStarts_Enable) in mpiMsgProduce() 570 circularQ->BunchStarts_QPendingTick = saRoot->timeTick; in mpiMsgProduce() 576 saRoot->BunchStarts_Pending++; in mpiMsgProduce() 578 SA_DBG1(("mpiMsgProduce: BunchStarts - Global Pending %d\n", saRoot->BunchStarts_Pending)); in mpiMsgProduce() 585 saRoot->BunchStarts_Pending = 0; in mpiMsgProduce() 601 void mpiMsgProduceBunch( agsaLLRoot_t *saRoot) in mpiMsgProduceBunch() argument 606 for(inq=0; ((inq < saRoot->QueueConfig.numInboundQueues) && saRoot->BunchStarts_Pending); inq++) in mpiMsgProduceBunch() 608 circularQ= &saRoot->inboundQueue[inq]; in mpiMsgProduceBunch() [all …]
|
| HD | saport.c | 72 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortSASDeviceAdd() local 87 pDevice = (agsaDeviceDesc_t *) saLlistGetHead(&(saRoot->freeDevicesList)); in siPortSASDeviceAdd() 95 saLlistRemove(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortSASDeviceAdd() 176 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortDeviceRemove() local 200 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortDeviceRemove() 208 saRoot->DeviceMap[deviceIdx].DeviceIdFromFW = 0; in siPortDeviceRemove() 209 saRoot->DeviceMap[deviceIdx].DeviceHandle = agNULL; in siPortDeviceRemove() 252 agsaLLRoot_t *saRoot = (agsaLLRoot_t *) (agRoot->sdkData); in siPortSATADeviceAdd() local 265 pDevice = (agsaDeviceDesc_t *) saLlistGetHead(&(saRoot->freeDevicesList)); in siPortSATADeviceAdd() 273 saLlistRemove(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in siPortSATADeviceAdd() [all …]
|
| HD | sasata.c | 71 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in saSATAStart() local 120 pRequest = (agsaIORequestDesc_t *)saLlistIOGetHead(&(saRoot->freeIORequests)); in saSATAStart() 125 saLlistIORemove(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart() 154 pRequest->startTick = saRoot->timeTick; in saSATAStart() 160 saRoot->IOMap[pRequest->HTag].Tag = pRequest->HTag; in saSATAStart() 161 saRoot->IOMap[pRequest->HTag].IORequest = (void *)pRequest; in saSATAStart() 168 circularQ = &saRoot->inboundQueue[inq]; in saSATAStart() 180 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart() 199 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode)); in saSATAStart() 566 saRoot->LLCounters.IOCounter.numSataStarted++; in saSATAStart() [all …]
|
| HD | sadefs.h | 154 #define LL_IOREQ_IBQ0_LOCK (LL_IOREQ_OBQ_LOCK + saRoot->QueueConfig.numOutboundQueues +1)
|
| /NextBSD/sys/dev/pms/RefTisa/tisa/sassata/common/ |
| HD | tdioctl.c | 741 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData); in tiCOMMgntIOCTL() local 748 for( i = 0; i < saRoot->phyCount ; i++) in tiCOMMgntIOCTL() 750 PhyDetails[i].attached_phy = saRoot->phys[i].sasIdentify.phyIdentifier; in tiCOMMgntIOCTL() 759 sas_dev_type = (saRoot->phys[i].sasIdentify.deviceType_addressFrameType & 0x70 ) >> 4 ; in tiCOMMgntIOCTL() 760 if ((saRoot->phys[i].status == 1) && (sas_dev_type == 0)){ //status 1 - Phy Up in tiCOMMgntIOCTL() 769 …osti_memcpy(&PhyDetails[i].attached_sasAddressHi, saRoot->phys[i].sasIdentify.sasAddressHi, sizeof… in tiCOMMgntIOCTL() 770 …osti_memcpy(&PhyDetails[i].attached_sasAddressLo, saRoot->phys[i].sasIdentify.sasAddressLo, sizeof… in tiCOMMgntIOCTL()
|