Lines Matching refs:saRoot

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++;
172 pMsg1, saRoot->LLCounters.IOCounter.numSataCompleted));
183 saRoot->LLCounters.IOCounter.numSSPAbortedCB++;
199 saRoot->LLCounters.IOCounter.numSataAbortedCB++;
224 saRoot->LLCounters.IOCounter.numSMPCompleted++;
226 pMsg1, saRoot->LLCounters.IOCounter.numSMPCompleted));
238 saRoot->LLCounters.IOCounter.numEchoCB++;
239 SA_DBG3(("mpiParseOBIomb, ECHO Response received %d\n", saRoot->LLCounters.IOCounter.numEchoCB));
492 saRoot->LLCounters.IOCounter.numSMPAbortedCB++;
494 pMsg1, saRoot->LLCounters.IOCounter.numSMPAbortedCB));
646 saRoot->LLCounters.IOCounter.numUNKNWRespIOMB++;
648 pMsg1, saRoot->LLCounters.IOCounter.numUNKNWRespIOMB));
684 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
696 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest;
704 agContext = saRoot->IOMap[tag].agContext;
709 saRoot->IOMap[tag].Tag = MARK_OFF;
710 saRoot->IOMap[tag].IORequest = agNULL;
711 saRoot->IOMap[tag].agContext = agNULL;
717 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
720 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
725 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
752 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
768 pRequest = (agsaIORequestDesc_t *)saRoot->IOMap[tag].IORequest;
776 agContext = saRoot->IOMap[tag].agContext;
859 saRoot->IOMap[tag].Tag = MARK_OFF;
860 saRoot->IOMap[tag].IORequest = agNULL;
861 saRoot->IOMap[tag].agContext = agNULL;
867 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
870 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
875 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
904 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
914 if(saRoot == agNULL)
916 SA_DBG1(("mpiPhyStartEvent: saRoot == agNULL\n"));
924 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
925 agContext = saRoot->IOMap[tag].agContext;
927 saRoot->IOMap[tag].Tag = MARK_OFF;
928 saRoot->IOMap[tag].IORequest = agNULL;
929 saRoot->IOMap[tag].agContext = agNULL;
946 saRoot->phys[phyId].linkstatus = 1;
952 saRoot->phys[phyId].linkstatus = 0;
958 saRoot->phys[phyId].linkstatus = 1;
964 saRoot->phys[phyId].linkstatus = 0;
970 saRoot->phys[phyId].linkstatus = 0;
982 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
985 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
990 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
1004 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
1019 if(saRoot == agNULL)
1021 SA_DBG1(("mpiPhyStopEvent: saRoot == agNULL\n"));
1027 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
1028 agContext = saRoot->IOMap[tag].agContext;
1030 saRoot->IOMap[tag].Tag = MARK_OFF;
1031 saRoot->IOMap[tag].IORequest = agNULL;
1032 saRoot->IOMap[tag].agContext = agNULL;
1049 saRoot->phys[phyId].linkstatus = 0;
1081 pPhy = &(saRoot->phys[phyId]);
1089 saRoot->PortMap[pPort->portId].PortStatus |= PORT_INVALIDATING;
1093 saRoot->PortMap[pPort->portId].PortContext = agNULL;
1094 saRoot->PortMap[pPort->portId].PortID = PORT_MARK_OFF;
1095 saRoot->PortMap[pPort->portId].PortStatus |= PORT_INVALIDATING;
1115 saRoot->phys[phyId].pPort = agNULL;
1132 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
1135 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
1140 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
1166 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
1183 SA_ASSERT((agNULL !=saRoot ), "");
1184 if(saRoot == agNULL)
1186 SA_DBG1(("mpiHWevent: saRoot == agNULL\n"));
1263 if (portId > saRoot->phyCount)
1284 SA_DBG2(("mpiHWEvent:PortID 0x%x PortStatus 0x%x PortContext %p\n",saRoot->PortMap[portId & PORTID_MASK].PortID,saRoot->PortMap[portId & PORTID_MASK].PortStatus,saRoot->PortMap[portId & PORTID_MASK].PortContext));
1285 agPortContext = (agsaPortContext_t *)saRoot->PortMap[portId].PortContext;
1307 saRoot->phys[phyId].linkstatus |= 2;
1308 saRoot->phys[phyId].sasIdentify.phyIdentifier = IDframe->phyIdentifier;
1309 saRoot->phys[phyId].sasIdentify.deviceType_addressFrameType = IDframe->deviceType_addressFrameType;
1311 si_memcpy(&(saRoot->phys[phyId].sasIdentify.sasAddressHi),&(IDframe->sasAddressHi),4);
1312 si_memcpy(&(saRoot->phys[phyId].sasIdentify.sasAddressLo),&(IDframe->sasAddressLo),4);
1322 saRoot->phys[phyId].linkstatus |= 2;
1336 agsaPhy_t *pPhy = &(saRoot->phys[phyId]);
1341 saRoot->phys[phyId].linkstatus &= 1;
1356 saRoot->PortMap[portId].PortStatus &= ~PORT_INVALIDATING;
1365 saRoot->PortMap[portId].PortStatus |= PORT_INVALIDATING;
1486 saRoot->PortMap[portId].PortStatus &= ~PORT_INVALIDATING;
1495 saRoot->PortMap[portId].PortStatus |= PORT_INVALIDATING;
1526 saRoot->PortMap[portId].PortStatus &= ~PORT_INVALIDATING;
1564 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
1568 agContext = saRoot->IOMap[tag].agContext;
1573 saRoot->IOMap[tag].Tag = MARK_OFF;
1574 saRoot->IOMap[tag].IORequest = agNULL;
1575 saRoot->IOMap[tag].agContext = agNULL;
1580 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
1583 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
1588 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
1633 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
1643 agContext = saRoot->IOMap[tag].agContext;
1650 saRoot->IOMap[tag].Tag = MARK_OFF;
1651 saRoot->IOMap[tag].IORequest = agNULL;
1652 saRoot->IOMap[tag].agContext = agNULL;
1658 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
1661 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
1666 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
1754 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
1768 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
1786 saRoot->IoErrorCount.agOSSA_IO_OVERFLOW++;
1794 saRoot->IoErrorCount.agOSSA_IO_ABORTED++;
1797 DbgPrint("agOSSA_IO_ABORTED %d\n", saRoot->IoErrorCount.agOSSA_IO_ABORTED);
1806 saRoot->IoErrorCount.agOSSA_IO_NO_DEVICE++;
1812 saRoot->IoErrorCount.agOSSA_IO_ERROR_HW_TIMEOUT++;
1818 saRoot->IoErrorCount.agOSSA_IO_XFER_ERROR_BREAK++;
1824 saRoot->IoErrorCount.agOSSA_IO_XFER_ERROR_PHY_NOT_READY++;
1830 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_PROTOCOL_NOT_SUPPORTED++;
1836 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_ZONE_VIOLATION++;
1842 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_BREAK++;
1848 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS++;
1854 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_BAD_DESTINATION++;
1860 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_CONNECTION_RATE_NOT_SUPPORTED++;
1866 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_WRONG_DESTINATION++;
1872 saRoot->IoErrorCount.agOSSA_IO_XFER_ERROR_RX_FRAME++;
1878 saRoot->IoErrorCount.agOSSA_IO_XFER_OPEN_RETRY_TIMEOUT++;
1884 saRoot->IoErrorCount.agOSSA_IO_ERROR_INTERNAL_SMP_RESOURCE++;
1890 saRoot->IoErrorCount.agOSSA_IO_PORT_IN_RESET++;
1896 saRoot->IoErrorCount.agOSSA_IO_DS_NON_OPERATIONAL++;
1902 saRoot->IoErrorCount.agOSSA_IO_DS_IN_RECOVERY++;
1908 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_HW_RESOURCE_BUSY++;
1914 saRoot->IoErrorCount.agOSSA_IO_ABORT_IN_PROGRESS++;
1920 saRoot->IoErrorCount.agOSSA_IO_ABORT_DELAYED++;
1926 saRoot->IoErrorCount.agOSSA_IO_INVALID_LENGTH++;
1932 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_RETRY_BACKOFF_THRESHOLD_REACHED++;
1938 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_TMO++;
1944 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST++;
1950 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST++;
1956 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_PATHWAY_BLOCKED++;
1962 saRoot->IoErrorCount.agOSSA_IO_DS_INVALID++;
1968 saRoot->IoErrorCount.agOSSA_IO_XFER_READ_COMPL_ERR++;
1974 saRoot->IoErrorCount.agOSSA_MPI_ERR_IO_RESOURCE_UNAVAILABLE++;
1980 saRoot->IoErrorCount.agOSSA_MPI_ERR_OFFLOAD_DIF_OR_ENC_NOT_ENABLED++;
1986 saRoot->IoErrorCount.agOSSA_IO_OPEN_CNX_ERROR_OPEN_PREEMPTED++;
1992 saRoot->IoErrorCount.agOSSA_IO_UNKNOWN_ERROR++;
2021 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
2037 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2038 agContext = saRoot->IOMap[tag].agContext;
2040 saRoot->IOMap[tag].Tag = MARK_OFF;
2041 saRoot->IOMap[tag].IORequest = agNULL;
2042 saRoot->IOMap[tag].agContext = agNULL;
2052 SA_DBG2(("mpiGetDevHandleRsp:PortID 0x%x PortStatus 0x%x PortContext %p\n",saRoot->PortMap[portId & PORTID_MASK].PortID,saRoot->PortMap[portId & PORTID_MASK].PortStatus,saRoot->PortMap[portId & PORTID_MASK].PortContext));
2053 agPortContext = (agsaPortContext_t *)saRoot->PortMap[portId].PortContext;
2063 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
2065 saRoot->DeviceHandle[i] = &(pDevice->targetDevHandle);
2067 saRoot->DeviceHandle[i] = &(pDevice->initiatorDevHandle);
2072 ossaGetDeviceHandlesCB(agRoot, agContext, agPortContext, saRoot->DeviceHandle, deviceIdc);
2078 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2081 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2086 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2113 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
2127 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2134 agContext = saRoot->IOMap[tag].agContext;
2136 saRoot->IOMap[tag].Tag = MARK_OFF;
2137 saRoot->IOMap[tag].IORequest = agNULL;
2138 saRoot->IOMap[tag].agContext = agNULL;
2160 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2163 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2168 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2194 agsaLLRoot_t *saRoot = agNULL;
2206 saRoot = (agsaLLRoot_t *) (agRoot->sdkData);
2207 SA_ASSERT((agNULL != saRoot), "");
2211 SA_ASSERT((NULL != saRoot->DeviceRegistrationCB), "DeviceRegistrationCB can not be NULL");
2219 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2229 agContext = saRoot->IOMap[tag].agContext;
2232 saRoot->IOMap[tag].Tag = MARK_OFF;
2233 saRoot->IOMap[tag].IORequest = agNULL;
2234 saRoot->IOMap[tag].agContext = agNULL;
2245 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2248 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2253 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2262 if (agNULL == saRoot->DeviceRegistrationCB)
2267 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2270 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2275 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2318 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2321 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2326 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2340 saRoot->DeviceMap[deviceIdx].DeviceIdFromFW = deviceId;
2341 saRoot->DeviceMap[deviceIdx].DeviceHandle = (void *)pDevice;
2344 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2358 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2372 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle;
2381 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2402 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2414 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle;
2423 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2444 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2457 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2469 (*(ossaDeviceRegistrationCB_t)(saRoot->DeviceRegistrationCB))(agRoot,
2484 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2487 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2492 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2518 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
2526 SA_ASSERT((NULL != saRoot->DeviceDeregistrationCB), "DeviceDeregistrationCB can not be NULL");
2535 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2543 agContext = saRoot->IOMap[tag].agContext;
2545 saRoot->IOMap[tag].Tag = MARK_OFF;
2546 saRoot->IOMap[tag].IORequest = agNULL;
2547 saRoot->IOMap[tag].agContext = agNULL;
2578 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2581 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2586 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2595 if (agNULL == saRoot->DeviceDeregistrationCB)
2603 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2606 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2611 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2621 (*(ossaDeregisterDeviceHandleCB_t)(saRoot->DeviceDeregistrationCB))(agRoot,
2630 (*(ossaDeregisterDeviceHandleCB_t)(saRoot->DeviceDeregistrationCB))(agRoot,
2640 (*(ossaDeregisterDeviceHandleCB_t)(saRoot->DeviceDeregistrationCB))(agRoot,
2656 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2659 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2664 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2692 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
2708 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2716 agContext = saRoot->IOMap[tag].agContext;
2721 saRoot->IOMap[tag].Tag = MARK_OFF;
2722 saRoot->IOMap[tag].IORequest = agNULL;
2723 saRoot->IOMap[tag].agContext = agNULL;
2912 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
2915 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
2920 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
2936 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
2953 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
2961 agContext = saRoot->IOMap[tag].agContext;
2964 saRoot->IOMap[tag].Tag = MARK_OFF;
2965 saRoot->IOMap[tag].IORequest = agNULL;
2966 saRoot->IOMap[tag].agContext = agNULL;
3057 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3060 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3065 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3094 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
3115 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
3123 agContext = saRoot->IOMap[tag].agContext;
3126 saRoot->IOMap[tag].Tag = MARK_OFF;
3127 saRoot->IOMap[tag].IORequest = agNULL;
3128 saRoot->IOMap[tag].agContext = agNULL;
3145 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3148 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3153 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3168 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
3199 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3202 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3207 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3291 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3294 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3299 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3326 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
3344 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
3352 agContext = saRoot->IOMap[tag].agContext;
3355 saRoot->IOMap[tag].Tag = MARK_OFF;
3356 saRoot->IOMap[tag].IORequest = agNULL;
3357 saRoot->IOMap[tag].agContext = agNULL;
3386 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
3414 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3417 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3422 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3510 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
3513 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
3518 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3545 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
3559 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
3567 agContext = saRoot->IOMap[tag].agContext;
3570 saRoot->IOMap[tag].Tag = MARK_OFF;
3571 saRoot->IOMap[tag].IORequest = agNULL;
3572 saRoot->IOMap[tag].agContext = agNULL;
3594 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3606 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
3624 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3646 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3686 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
3712 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
3737 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
3750 SA_DBG2(("mpiSSPEvent:PortID 0x%x PortStatus 0x%x PortContext %p\n",saRoot->PortMap[portId & PORTID_MASK].PortID,saRoot->PortMap[portId & PORTID_MASK].PortStatus,saRoot->PortMap[portId & PORTID_MASK].PortContext));
3751 agPortContext = (agsaPortContext_t *)saRoot->PortMap[portId].PortContext;
3756 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle;
3819 saRoot->IoEventCount.agOSSA_IO_OVERFLOW++;
3826 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_BREAK++;
3833 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_PHY_NOT_READY++;
3840 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_PROTOCOL_NOT_SUPPORTED++;
3847 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_ZONE_VIOLATION++;
3854 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_BREAK++;
3861 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS++;
3868 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_BAD_DESTINATION++;
3875 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_CONNECTION_RATE_NOT_SUPPORTED++;
3882 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_WRONG_DESTINATION++;
3889 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_NAK_RECEIVED++;
3896 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_ACK_NAK_TIMEOUT++;
3904 if( saRoot->swConfig.PCI_trigger & PCI_TRIGGER_OFFSET_MISMATCH )
3909 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_OFFSET_MISMATCH++;
3916 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_ZERO_DATA_LEN++;
3923 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_CMD_ISSUE_ACK_NAK_TIMEOUT++;
3930 saRoot->IoEventCount.agOSSA_IO_XFER_OPEN_RETRY_TIMEOUT++;
3937 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_RDY_OVERRUN++;
3944 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_RDY_NOT_EXPECTED++;
3951 saRoot->IoEventCount.agOSSA_IO_XFER_CMD_FRAME_ISSUED++;
3958 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_UNEXPECTED_PHASE++;
3965 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_RETRY_BACKOFF_THRESHOLD_REACHED++;
3972 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_TMO++;
3979 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST++;
3986 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_COLLIDE++;
3993 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_PATHWAY_BLOCKED++;
4000 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DEK_KEY_CACHE_MISS++;
4007 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DEK_KEY_TAG_MISMATCH++;
4014 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_INTERNAL_CRC_ERROR++;
4021 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH++;
4028 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH++;
4035 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DIF_CRC_MISMATCH++;
4042 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DIF_MISMATCH++;
4049 saRoot->IoEventCount.agOSSA_IO_XFER_ERR_EOB_DATA_OVERRUN++;
4056 saRoot->IoEventCount.agOSSA_IO_XFER_READ_COMPL_ERR++;
4063 saRoot->IoEventCount.agOSSA_IO_UNKNOWN_ERROR++;
4092 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4111 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4115 SA_DBG2(("mpiSATAEvent:PortID 0x%x PortStatus 0x%x PortContext %p\n",saRoot->PortMap[portId & PORTID_MASK].PortID,saRoot->PortMap[portId & PORTID_MASK].PortStatus,saRoot->PortMap[portId & PORTID_MASK].PortContext));
4116 agPortContext = (agsaPortContext_t *)saRoot->PortMap[portId].PortContext;
4121 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle;
4130 saRoot->IoEventCount.agOSSA_IO_OVERFLOW++;
4137 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_BREAK++;
4144 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_PHY_NOT_READY++;
4151 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_PROTOCOL_NOT_SUPPORTED++;
4158 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_ZONE_VIOLATION++;
4165 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_BREAK++;
4173 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST++;
4180 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_COLLIDE++;
4187 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_PATHWAY_BLOCKED++;
4194 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS++;
4201 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_BAD_DESTINATION++;
4208 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_CONNECTION_RATE_NOT_SUPPORTED++;
4215 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_WRONG_DESTINATION++;
4222 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_NAK_RECEIVED++;
4229 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_ABORTED_NCQ_MODE++;
4236 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_OFFSET_MISMATCH++;
4243 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_ZERO_DATA_LEN++;
4250 saRoot->IoEventCount.agOSSA_IO_XFER_OPEN_RETRY_TIMEOUT++;
4257 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_PEER_ABORTED++;
4264 saRoot->IoEventCount.agOSSA_IO_XFER_CMD_FRAME_ISSUED++;
4271 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_STP_RESOURCES_BUSY++;
4278 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_UNEXPECTED_PHASE++;
4285 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_RDY_OVERRUN++;
4292 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_XFER_RDY_NOT_EXPECTED++;
4299 saRoot->IoEventCount.agOSSA_IO_XFER_PIO_SETUP_ERROR++;
4306 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_DIF_MISMATCH++;
4313 saRoot->IoEventCount.agOSSA_IO_XFR_ERROR_INTERNAL_CRC_ERROR++;
4320 saRoot->IoEventCount.agOSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_RETRY_BACKOFF_THRESHOLD_REACHED++;
4327 saRoot->IoEventCount.agOSSA_IO_XFER_ERR_EOB_DATA_OVERRUN++;
4334 saRoot->IoEventCount.agOSSA_IO_XFER_ERROR_DMA_ACTIVATE_TIMEOUT++;
4341 saRoot->IoEventCount.agOSSA_IO_UNKNOWN_ERROR++;
4370 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4384 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4392 agContext = saRoot->IOMap[tag].agContext;
4394 saRoot->IOMap[tag].Tag = MARK_OFF;
4395 saRoot->IOMap[tag].IORequest = agNULL;
4396 saRoot->IOMap[tag].agContext = agNULL;
4417 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4443 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4454 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4459 saRoot->IOMap[tag].Tag = MARK_OFF;
4460 saRoot->IOMap[tag].IORequest = agNULL;
4475 saRoot->IOMap[tag].Tag = MARK_OFF;
4476 saRoot->IOMap[tag].IORequest = agNULL;
4492 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
4495 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
4500 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4539 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4550 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4555 saRoot->IOMap[tag].Tag = MARK_OFF;
4556 saRoot->IOMap[tag].IORequest = agNULL;
4579 saRoot->IOMap[tag].Tag = MARK_OFF;
4580 saRoot->IOMap[tag].IORequest = agNULL;
4581 saRoot->IOMap[tag].agContext = agNULL;
4588 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4621 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4635 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4643 agContext = saRoot->IOMap[tag].agContext;
4645 saRoot->IOMap[tag].Tag = MARK_OFF;
4646 saRoot->IOMap[tag].IORequest = agNULL;
4647 saRoot->IOMap[tag].agContext = agNULL;
4675 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
4678 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
4683 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4741 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4754 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4762 agContext = saRoot->IOMap[tag].agContext;
4764 saRoot->IOMap[tag].Tag = MARK_OFF;
4765 saRoot->IOMap[tag].IORequest = agNULL;
4766 saRoot->IOMap[tag].agContext = agNULL;
4802 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
4805 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
4810 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4837 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
4850 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
4893 agContext = saRoot->IOMap[tag].agContext;
4895 saRoot->IOMap[tag].Tag = MARK_OFF;
4896 saRoot->IOMap[tag].IORequest = agNULL;
4897 saRoot->IOMap[tag].agContext = agNULL;
4906 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
4909 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
4914 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
4942 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5048 SA_ASSERT((tag < AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs),
5050 SA_ASSERT((saRoot->IOMap[ tag < (AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs) ? tag : 0 ].Tag != MARK_OFF),
5054 if (tag > AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs)
5063 agContext = saRoot->IOMap[tag].agContext;
5065 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5069 saRoot->IOMap[tag].Tag = MARK_OFF;
5070 saRoot->IOMap[tag].IORequest = agNULL;
5071 saRoot->IOMap[tag].agContext = agNULL;
5077 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5080 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5085 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5115 SA_ASSERT((tag < AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs),
5117 SA_ASSERT((saRoot->IOMap[ tag < (AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs) ? tag : 0 ].Tag != MARK_OFF),
5120 if (tag > AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs)
5127 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5135 saRoot->IOMap[tag].Tag = MARK_OFF;
5136 saRoot->IOMap[tag].IORequest = agNULL;
5137 saRoot->IOMap[tag].agContext = agNULL;
5143 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5146 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5151 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5170 SA_ASSERT((tag < AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs),
5172 SA_ASSERT((saRoot->IOMap[ tag < (AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs) ? tag : 0 ].Tag != MARK_OFF),
5176 if (tag > AGSA_MAX_VALID_PORTS * saRoot->swConfig.maxActiveIOs)
5183 agContext = saRoot->IOMap[tag].agContext;
5185 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5193 saRoot->IOMap[tag].Tag = MARK_OFF;
5194 saRoot->IOMap[tag].IORequest = agNULL;
5195 saRoot->IOMap[tag].agContext = agNULL;
5201 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5204 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5209 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5296 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5307 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
5360 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5374 if(saRoot == agNULL)
5376 SA_ASSERT((saRoot != agNULL), "saRoot");
5408 agPortContext = saRoot->PortMap[portId].PortContext;
5415 pPort = (agsaPort_t *) saLlistGetHead(&(saRoot->freePorts));
5418 saLlistRemove(&(saRoot->freePorts), &(pPort->linkNode));
5425 saLlistAdd(&(saRoot->validPorts), &(pPort->linkNode));
5430 saRoot->PortMap[portId].PortID = portId;
5431 saRoot->PortMap[portId].PortContext = &(pPort->portContext);
5432 saRoot->PortMap[portId].PortStatus &= ~PORT_INVALIDATING;
5436 SA_DBG3(("mpiDeviceHandleArrived: ~PORT_INVALIDATING New Port portID %d PortContext %p\n",saRoot->PortMap[pPort->portId].PortID , &pPort->portContext));
5453 saRoot->PortMap[pPort->portId].PortStatus &= ~PORT_INVALIDATING;
5485 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceHandle;
5509 saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceIdFromFW = FwdDeviceId;
5510 saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceHandle = (void *)pDevice;
5523 saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceIdFromFW = FwdDeviceId;
5592 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5605 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5613 agContext = saRoot->IOMap[tag].agContext;
5615 saRoot->IOMap[tag].Tag = MARK_OFF;
5616 saRoot->IOMap[tag].IORequest = agNULL;
5617 saRoot->IOMap[tag].agContext = agNULL;
5628 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5631 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5636 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5663 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5676 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5684 agContext = saRoot->IOMap[tag].agContext;
5686 saRoot->IOMap[tag].Tag = MARK_OFF;
5687 saRoot->IOMap[tag].IORequest = agNULL;
5688 saRoot->IOMap[tag].agContext = agNULL;
5705 saRoot->PortMap[pPort->portId].PortContext = agNULL;
5706 saRoot->PortMap[pPort->portId].PortID = PORT_MARK_OFF;
5707 saRoot->PortMap[pPort->portId].PortStatus |= PORT_INVALIDATING;
5722 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5725 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5730 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5757 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5778 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5786 agContext = saRoot->IOMap[tag].agContext;
5788 saRoot->IOMap[tag].Tag = MARK_OFF;
5789 saRoot->IOMap[tag].IORequest = agNULL;
5790 saRoot->IOMap[tag].agContext = agNULL;
5806 saRoot->PortMap[port].PortID,
5807 saRoot->PortMap[port].PortStatus,
5808 saRoot->PortMap[port].PortContext));
5810 agPortContext = (agsaPortContext_t *)saRoot->PortMap[port].PortContext;
5812 SA_DBG2(("mpiPortControlRsp: PortID 0x%x PortStatus 0x%x PortContext %p\n",saRoot->PortMap[operation & PORTID_MASK].PortID,saRoot->PortMap[operation & PORTID_MASK].PortStatus,saRoot->PortMap[operation & PORTID_MASK].PortContext));
5813 agPortContext = (agsaPortContext_t *)saRoot->PortMap[operation & PORTID_MASK].PortContext;
5859 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5862 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5867 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5894 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
5908 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
5926 saRoot->IOMap[tag].Tag = MARK_OFF;
5927 saRoot->IOMap[tag].IORequest = agNULL;
5928 saRoot->IOMap[tag].agContext = agNULL;
5946 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
5949 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
5953 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
5987 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6001 pDevice = saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle;
6003 saRoot->PortMap[portId & PORTID_MASK].PortID,
6004 saRoot->PortMap[portId & PORTID_MASK].PortStatus,
6005 saRoot->PortMap[portId & PORTID_MASK].PortContext));
6006 agPortContext = (agsaPortContext_t *)saRoot->PortMap[portId & PORTID_MASK].PortContext;
6009 SA_DBG1(("mpiDeviceHandleRemoval: portId=0x%x deviceId=0x%x autoDeregDeviceflag=0x%x\n", portId, deviceid,saRoot->autoDeregDeviceflag[portId & PORTID_MASK]));
6014 if (saRoot->autoDeregDeviceflag[portId & PORTID_MASK])
6021 saRoot->DeviceMap[deviceIdx].DeviceIdFromFW = 0;
6022 saRoot->DeviceMap[deviceIdx].DeviceHandle = agNULL;
6030 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode));
6042 if (saRoot->autoDeregDeviceflag[portId & PORTID_MASK])
6048 saRoot->DeviceMap[deviceIdx].DeviceIdFromFW = 0;
6049 saRoot->DeviceMap[deviceIdx].DeviceHandle = agNULL;
6057 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode));
6090 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6106 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6114 agContext = saRoot->IOMap[tag].agContext;
6116 saRoot->IOMap[tag].Tag = MARK_OFF;
6117 saRoot->IOMap[tag].IORequest = agNULL;
6118 saRoot->IOMap[tag].agContext = agNULL;
6126 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceId & DEVICE_ID_BITS].DeviceHandle;
6152 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6155 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6160 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6173 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6176 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6181 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6208 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6224 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6232 agContext = saRoot->IOMap[tag].agContext;
6234 saRoot->IOMap[tag].Tag = MARK_OFF;
6235 saRoot->IOMap[tag].IORequest = agNULL;
6236 saRoot->IOMap[tag].agContext = agNULL;
6244 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceId & DEVICE_ID_BITS].DeviceHandle;
6272 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6275 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6280 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6292 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6295 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6300 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6327 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6346 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6354 agContext = saRoot->IOMap[tag].agContext;
6356 saRoot->IOMap[tag].Tag = MARK_OFF;
6357 saRoot->IOMap[tag].IORequest = agNULL;
6358 saRoot->IOMap[tag].agContext = agNULL;
6372 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6375 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6380 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6408 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6434 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6443 agContext = saRoot->IOMap[tag].agContext;
6473 agsaLLRoot_t *saRoot = agNULL;
6484 saRoot = (agsaLLRoot_t *) (agRoot->sdkData);
6485 SA_ASSERT((agNULL != saRoot), "");
6557 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6565 agContext = saRoot->IOMap[tag].agContext;
6567 saRoot->IOMap[tag].Tag = MARK_OFF;
6568 saRoot->IOMap[tag].IORequest = agNULL;
6569 saRoot->IOMap[tag].agContext = agNULL;
6578 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6581 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6586 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6613 agsaLLRoot_t *saRoot = agNULL;
6622 saRoot = (agsaLLRoot_t *) (agRoot->sdkData);
6623 SA_ASSERT((agNULL != saRoot), "");
6667 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6675 agContext = saRoot->IOMap[tag].agContext;
6677 saRoot->IOMap[tag].Tag = MARK_OFF;
6678 saRoot->IOMap[tag].IORequest = agNULL;
6679 saRoot->IOMap[tag].agContext = agNULL;
6688 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6691 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6696 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6723 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6739 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6750 agMode.context = saRoot->IOMap[tag].agContext;
6870 saRoot->IOMap[tag].Tag = MARK_OFF;
6871 saRoot->IOMap[tag].IORequest = agNULL;
6872 saRoot->IOMap[tag].agContext = agNULL;
6878 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
6881 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
6886 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
6912 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
6937 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
6969 saRoot->EncGenPage.numberOfKeksPageCode = configPage[0];
6970 saRoot->EncGenPage.KeyCardIdKekIndex = configPage[1];
6971 saRoot->EncGenPage.KeyCardId3_0 = configPage[2];
6972 saRoot->EncGenPage.KeyCardId7_4 = configPage[3];
6973 saRoot->EncGenPage.KeyCardId11_8 = configPage[4];
6975 SA_DBG1(("mpiGetControllerConfigRsp: numberOfKeksPageCode 0x%x\n",saRoot->EncGenPage.numberOfKeksPageCode));
6976 SA_DBG1(("mpiGetControllerConfigRsp: KeyCardIdKekIndex 0x%x\n",saRoot->EncGenPage.KeyCardIdKekIndex));
6977 SA_DBG1(("mpiGetControllerConfigRsp: KeyCardId3_0 0x%x\n",saRoot->EncGenPage.KeyCardId3_0));
6978 SA_DBG1(("mpiGetControllerConfigRsp: KeyCardId7_4 0x%x\n",saRoot->EncGenPage.KeyCardId7_4));
6979 SA_DBG1(("mpiGetControllerConfigRsp: KeyCardId11_8 0x%x\n",saRoot->EncGenPage.KeyCardId11_8));
7002 agMode.context = saRoot->IOMap[tag].agContext;
7008 saRoot->IOMap[tag].Tag = MARK_OFF;
7009 saRoot->IOMap[tag].IORequest = agNULL;
7010 saRoot->IOMap[tag].agContext = agNULL;
7016 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7019 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7024 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7049 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7138 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7146 agContext = saRoot->IOMap[tag].agContext;
7148 saRoot->IOMap[tag].Tag = MARK_OFF;
7149 saRoot->IOMap[tag].IORequest = agNULL;
7150 saRoot->IOMap[tag].agContext = agNULL;
7158 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7161 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7166 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7192 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7236 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7244 agContext = saRoot->IOMap[tag].agContext;
7246 saRoot->IOMap[tag].Tag = MARK_OFF;
7247 saRoot->IOMap[tag].IORequest = agNULL;
7248 saRoot->IOMap[tag].agContext = agNULL;
7256 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7259 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7264 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7291 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7312 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7320 agContext = saRoot->IOMap[tag].agContext;
7322 saRoot->IOMap[tag].Tag = MARK_OFF;
7323 saRoot->IOMap[tag].IORequest = agNULL;
7324 saRoot->IOMap[tag].agContext = agNULL;
7341 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7344 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7349 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7364 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7419 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7427 agContext = saRoot->IOMap[tag].agContext;
7432 saRoot->IOMap[tag].Tag = MARK_OFF;
7433 saRoot->IOMap[tag].IORequest = agNULL;
7434 saRoot->IOMap[tag].agContext = agNULL;
7440 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7443 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7448 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7475 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7492 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7500 agContext = saRoot->IOMap[tag].agContext;
7502 saRoot->IOMap[tag].Tag = MARK_OFF;
7503 saRoot->IOMap[tag].IORequest = agNULL;
7504 saRoot->IOMap[tag].agContext = agNULL;
7513 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7516 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7521 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7548 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7576 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7584 agContext = saRoot->IOMap[tag].agContext;
7586 saRoot->IOMap[tag].Tag = MARK_OFF;
7587 saRoot->IOMap[tag].IORequest = agNULL;
7588 saRoot->IOMap[tag].agContext = agNULL;
7618 if(saLlistIOGetCount(&(saRoot->freeReservedRequests)) < SA_RESERVED_REQUEST_COUNT)
7621 saLlistIOAdd(&(saRoot->freeReservedRequests), &(pRequest->linkNode));
7626 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7644 agsaLLRoot_t *saRoot = agNULL;
7662 saRoot = (agsaLLRoot_t *) (agRoot->sdkData);
7663 SA_ASSERT((agNULL != saRoot), "");
7688 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7696 agContext = saRoot->IOMap[tag].agContext;
7699 saRoot->IOMap[tag].Tag = MARK_OFF;
7700 saRoot->IOMap[tag].IORequest = agNULL;
7701 saRoot->IOMap[tag].agContext = agNULL;
7722 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7744 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7774 agsaLLRoot_t *saRoot = (agsaLLRoot_t *)(agRoot->sdkData);
7788 pRequest = (agsaIORequestDesc_t*)saRoot->IOMap[tag].IORequest;
7796 agContext = saRoot->IOMap[tag].agContext;
7799 saRoot->IOMap[tag].Tag = MARK_OFF;
7800 saRoot->IOMap[tag].IORequest = agNULL;
7801 saRoot->IOMap[tag].agContext = agNULL;
7847 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));
7868 saLlistIOAdd(&(saRoot->freeIORequests), &(pRequest->linkNode));