Lines Matching refs:pDevice

2021   agsaDeviceDesc_t    *pDevice;  in mpiGetDevHandleRsp()  local
2059 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiGetDevHandleRsp()
2060 if (pDevice->targetDevHandle.sdkData) in mpiGetDevHandleRsp()
2061 saRoot->DeviceHandle[i] = &(pDevice->targetDevHandle); in mpiGetDevHandleRsp()
2063 saRoot->DeviceHandle[i] = &(pDevice->initiatorDevHandle); in mpiGetDevHandleRsp()
2194 agsaDeviceDesc_t *pDevice = agNULL; in mpiDeviceRegRsp() local
2223 pDevice = pRequest->pDevice; in mpiDeviceRegRsp()
2234 SA_DBG3(("mpiDeviceRegRsp: deviceID 0x%x Device Context %p\n", deviceId, pDevice)); in mpiDeviceRegRsp()
2236 if (agNULL == pDevice) in mpiDeviceRegRsp()
2337 saRoot->DeviceMap[deviceIdx].DeviceHandle = (void *)pDevice; in mpiDeviceRegRsp()
2338 pDevice->DeviceMapIndex = deviceId; in mpiDeviceRegRsp()
2343 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2351 siPortDeviceRemove(agRoot, pDevice->pPort, pDevice, agFALSE); in mpiDeviceRegRsp()
2357 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2365 pDeviceRemove = pDevice; in mpiDeviceRegRsp()
2368 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle; in mpiDeviceRegRsp()
2369 …("mpiDeviceRegRsp: OSSA_FAILURE_DEVICE_ALREADY_REGISTERED, existing deviceContext %p\n", pDevice)); in mpiDeviceRegRsp()
2371 if (pDevice != agNULL) in mpiDeviceRegRsp()
2374 siPortDeviceListRemove(agRoot, pDevice->pPort, pDeviceRemove); in mpiDeviceRegRsp()
2380 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2395 siPortDeviceRemove(agRoot, pDevice->pPort, pDevice, agFALSE); in mpiDeviceRegRsp()
2401 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2407 pDeviceRemove = pDevice; in mpiDeviceRegRsp()
2410 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle; in mpiDeviceRegRsp()
2411 …("mpiDeviceRegRsp: OSSA_FAILURE_PHY_ID_ALREADY_REGISTERED, existing deviceContext %p\n", pDevice)); in mpiDeviceRegRsp()
2413 if (pDevice != agNULL) in mpiDeviceRegRsp()
2416 siPortDeviceListRemove(agRoot, pDevice->pPort, pDeviceRemove); in mpiDeviceRegRsp()
2422 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2437 siPortDeviceRemove(agRoot, pDevice->pPort, pDevice, agFALSE); in mpiDeviceRegRsp()
2443 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2450 siPortDeviceRemove(agRoot, pDevice->pPort, pDevice, agFALSE); in mpiDeviceRegRsp()
2456 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2463 siPortDeviceRemove(agRoot, pDevice->pPort, pDevice, agFALSE); in mpiDeviceRegRsp()
2468 &pDevice->targetDevHandle, in mpiDeviceRegRsp()
2518 agsaDeviceDesc_t *pDevice; in mpiDeregDevHandleRsp() local
2547 pDevice = pRequest->pDevice; in mpiDeregDevHandleRsp()
2548 if (pDevice != agNULL) in mpiDeregDevHandleRsp()
2550 if (pDevice->targetDevHandle.sdkData) in mpiDeregDevHandleRsp()
2552 agDevHandle = &(pDevice->targetDevHandle); in mpiDeregDevHandleRsp()
2556 agDevHandle = &(pDevice->initiatorDevHandle); in mpiDeregDevHandleRsp()
2589 …BG1(("mpiDeregDevHandleRsp: deviceID 0x%x Device Context %p\n", pDevice->DeviceMapIndex, pDevice)); in mpiDeregDevHandleRsp()
3093 agsaDeviceDesc_t *pDevice; in mpiGetDevInfoRsp() local
3164 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiGetDevInfoRsp()
3165 if (pDevice != agNULL) in mpiGetDevInfoRsp()
3167 if (pDevice->targetDevHandle.sdkData) in mpiGetDevInfoRsp()
3169 agDevHandle = &(pDevice->targetDevHandle); in mpiGetDevInfoRsp()
3173 agDevHandle = &(pDevice->initiatorDevHandle); in mpiGetDevInfoRsp()
3241 …si_memcpy(&pDevice->devInfo.sasDeviceInfo.commonDevInfo, &commonDevInfo, sizeof(agsaDeviceInfo_t)); in mpiGetDevInfoRsp()
3242 …si_memcpy(&pDevice->devInfo.sataDeviceInfo.commonDevInfo, &commonDevInfo, sizeof(agsaDeviceInfo_t)… in mpiGetDevInfoRsp()
3245 pDevice->devInfo.sataDeviceInfo.commonDevInfo.firstBurstSize = in mpiGetDevInfoRsp()
3249 …SA_DBG3(("mpiGetDevInfoRsp: smpTimeout=0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevInfo.smpTi… in mpiGetDevInfoRsp()
3250 …SA_DBG3(("mpiGetDevInfoRsp: it_NexusTimeout=0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevInfo.… in mpiGetDevInfoRsp()
3251 …SA_DBG3(("mpiGetDevInfoRsp: firstBurstSize=0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevInfo.f… in mpiGetDevInfoRsp()
3252 …SA_DBG3(("mpiGetDevInfoRsp: devType_S_Rate=0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevInfo.d… in mpiGetDevInfoRsp()
3260 pDevice->devInfo.sasDeviceInfo.commonDevInfo.flag, in mpiGetDevInfoRsp()
3261 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x20 ? "SATA DA" : in mpiGetDevInfoRsp()
3262 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x10 ? "SSP/SMP" : in mpiGetDevInfoRsp()
3263 …(pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x0 ? " STP " : "Unknown… in mpiGetDevInfoRsp()
3265 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[3], in mpiGetDevInfoRsp()
3266 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[2], in mpiGetDevInfoRsp()
3267 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[1], in mpiGetDevInfoRsp()
3268 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[0], in mpiGetDevInfoRsp()
3269 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[3], in mpiGetDevInfoRsp()
3270 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[2], in mpiGetDevInfoRsp()
3271 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[1], in mpiGetDevInfoRsp()
3272 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[0], in mpiGetDevInfoRsp()
3274 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 8 ? " 1.5G" : in mpiGetDevInfoRsp()
3275 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 9 ? " 3.0G" : in mpiGetDevInfoRsp()
3276 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 10 ? " 6.0G" : in mpiGetDevInfoRsp()
3277 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 11 ? "12.0G" : "????" )); in mpiGetDevInfoRsp()
3325 agsaDeviceDesc_t *pDevice; in mpiGetDevInfoRspSpc() local
3382 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiGetDevInfoRspSpc()
3383 if (pDevice != agNULL) in mpiGetDevInfoRspSpc()
3385 if (pDevice->targetDevHandle.sdkData) in mpiGetDevInfoRspSpc()
3387 agDevHandle = &(pDevice->targetDevHandle); in mpiGetDevInfoRspSpc()
3391 agDevHandle = &(pDevice->initiatorDevHandle); in mpiGetDevInfoRspSpc()
3428 pDevice->devInfo.sasDeviceInfo.commonDevInfo.smpTimeout = in mpiGetDevInfoRspSpc()
3431 pDevice->devInfo.sataDeviceInfo.commonDevInfo.smpTimeout = in mpiGetDevInfoRspSpc()
3434 pDevice->devInfo.sasDeviceInfo.commonDevInfo.it_NexusTimeout = in mpiGetDevInfoRspSpc()
3437 pDevice->devInfo.sataDeviceInfo.commonDevInfo.it_NexusTimeout = in mpiGetDevInfoRspSpc()
3440 pDevice->devInfo.sasDeviceInfo.commonDevInfo.firstBurstSize = in mpiGetDevInfoRspSpc()
3443 pDevice->devInfo.sataDeviceInfo.commonDevInfo.firstBurstSize = in mpiGetDevInfoRspSpc()
3446pDevice->devInfo.sasDeviceInfo.commonDevInfo.flag = (bit32)((dTypeSrateSMPTOPortID >> SHIFT4 ) & F… in mpiGetDevInfoRspSpc()
3448pDevice->devInfo.sataDeviceInfo.commonDevInfo.flag = (bit32)((dTypeSrateSMPTOPortID >> SHIFT4 ) & … in mpiGetDevInfoRspSpc()
3450 pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate = in mpiGetDevInfoRspSpc()
3453 pDevice->devInfo.sataDeviceInfo.commonDevInfo.devType_S_Rate = in mpiGetDevInfoRspSpc()
3461 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[0] = pIomb->sasAddrHi[0]; in mpiGetDevInfoRspSpc()
3462 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[1] = pIomb->sasAddrHi[1]; in mpiGetDevInfoRspSpc()
3463 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[2] = pIomb->sasAddrHi[2]; in mpiGetDevInfoRspSpc()
3464 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[3] = pIomb->sasAddrHi[3]; in mpiGetDevInfoRspSpc()
3467 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[0] = pIomb->sasAddrLow[0]; in mpiGetDevInfoRspSpc()
3468 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[1] = pIomb->sasAddrLow[1]; in mpiGetDevInfoRspSpc()
3469 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[2] = pIomb->sasAddrLow[2]; in mpiGetDevInfoRspSpc()
3470 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[3] = pIomb->sasAddrLow[3]; in mpiGetDevInfoRspSpc()
3474 …SA_DBG3(("mpiGetDevInfoRspSpc: smpTimeout= 0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevIn… in mpiGetDevInfoRspSpc()
3475 …SA_DBG3(("mpiGetDevInfoRspSpc: it_NexusTimeout=0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevIn… in mpiGetDevInfoRspSpc()
3476 …SA_DBG3(("mpiGetDevInfoRspSpc: firstBurstSize= 0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevIn… in mpiGetDevInfoRspSpc()
3477 …SA_DBG3(("mpiGetDevInfoRspSpc: devType_S_Rate= 0x%x\n", pDevice->devInfo.sasDeviceInfo.commonDevIn… in mpiGetDevInfoRspSpc()
3482 pDevice->devInfo.sasDeviceInfo.commonDevInfo.flag, in mpiGetDevInfoRspSpc()
3483 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x20 ? "SATA DA" : in mpiGetDevInfoRspSpc()
3484 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x10 ? "SSP/SMP" : in mpiGetDevInfoRspSpc()
3485 …(pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x0 ? " STP " : "Unknown… in mpiGetDevInfoRspSpc()
3487 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[3], in mpiGetDevInfoRspSpc()
3488 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[2], in mpiGetDevInfoRspSpc()
3489 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[1], in mpiGetDevInfoRspSpc()
3490 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[0], in mpiGetDevInfoRspSpc()
3491 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[3], in mpiGetDevInfoRspSpc()
3492 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[2], in mpiGetDevInfoRspSpc()
3493 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[1], in mpiGetDevInfoRspSpc()
3494 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[0], in mpiGetDevInfoRspSpc()
3496 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 8 ? " 1.5G" : in mpiGetDevInfoRspSpc()
3497 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 9 ? " 3.0G" : in mpiGetDevInfoRspSpc()
3498 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 10 ? " 6.0G" : in mpiGetDevInfoRspSpc()
3499 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 11 ? "12.0G" : "????" )); in mpiGetDevInfoRspSpc()
3501 …ossaGetDeviceInfoCB(agRoot, agContext, agDevHandle, Info_avail, &pDevice->devInfo.sasDeviceInfo.co… in mpiGetDevInfoRspSpc()
3544 agsaDeviceDesc_t *pDevice; in mpiSetDevInfoRsp() local
3602 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiSetDevInfoRsp()
3603 if (pDevice != agNULL) in mpiSetDevInfoRsp()
3605 if (pDevice->targetDevHandle.sdkData) in mpiSetDevInfoRsp()
3607 agDevHandle = &(pDevice->targetDevHandle); in mpiSetDevInfoRsp()
3611 agDevHandle = &(pDevice->initiatorDevHandle); in mpiSetDevInfoRsp()
3653 …(("mpiSetDevInfoRsp:pDevice->option 0x%X pDevice->param 0x%X\n", pDevice->option, pDevice->param)); in mpiSetDevInfoRsp()
3654 option |= pDevice->option; in mpiSetDevInfoRsp()
3655 param |= pDevice->param; in mpiSetDevInfoRsp()
3712 agsaDeviceDesc_t *pDevice; in mpiSSPEvent() local
3752 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle; in mpiSSPEvent()
3754 if( agNULL == pDevice ) in mpiSSPEvent()
3756 OS_ASSERT(pDevice, "pDevice"); in mpiSSPEvent()
3761 if (pDevice->targetDevHandle.sdkData) in mpiSSPEvent()
3763 agDevHandle = &(pDevice->targetDevHandle); in mpiSSPEvent()
3767 agDevHandle = &(pDevice->initiatorDevHandle); in mpiSSPEvent()
4092 agsaDeviceDesc_t *pDevice; in mpiSATAEvent() local
4117 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceIdx].DeviceHandle; in mpiSATAEvent()
4118 agDevHandle = &(pDevice->targetDevHandle); in mpiSATAEvent()
4441 agsaDeviceDesc_t *pDevice; in mpiSSPAbortRsp() local
4466 pDevice = pRequest->pDevice; in mpiSSPAbortRsp()
4467 SA_ASSERT((pRequest->pDevice), "pRequest->pDevice"); in mpiSSPAbortRsp()
4486 saLlistIORemove(&(pDevice->pendingIORequests), &(pRequest->linkNode)); in mpiSSPAbortRsp()
4501 siCountActiveIORequestsOnDevice( agRoot, pDevice->DeviceMapIndex ); in mpiSSPAbortRsp()
4537 agsaDeviceDesc_t *pDevice; in mpiSATAAbortRsp() local
4561 pDevice = pRequest->pDevice; in mpiSATAAbortRsp()
4562 SA_ASSERT((pRequest->pDevice), "pRequest->pDevice"); in mpiSATAAbortRsp()
4582 saLlistIORemove(&(pDevice->pendingIORequests), &(pRequest->linkNode)); in mpiSATAAbortRsp()
4943 agsaDeviceDesc_t *pDevice; in mpiGeneralEventRsp() local
5126 pDevice = pRequest->pDevice; in mpiGeneralEventRsp()
5138 saLlistIORemove(&(pDevice->pendingIORequests), &(pRequest->linkNode)); in mpiGeneralEventRsp()
5293 agsaDeviceDesc_t *pDevice; in mpiSSPReqReceivedNotify() local
5303 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiSSPReqReceivedNotify()
5305 if (agNULL == pDevice) in mpiSSPReqReceivedNotify()
5313 if( pDevice->initiatorDevHandle.sdkData != agNULL) in mpiSSPReqReceivedNotify()
5315 ossaSSPReqReceived(agRoot, &(pDevice->initiatorDevHandle), in mpiSSPReqReceivedNotify()
5321 }else if( pDevice->targetDevHandle.sdkData != agNULL) in mpiSSPReqReceivedNotify()
5323 ossaSSPReqReceived(agRoot, &(pDevice->targetDevHandle), in mpiSSPReqReceivedNotify()
5357 agsaDeviceDesc_t *pDevice; in mpiDeviceHandleArrived() local
5481 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceHandle; in mpiDeviceHandleArrived()
5483 if (agNULL == pDevice) in mpiDeviceHandleArrived()
5495pDevice = siPortSASDeviceAdd(agRoot, pPort, remoteIdentify, agTRUE, SMP_TO_DEFAULT, ITL_TO_DEFAULT… in mpiDeviceHandleArrived()
5496 if (agNULL == pDevice) in mpiDeviceHandleArrived()
5506 saRoot->DeviceMap[FwdDeviceId & DEVICE_ID_BITS].DeviceHandle = (void *)pDevice; in mpiDeviceHandleArrived()
5507 pDevice->DeviceMapIndex = FwdDeviceId; in mpiDeviceHandleArrived()
5508 …d: New deviceID 0x%x Device Context %p DeviceTypeSRate 0x%x\n", FwdDeviceId, pDevice, dTypeSRate)); in mpiDeviceHandleArrived()
5511 …AccStatus = ossaDeviceHandleAccept(agRoot, &(pDevice->initiatorDevHandle), &pDeviceInfo, agPortCon… in mpiDeviceHandleArrived()
5520 pDevice->DeviceMapIndex = FwdDeviceId; in mpiDeviceHandleArrived()
5547 pDevice->devInfo.sasDeviceInfo.commonDevInfo.flag, in mpiDeviceHandleArrived()
5548 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x20 ? "SATA DA" : in mpiDeviceHandleArrived()
5549 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x10 ? "SSP/SMP" : in mpiDeviceHandleArrived()
5550 …(pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF0) == 0x0 ? " STP " : "Unknown… in mpiDeviceHandleArrived()
5552 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[3], in mpiDeviceHandleArrived()
5553 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[2], in mpiDeviceHandleArrived()
5554 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[1], in mpiDeviceHandleArrived()
5555 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressHi[0], in mpiDeviceHandleArrived()
5556 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[3], in mpiDeviceHandleArrived()
5557 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[2], in mpiDeviceHandleArrived()
5558 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[1], in mpiDeviceHandleArrived()
5559 pDevice->devInfo.sasDeviceInfo.commonDevInfo.sasAddressLo[0], in mpiDeviceHandleArrived()
5561 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 8 ? " 1.5G" : in mpiDeviceHandleArrived()
5562 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 9 ? " 3.0G" : in mpiDeviceHandleArrived()
5563 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 10 ? " 6.0G" : in mpiDeviceHandleArrived()
5564 (pDevice->devInfo.sasDeviceInfo.commonDevInfo.devType_S_Rate & 0xF) == 11 ? "12.0G" : "????" )); in mpiDeviceHandleArrived()
5892 agsaDeviceDesc_t *pDevice; in mpiSMPAbortRsp() local
5916 pDevice = pRequest->pDevice; in mpiSMPAbortRsp()
5917 SA_ASSERT((pRequest->pDevice), "pRequest->pDevice"); in mpiSMPAbortRsp()
5939 saLlistIORemove(&(pDevice->pendingIORequests), &(pRequest->linkNode)); in mpiSMPAbortRsp()
5984 agsaDeviceDesc_t *pDevice; in mpiDeviceHandleRemoval() local
5997 pDevice = saRoot->DeviceMap[deviceid & DEVICE_ID_BITS].DeviceHandle; in mpiDeviceHandleRemoval()
6006 if (pDevice->targetDevHandle.sdkData) in mpiDeviceHandleRemoval()
6008 ossaDeviceHandleRemovedEvent(agRoot, &(pDevice->targetDevHandle), agPortContext); in mpiDeviceHandleRemoval()
6013 deviceIdx = pDevice->DeviceMapIndex & DEVICE_ID_BITS; in mpiDeviceHandleRemoval()
6019 pDevice->DeviceMapIndex = 0; in mpiDeviceHandleRemoval()
6022 pDevice->pPort = agNULL; in mpiDeviceHandleRemoval()
6023 pDevice->targetDevHandle.sdkData = agNULL; in mpiDeviceHandleRemoval()
6024 pDevice->targetDevHandle.osData = agNULL; in mpiDeviceHandleRemoval()
6026 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in mpiDeviceHandleRemoval()
6034 if (pDevice->initiatorDevHandle.sdkData) in mpiDeviceHandleRemoval()
6036 ossaDeviceHandleRemovedEvent(agRoot, &(pDevice->initiatorDevHandle), agPortContext); in mpiDeviceHandleRemoval()
6041 deviceIdx = pDevice->DeviceMapIndex & DEVICE_ID_BITS; in mpiDeviceHandleRemoval()
6046 pDevice->DeviceMapIndex = 0; in mpiDeviceHandleRemoval()
6049 pDevice->pPort = agNULL; in mpiDeviceHandleRemoval()
6050 pDevice->initiatorDevHandle.sdkData = agNULL; in mpiDeviceHandleRemoval()
6051 pDevice->initiatorDevHandle.osData = agNULL; in mpiDeviceHandleRemoval()
6053 saLlistAdd(&(saRoot->freeDevicesList), &(pDevice->linkNode)); in mpiDeviceHandleRemoval()
6089 agsaDeviceDesc_t *pDevice; in mpiSetDeviceStateRsp() local
6122 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceId & DEVICE_ID_BITS].DeviceHandle; in mpiSetDeviceStateRsp()
6123 if (agNULL == pDevice) in mpiSetDeviceStateRsp()
6130 if (pDevice->targetDevHandle.sdkData) in mpiSetDeviceStateRsp()
6132 agDevHandle = &(pDevice->targetDevHandle); in mpiSetDeviceStateRsp()
6136 agDevHandle = &(pDevice->initiatorDevHandle); in mpiSetDeviceStateRsp()
6207 agsaDeviceDesc_t *pDevice; in mpiGetDeviceStateRsp() local
6240 pDevice = (agsaDeviceDesc_t *)saRoot->DeviceMap[deviceId & DEVICE_ID_BITS].DeviceHandle; in mpiGetDeviceStateRsp()
6241 if (pDevice != agNULL) in mpiGetDeviceStateRsp()
6243 if (pDevice->targetDevHandle.sdkData) in mpiGetDeviceStateRsp()
6245 agDevHandle = &(pDevice->targetDevHandle); in mpiGetDeviceStateRsp()
6249 agDevHandle = &(pDevice->initiatorDevHandle); in mpiGetDeviceStateRsp()