FreeBSD kernel pms device code
|
Go to the source code of this file.
Definition at line 1466 of file tdioctl.c.
References NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaFwFlashUpdateCB().
Definition at line 1764 of file tdioctl.c.
References IOCTL_ERR_STATUS_INTERNAL_ERROR, NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaGeneralEvent().
Definition at line 1815 of file tdioctl.c.
References agNULL, tdDeviceInfoIOCTL_s::deviceType, tdDeviceInfoPayload_s::devInfo, agsaDeviceInfo_s::devType_S_Rate, tiIOCTLPayload::FunctionSpecificArea, IOCTL_ERR_STATUS_INVALID_DEVICE, IOCTL_ERR_STATUS_OK, tdDeviceInfoIOCTL_s::linkRate, NULL, osti_memcpy, ostiIOCTLSetSignal(), agsaDeviceInfo_s::sasAddressHi, tdDeviceInfoIOCTL_s::sasAddressHi, agsaDeviceInfo_s::sasAddressLo, tdDeviceInfoIOCTL_s::sasAddressLo, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Definition at line 1924 of file tdioctl.c.
References agNULL, AGSA_RC_SUCCESS, agsaForensicData_t::BufferType, agsaForensicData_t::dataBuf, tdForensicDataPayload_s::dataBuffer, agsaForensicData_t::DataType, agsaForensicData_t::directOffset, tdForensicDataPayload_s::directOffset, FORENSIC_DATA_TYPE_CHECK_FATAL, FORENSIC_DATA_TYPE_FATAL, FORENSIC_DATA_TYPE_GSM_SPACE, FORENSIC_DATA_TYPE_NON_FATAL, FORENSIC_DATA_TYPE_QUEUE, tiIOCTLPayload::FunctionSpecificArea, agsaForensicData_t::gsmBuf, tdForensicDataPayload_s::gsmBuffer, IOCTL_ERR_STATUS_INTERNAL_ERROR, IOCTL_ERR_STATUS_OK, IOCTL_ERROR_NO_FATAL_ERROR, NULL, ostiIOCTLSetSignal(), agsaForensicData_t::readLen, tdForensicDataPayload_s::readLen, status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, and TI_DBG3.
Referenced by ossaGetForensicDataCB().
Definition at line 1900 of file tdioctl.c.
References agNULL, tiIOCTLPayload::FunctionSpecificArea, IOCTL_ERR_STATUS_OK, tdIoEventStatisticPayload_s::IoEvent, osti_memcpy, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaGetIOEventStatsCB().
Definition at line 1640 of file tdioctl.c.
References agNULL, NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaGetNVMDResponseCB().
Definition at line 1693 of file tdioctl.c.
References agNULL, tdPhyCount_s::BW_rx, tdPhyCount_s::BW_tx, tdPhyCount_s::codeViolation, tiIOCTLPayload::FunctionSpecificArea, tdPhyCount_s::inboundCRCError, tdPhyCount_s::InvalidDword, NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), tdPhyCount_s::Phy, tdPhyCount_s::phyResetProblem, tdPhyCount_s::runningDisparityError, status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaGetPhyProfileCB().
Definition at line 3639 of file tdioctl.c.
References tiIOCTLPayload::FunctionSpecificArea, IOCTL_MJ_GET_DEVICE_LUN, tiIOCTLPayload::MajorFunction, NULL, tdDeviceLUNInfo_s::numOfLun, ostiIOCTLSetSignal(), PMC_IOCTL_SIGNATURE, tiIOCTLPayload::Signature, status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaSSPIoctlCompleted().
Definition at line 1505 of file tdioctl.c.
References NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLSetSignal(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaGetRegisterDumpCB().
Definition at line 3237 of file tdioctl.c.
References NULL, osti_memcpy, ostiFreeMemory(), ostiIOCTLComplete(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaSMPIoctlCompleted().
Definition at line 1546 of file tdioctl.c.
References NULL, ostiFreeMemory(), ostiIOCTLSetSignal(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG1.
Referenced by ossaSetNVMDResponseCB().
osGLOBAL bit32 tdsaGetNumOfLUNIOCTL | ( | tiRoot_t * | tiRoot, |
tiIOCTLPayload_t * | agIOCTLPayload, | ||
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 3566 of file tdioctl.c.
References agNULL, AGSA_RC_SUCCESS, tiIOCTLPayload::FunctionSpecificArea, IOCTL_CALL_FAIL, IOCTL_CALL_SUCCESS, IOCTL_ERR_STATUS_INTERNAL_ERROR, IOCTL_ERR_STATUS_OK, tiIOCTLPayload::Length, ostiNumOfLUNIOCTLreq(), status, tiIOCTLPayload::Status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG2, tdDeviceLUNInfo_s::tiDeviceHandle, and tiNumOfLunIOCTLreq().
Referenced by tiCOMMgntIOCTL().
void tiComCountActiveIORequests | ( | tiRoot_t * | tiRoot | ) |
Definition at line 227 of file tdint.c.
References saCountActiveIORequests(), tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.
osGLOBAL FORCEINLINE bit32 tiCOMDelayedInterruptHandler | ( | tiRoot_t * | tiRoot, |
bit32 | channelNum, | ||
bit32 | count, | ||
bit32 | context | ||
) |
Definition at line 144 of file tdint.c.
References agNULL, saDelayedInterruptHandler(), tiRoot::tdData, TDSA_OUT_ENTER, TDSA_OUT_LEAVE, tdsaRoot_s::tdsaAllShared, TI_DBG3, and tiInterruptContext.
Referenced by agtiapi_CheckAllVectors(), agtiapi_IntrHandlerx_(), SendSgpioRequest(), and tiIniGetDirectSataSasAddr().
osGLOBAL bit32 tiCOMEncryptDekAdd | ( | tiRoot_t * | tiRoot, |
bit32 | kekIndex, | ||
bit32 | dekTableSelect, | ||
bit32 | dekAddrHi, | ||
bit32 | dekAddrLo, | ||
bit32 | dekIndex, | ||
bit32 | dekNumberOfEntries, | ||
bit32 | dekBlobFormat, | ||
bit32 | dekTableKeyEntrySize | ||
) |
Definition at line 5566 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, dekBlobFormat, dekIndex, dekTableKeyEntrySize, kekIndex, saEncryptDekCacheUpdate(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 5647 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_NOT_SUPPORTED, AGSA_RC_SUCCESS, dekIndex, tiEncryptDek::dekIndex, dekTable, tiEncryptDek::dekTable, tiEncryptPort::encryptEvent, ostiPortEvent(), tiEncryptPort::pData, saEncryptDekCacheInvalidate(), tiEncryptPort::subEvent, TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiEncryptDekInvalidate, tiEncryptOperation, tiError, tiNotSupported, and tiSuccess.
Definition at line 5380 of file tdport.c.
References agNULL, AGSA_RC_NOT_SUPPORTED, AGSA_RC_SUCCESS, agsaEncryptCipherModeXTS, agsaEncryptSMA, agsaEncryptSMB, agsaEncryptSMF, tiEncryptPort::encryptEvent, agsaEncryptInfo_s::encryptionCipherMode, agsaEncryptInfo_s::encryptionSecurityMode, NULL, osti_memset, ostiPortEvent(), tiEncryptPort::pData, saEncryptGetMode(), tiEncryptInfo::securityCipherMode, agsaEncryptInfo_s::status, tiEncryptInfo::status, tiEncryptPort::subEvent, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPT_ATTRIB_CIPHER_XTS, TI_ENCRYPT_SEC_MODE_A, TI_ENCRYPT_SEC_MODE_B, TI_ENCRYPT_SEC_MODE_FACT_INIT, tiEncryptGetInfo, tiEncryptOperation, tiError, tiNotSupported, and tiSuccess.
osGLOBAL bit32 tiCOMEncryptKekAdd | ( | tiRoot_t * | tiRoot, |
bit32 | kekIndex, | ||
bit32 | wrapperKekIndex, | ||
bit32 | blobFormat, | ||
tiEncryptKekBlob_t * | encryptKekBlob | ||
) |
Definition at line 5727 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_ENCRYPT_STORE_NVRAM, AGSA_RC_BUSY, AGSA_RC_SUCCESS, blobFormat, kekIndex, saEncryptKekUpdate(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, tiSuccess, and wrapperKekIndex.
Definition at line 5920 of file tdport.c.
References tdsaContext_s::agRootNonInt, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and tiError.
Definition at line 5861 of file tdport.c.
References tdsaContext_s::agRootNonInt, kekIndex, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, and tiError.
osGLOBAL bit32 tiCOMEncryptSelfTest | ( | tiRoot_t * | tiRoot, |
bit32 | type, | ||
bit32 | length, | ||
void * | TestDescriptor | ||
) |
Definition at line 5979 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saEncryptSelftestExecute(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPTION_TEST_TYPE_BIST, TI_ENCRYPTION_TEST_TYPE_HMAC, tiBusy, tiError, and tiSuccess.
Definition at line 5474 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, agsaEncryptCipherModeXTS, agsaEncryptSMA, agsaEncryptSMB, agsaEncryptInfo_s::encryptionCipherMode, agsaEncryptInfo_s::encryptionSecurityMode, saEncryptSetMode(), securityCipherMode, agsaEncryptInfo_s::status, TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPT_ATTRIB_CIPHER_ECB, TI_ENCRYPT_ATTRIB_CIPHER_XTS, TI_ENCRYPT_SEC_MODE_A, TI_ENCRYPT_SEC_MODE_B, tiBusy, tiError, and tiSuccess.
osGLOBAL void tiCOMFrameReadBlock | ( | tiRoot_t * | tiRoot, |
void * | agFrame, | ||
bit32 | FrameOffset, | ||
void * | FrameBuffer, | ||
bit32 | FrameBufLen | ||
) |
Definition at line 1908 of file tdmisc.c.
References agNULL, saFrameReadBlock(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG6.
osGLOBAL bit32 tiCOMGetControllerConfig | ( | tiRoot_t * | tiRoot, |
bit32 | modePage, | ||
bit32 | flag, | ||
void * | context | ||
) |
Definition at line 5317 of file tdport.c.
References tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saGetControllerConfig(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 6139 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, saGetOperator(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
osGLOBAL bit32 tiCOMGetPortInfo | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
tiPortInfo_t * | tiPortInfo | ||
) |
Definition at line 5135 of file tdport.c.
References agFALSE, agNULL, agTRUE, tdList_s::flink, tdsaPortContext_s::id, tiPortInfo::localName, tiPortInfo::localNameLen, osti_memcpy, osti_memset, tiPortInfo::remoteName, tdsaPortContext_s::remoteName, tiPortInfo::remoteNameLen, tdsaPortContext_s::sasLocalAddressHi, tdsaPortContext_s::sasLocalAddressLo, tdsaPortContext_s::sasRemoteAddressHi, tdsaPortContext_s::sasRemoteAddressLo, TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG3, TI_DBG6, tiError, tdsaPortContext_s::tiPortalContext, tiSuccess, and tdsaPortContext_s::valid.
Referenced by agtiapi_GetDevHandle(), agtiapi_InitCardHW(), and agtiapi_ResetCard().
osGLOBAL void tiCOMGetResource | ( | tiRoot_t * | tiRoot, |
tiLoLevelResource_t * | loResource, | ||
tiInitiatorResource_t * | initiatorResource, | ||
tiTargetResource_t * | targetResource, | ||
tiTdSharedMem_t * | tdSharedMem | ||
) |
Definition at line 224 of file tdinit.c.
References agNULL, itdssGetResource(), tdsaLoLevelGetResource(), tdsaSharedMemCalculate(), TI_DBG1, TI_DBG6, and ttdssGetResource().
Referenced by agtiapi_attach().
osGLOBAL bit32 tiCOMInit | ( | tiRoot_t * | tiRoot, |
tiLoLevelResource_t * | loResource, | ||
tiInitiatorResource_t * | initiatorResource, | ||
tiTargetResource_t * | targetResource, | ||
tiTdSharedMem_t * | tdSharedMem | ||
) |
< Initialize the OS data part of the interrupt context agRoot
< Initialize the OS data part of the non-interrupt context agRoot
< initializes tdsaPortStartInfo_s including flags
< initializes timers
< initializes tdsaPortContext_t
< initializes devicelist in tdsaPortContext_t
Definition at line 294 of file tdinit.c.
References agFALSE, agNULL, agsaEventSource_s::agPortContext, tdsaContext_s::agRootInt, tdsaContext_s::agRootNonInt, tdsaContext_s::agRootOsDataForInt, tdsaContext_s::agRootOsDataForNonInt, tdsaContext_s::CardIDString, tdsaContext_s::currentOperation, tdsaContext_s::DeviceMem, dmGetRequirements(), agsaEventSource_s::event, tdsaContext_s::eventSource, tdsaHwEventSource_s::EventValid, tdsaContext_s::ExpanderHead, tdsaEsglAllInfo_s::freelist, tdsaContext_s::IBQnumber, tdsaEsglPageInfo_s::id, tiInitiatorResource::initiatorMem, tdsaRootOsData_s::IntContext, tdsaContext_s::itdsaIni, tdsaRootOsData_s::itdsaIni, itdssInit(), tiLoLevelResource::loLevelOption, tdsaContext_s::loResource, tdsaContext_s::MaxNumLLLocks, tdsaContext_s::MaxNumLocks, tiLoLevelOption::maxNumOSLocks, tdsaContext_s::MaxNumOSLocks, tiLoLevelOption::numOfQueuesPerPort, tdsaContext_s::OBQnumber, agsaContext_s::osData, osti_strcpy, agsaEventSource_s::param, tdsaContext_s::PortContextMem, tdsaContext_s::resetCount, agsaContext_s::sdkData, smGetRequirements(), tdsaHwEventSource_s::Source, status, tiTargetResource_t::targetMem, TD_MAX_INT_COALESCE, TD_MAX_LOCKS, TD_MAX_NUM_PHYS, TD_MAX_PORT_CONTEXT, TD_OPERATION_INITIATOR, TD_OPERATION_TARGET, tiInitiatorMem::tdCachedMem, tiRoot::tdData, TDLIST_DEQUEUE_FROM_HEAD, TDLIST_ENQUEUE_AT_HEAD, TDLIST_OBJECT_BASE, tiTargetMem::tdMem, tdsaRoot_s::tdsaAllShared, tdsaRootOsData_s::tdsaAllShared, tdsaDeviceDataInit(), tdsaExpanderInit(), tdsaGetCardIDString(), tdsaInitTimers(), tdsaJumpTableInit(), tdsaPortContextInit(), tdsaQueueConfigInit(), tdsaResetComMemFlags(), tiTdSharedMem::tdSharedCachedMem1, tdssGetMaxTargetsParams(), tdssInitSASPortStartInfo(), tdsaRootOsData_s::tdstDevice, tdsaRootOsData_s::tdstHost, TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG5, TI_DBG6, tiError, tiInterruptContext, tiNonInterruptContext, tdsaRootOsData_s::tiRoot, tiSuccess, tdsaContext_s::ttdsaTgt, tdsaRootOsData_s::ttdsaTgt, ttdssInit(), and tiMem::virtPtr.
Referenced by agtiapi_InitCardSW().
osGLOBAL FORCEINLINE void tiCOMInterruptEnable | ( | tiRoot_t * | tiRoot, |
bit32 | channelNum | ||
) |
Definition at line 253 of file tdint.c.
References saSystemInterruptsEnable(), tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.
osGLOBAL FORCEINLINE bit32 tiCOMInterruptHandler | ( | tiRoot_t * | tiRoot, |
bit32 | channelNum | ||
) |
Definition at line 100 of file tdint.c.
References agFALSE, saInterruptHandler(), tiRoot::tdData, and tdsaRoot_s::tdsaAllShared.
Referenced by agtiapi_CheckAllVectors(), and agtiapi_IntrHandlerx_().
osGLOBAL void tiCOMLegacyDelayedInterruptHandler | ( | tiRoot_t * | tiRoot, |
bit32 | channelNum, | ||
bit32 | count, | ||
bit32 | context | ||
) |
osGLOBAL bit32 tiCOMMgntIOCTL | ( | tiRoot_t * | tiRoot, |
tiIOCTLPayload_t * | agIOCTLPayload, | ||
void * | agParam1, | ||
void * | agParam2, | ||
void * | agParam3 | ||
) |
Definition at line 364 of file tdioctl.c.
References AG_LOGICAL_UNIT_RESET, AG_TARGET_WARM_RESET, AGSA_INTERRUPT_CONFIGURATION_PAGE, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE, AGTIAPI_DRIVER_VERSION, _PHY_DETAILS_::attached_dev_type, _PHY_DETAILS_::attached_phy, _PHY_DETAILS_::attached_sasAddressLo, _TSTMTID_TRACE_BUFFER_FETCH::BufferOffsetBegin, hpTraceBufferParms_s::BufferSize, _TSTMTID_TRACE_BUFFER_INFO::BufferSize, hpTraceBufferParms_s::CurrentIndex, _TSTMTID_TRACE_BUFFER_INFO::CurrentIndex, hpTraceBufferParms_s::CurrentTraceIndexWrapCount, _TSTMTID_TRACE_BUFFER_INFO::CurrentTraceIndexWrapCount, _TSTMTID_TRACE_BUFFER_FETCH::Data, agsaSASIdentify_s::deviceType_addressFrameType, agsaControllerEventLog_s::eventLog1, agsaControllerEventLog_s::eventLog1Option, agsaControllerEventLog_s::eventLog2, agsaControllerEventLog_s::eventLog2Option, FetchBufferSIZE, _TSTMTID_TRACE_BUFFER_RESET::Flag, tiIOCTLPayload::FunctionSpecificArea, agsaControllerInfo_s::fwRevision, _TSTMTID_TRACE_BUFFER_FETCH::HighFence, HighFence32Bits, IOCTL_CALL_FAIL, IOCTL_CALL_INVALID_CODE, IOCTL_CALL_INVALID_DEVICE, IOCTL_CALL_PENDING, IOCTL_CALL_SUCCESS, IOCTL_ERR_FW_EVENTLOG_DISABLED, IOCTL_ERR_STATUS_INTERNAL_ERROR, IOCTL_ERR_STATUS_NO_MORE_DATA, IOCTL_ERR_STATUS_NOT_SUPPORTED, IOCTL_ERR_STATUS_OK, IOCTL_MJ_CARD_PARAMETER, IOCTL_MJ_FW_CONTROL, IOCTL_MJ_FW_INFO, IOCTL_MJ_FW_PROFILE, IOCTL_MJ_GET_CORE_DUMP, IOCTL_MJ_GET_DEVICE_INFO, IOCTL_MJ_GET_DEVICE_LUN, IOCTL_MJ_GET_DRIVER_VERSION, IOCTL_MJ_GET_EVENT_LOG1, IOCTL_MJ_GET_EVENT_LOG2, IOCTL_MJ_GET_FORENSIC_DATA, IOCTL_MJ_GET_FW_REV, IOCTL_MJ_GET_IO_ERROR_STATISTIC, IOCTL_MJ_GET_IO_EVENT_STATISTIC, IOCTL_MJ_GET_PHY_PROFILE, IOCTL_MJ_GPIO, IOCTL_MJ_INI_DRIVER_IDENTIFY, IOCTL_MJ_LL_API_TEST, IOCTL_MJ_LL_TRACING, IOCTL_MJ_MODE_CTL_PAGE, IOCTL_MJ_NVMD_GET, IOCTL_MJ_NVMD_SET, IOCTL_MJ_PHY_DETAILS, IOCTL_MJ_PHY_GENERAL_STATUS, IOCTL_MJ_PORT_START, IOCTL_MJ_PORT_STOP, IOCTL_MJ_SEND_BIST, IOCTL_MJ_SEND_TMF, IOCTL_MJ_SET_OR_GET_REGISTER, IOCTL_MJ_SGPIO, IOCTL_MJ_SMP_REQUEST, IOCTL_MN_CARD_GET_INTERRUPT_CONFIG, IOCTL_MN_CARD_GET_TIMER_CONFIG, IOCTL_MN_FW_GET_EVENT_FLASH_LOG1, IOCTL_MN_FW_GET_EVENT_FLASH_LOG2, IOCTL_MN_FW_GET_TRACE_BUFFER, IOCTL_MN_LL_GET_TRACE_BUFFER, IOCTL_MN_LL_GET_TRACE_BUFFER_INFO, IOCTL_MN_LL_RESET_TRACE_INDEX, IOCTL_MN_TMF_DEVICE_RESET, IOCTL_MN_TMF_LUN_RESET, tiIOCTLPayload::Length, _TSTMTID_TRACE_BUFFER_FETCH::LowFence, LowFence32Bits, tiIOCTLPayload::MajorFunction, MIN, tiIOCTLPayload::MinorFunction, NULL, osti_memcpy, osti_sprintf, ostiChipConfigReadBit32(), tiEncryptDekConfigPage::pageCode, agsaControllerInfo_s::PCILinkRate, agsaControllerInfo_s::PCIWidth, hpTraceBufferParms_s::pCurrentTraceIndex, agsaLLRoot_s::phyCount, agsaSASIdentify_s::phyIdentifier, agsaLLRoot_s::phys, PMC_IOCTL_SIGNATURE, hpTraceBufferParms_s::pTrace, hpTraceBufferParms_s::pTraceIndexWrapCount, hpTraceBufferParms_s::pTraceMask, tiIOCTLPayload::Reserved, agsaPhyGeneralState_s::Reserved2, _TSTMTID_TRACE_BUFFER_RESET::Reset, saGetControllerConfig(), saGetControllerEventLogInfo(), saGetControllerInfo(), SAS_PHY_SATA_DEVICE, agsaSASIdentify_s::sasAddressHi, _PHY_DETAILS_::sasAddressHi, agsaSASIdentify_s::sasAddressLo, _PHY_DETAILS_::sasAddressLo, saSetControllerConfig(), agsaPhy_s::sasIdentify, agsaContext_s::sdkData, agsaControllerInfo_s::sdkRevision, agsaControllerInfo_s::signature, tiIOCTLPayload::Signature, smResetTraceBuffer, smTraceGetInfo, smTraceSetMask, status, agsaPhy_s::status, tiIOCTLPayload::Status, tiRoot::tdData, tdipFWControlIoctl(), tdsaRoot_s::tdsaAllShared, tdsaDeviceInfoGetIoctl(), tdsaForensicDataGetIoctl(), tdsaGetNumOfLUNIOCTL(), tdsaGetPhyGeneralStatusIoctl(), tdsaGpioSetup(), tdsaIoErrorStatisticGetIoctl(), tdsaIoEventStatisticGetIoctl(), tdsaNVMDGetIoctl(), tdsaNVMDSetIoctl(), tdsaPhyProfileIoctl(), tdsaRegDumpGetIoctl(), tdsaRegisterIoctl(), tdsaSendBISTIoctl(), tdsaSendSMPIoctl(), tdsaSendTMFIoctl(), tdsaSGpioIoctlSetup(), TI_DBG1, TI_DBG3, TI_DBG5, TI_DBG6, TI_ENCRYPTION_CONTROL_PARM_PAGE, TI_ENCRYPTION_DEK_CONFIG_PAGE, TI_ENCRYPTION_GENERAL_CONFIG_PAGE, tiCOMPortStart(), tiCOMPortStop(), tiIniGetDirectSataSasAddr(), tiIS_SPC, tiModePageGet, tiModePageSet, tiSuccess, agsaMem_s::totalLength, hpTraceBufferParms_s::TraceCompiled, _TSTMTID_TRACE_BUFFER_INFO::TraceCompiled, _TSTMTID_TRACE_BUFFER_INFO::TraceMask, _TSTMTID_TRACE_BUFFER_RESET::TraceMask, hpTraceBufferParms_s::TraceWrap, _TSTMTID_TRACE_BUFFER_INFO::TraceWrap, agsaInterruptConfigPage_s::vectorMask0, agsaInterruptConfigPage_s::vectorMask1, and agsaMem_s::virtPtr.
Referenced by agtiapi_CharIoctl().
osGLOBAL bit32 tiCOMOperatorManagement | ( | tiRoot_t * | tiRoot, |
bit32 | flag, | ||
bit8 | role, | ||
tiID_t * | idString, | ||
tiEncryptKekBlob_t * | kekBlob | ||
) |
Definition at line 6228 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saOperatorManagement(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 3862 of file tdport.c.
References aap1array, agsaFwImg_s::aap1Img, agsaFwImg_s::aap1Len, agsaMemoryRequirement_s::agMemory, agNULL, tdsaContext_s::agRootInt, tdsaContext_s::agRootNonInt, AGSA_CACHED_DMA_MEM, AGSA_CACHED_MEM, AGSA_DMA_MEM, AGSA_NUM_MEM_CHUNKS, AGSA_RC_FAILURE, AGSA_RC_VERSION_INCOMPATIBLE, agTRUE, dmMem_t::alignment, agsaMem_s::alignment, smMem_t::alignment, tiMem::alignment, dmMemoryRequirement_t::count, agsaMemoryRequirement_s::count, smMemoryRequirement_t::count, tiLoLevelMem::count, tdsaContext_s::currentOperation, DEFAULT_INBOUND_QUEUE_PRIORITY, DM_RC_FAILURE, DM_RC_VERSION_INCOMPATIBLE, dmGetRequirements(), dmInitialize(), dmMemoryRequirement_t::dmMemory, agsaQueueInbound_s::elementCount, agsaQueueOutbound_s::elementCount, agsaQueueInbound_s::elementSize, agsaQueueOutbound_s::elementSize, agsaSwConfig_s::fatalErrorInterruptVector, tiLoLevelOption::flag, tdsaContext_s::flags, tdsaPortStartInfo_s::flags, agsaSwConfig_s::FWConfig, agsaSwConfig_s::hostDirectAccessSupport, tdsaContext_s::HwConfig, ilaarray, agsaFwImg_s::ilaImg, agsaFwImg_s::ilaLen, tdsaContext_s::InboundQueueEleSize, tdsaContext_s::InboundQueuePriority, agsaQueueConfig_s::inboundQueues, tdsaContext_s::InboundQueueSize, agsaQueueOutbound_s::interruptCount, agsaQueueOutbound_s::interruptDelay, agsaQueueOutbound_s::interruptEnable, agsaQueueOutbound_s::interruptVectorIndex, ioparray, agsaFwImg_s::iopImg, agsaFwImg_s::iopLen, istrarray, agsaFwImg_s::istrImg, agsaFwImg_s::istrLen, agsaSwConfig_s::legacyInt_X, tiLoLevelResource::loLevelMem, tiLoLevelResource::loLevelOption, tdsaContext_s::loResource, agsaSwConfig_s::max_MSI_InterruptVectors, tiLoLevelOption::max_MSI_InterruptVectors, agsaSwConfig_s::max_MSIX_InterruptVectors, tiLoLevelOption::maxInterruptVectors, tiLoLevelMem::mem, dmMem_t::numElements, agsaMem_s::numElements, smMem_t::numElements, tiMem::numElements, agsaQueueConfig_s::numInboundQueues, agsaQueueConfig_s::numOutboundQueues, dmMem_t::osHandle, agsaMem_s::osHandle, smMem_t::osHandle, tiMem::osHandle, OSSA_EVENT_SOURCE_DEVICE_HANDLE_ADDED, OSSA_EVENT_SOURCE_DEVICE_HANDLE_REMOVED, ossaDeregisterDeviceHandleCB(), ossaDeviceRegistrationCB(), ossaHwRegReadConfig32(), osti_memcpy, osti_memset, tdsaContext_s::OutboundQueueEleSize, tdsaContext_s::OutboundQueueInterruptCount, tdsaContext_s::OutboundQueueInterruptDelay, tdsaContext_s::OutboundQueueInterruptEnable, agsaQueueConfig_s::outboundQueues, tdsaContext_s::OutboundQueueSize, agsaSwConfig_s::param1, agsaSwConfig_s::param2, agsaSwConfig_s::param3, agsaSwConfig_s::param4, agsaMem_s::phyAddrLower, agsaMem_s::phyAddrUpper, dmMem_t::physAddrLower, smMem_t::physAddrLower, tiMem::physAddrLower, dmMem_t::physAddrUpper, smMem_t::physAddrUpper, tiMem::physAddrUpper, tdssPortFlags_s::portInitialized, agsaSwConfig_s::PortRecoveryResetTimer, tdsaContext_s::Ports, agsaQueueInbound_s::priority, tdsaContext_s::QueueConfig, agsaQueueConfig_s::queueOption, tdsaContext_s::QueueOption, dmMem_t::reserved, agsaQueueInbound_s::reserved, agsaMem_s::reserved, smMem_t::reserved, tiMem::reserved, tdsaComMemFlags_s::resetInProgress, saEchoCommand(), saEncryptGetMode(), saGetControllerInfo(), saGetControllerStatus(), saGetRequirements(), saInitialize(), saRegisterEventCallback(), agsaContext_s::sdkData, dmMem_t::singleElementLength, agsaMem_s::singleElementLength, smMem_t::singleElementLength, tiMem::singleElementLength, SM_RC_FAILURE, SM_RC_VERSION_INCOMPATIBLE, smInitialize(), smMemoryRequirement_t::smMemory, tdsaContext_s::SMPQNum, spcv12g_ilaarray, spcv12g_ioparray, spcv12g_raaearray, spcv_aap1array, spcv_ilaarray, spcv_ioparray, agsaSwConfig_s::stallUsec, status, tdsaContext_s::SwConfig, tdsaComMemFlags_s::sysIntsActive, t_MacroCheck(), TD_MAX_NUM_PHYS, TD_OPERATION_TARGET, tiRoot::tdData, tdsaContext_s::tdDeviceIdVendId, tdsaContext_s::tdFWControlEx, tdsaRoot_s::tdsaAllShared, tdsaGetHwConfigParams(), tdsaGetSwConfigParams(), tdsaPrintHwConfig(), tdsaPrintSwConfig(), tdsaRotateQnumber(), tdsaContext_s::tdSubVendorId, TI_CACHED_DMA_MEM, TI_CACHED_MEM, TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, TI_DMA_MEM, tiCOMConfigureSgpio(), tiError, tiIS_SPC, tiIS_SPC6V, tIsSPCV12G, tiSuccess, dmMem_t::totalLength, agsaMem_s::totalLength, smMem_t::totalLength, tiMem::totalLength, ttdssGetTargetParams(), dmMem_t::type, agsaMem_s::type, smMem_t::type, tiMem::type, tiLoLevelOption::usecsPerTick, dmMem_t::virtPtr, agsaMem_s::virtPtr, smMem_t::virtPtr, and tiMem::virtPtr.
Referenced by agtiapi_InitCardSW(), and agtiapi_ResetCard().
osGLOBAL bit32 tiCOMPortStart | ( | tiRoot_t * | tiRoot, |
bit32 | portID, | ||
tiPortalContext_t * | portalContext, | ||
bit32 | option | ||
) |
Definition at line 4765 of file tdport.c.
References agFALSE, agNULL, AGSA_DEV_TYPE_END_DEVICE, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE, agTRUE, agsaSASProtocolTimerConfigurationPage_s::Data_Cmd_OPNRJT_RTRY_THR, agsaSASProtocolTimerConfigurationPage_s::Data_Cmd_OPNRJT_RTRY_TMO, gSSC_Disable, agsaSASProtocolTimerConfigurationPage_s::MAX_AIP, agsaSASProtocolTimerConfigurationPage_s::MST_MSI, NULL, agsaSASProtocolTimerConfigurationPage_s::OPNRJT_RTRY_INTVL, osti_memset, ostiPortEvent(), agsaSASProtocolTimerConfigurationPage_s::pageCode, SA_IDFRM_SMP_BIT, SA_IDFRM_SSP_BIT, SA_IDFRM_STP_BIT, saPhyStart(), saSetControllerConfig(), status, agsaSASProtocolTimerConfigurationPage_s::STP_FRM_TMO, agsaSASProtocolTimerConfigurationPage_s::STP_IDLE_TMO, agsaSASProtocolTimerConfigurationPage_s::STP_SSP_MCT_TMO, tiPortalContext::tdData, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaGetCardPhyParams(), tdsaGetGlobalPhyParams(), tdssPrintSASIdentify(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG4, TI_DBG6, tiError, tiPortStarted, tIsSPCV12or6G, and tiSuccess.
Referenced by agtiapi_InitCardHW(), agtiapi_ResetCard(), and tiCOMMgntIOCTL().
osGLOBAL bit32 tiCOMPortStop | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext | ||
) |
Definition at line 5009 of file tdport.c.
References AG_SA_DISCOVERY_OPTION_FULL_START, tdsaPortContext_s::agContext, agFALSE, agNULL, AGSA_PHY_CLEAR_ERROR_COUNTS, AGSA_PHY_GET_BW_COUNTS, AGSA_PHY_GET_ERROR_COUNTS, AGSA_SAS_PHY_ANALOG_SETTINGS_PAGE, AGSA_SAS_PHY_BW_COUNTERS_PAGE, AGSA_SAS_PHY_ERR_COUNTERS_CLR_PAGE, AGSA_SAS_PHY_ERR_COUNTERS_PAGE, AGSA_SAS_PHY_GENERAL_STATUS_PAGE, agTRUE, tdsaPortContext_s::Count, tdsaPortContext_s::discoveryOptions, tdsaPortContext_s::DiscoveryState, tdList_s::flink, tdsaPortContext_s::id, ITD_DSTATE_NOT_STARTED, agsaContext_s::osData, tdsaPortContext_s::PhyIDList, saGetControllerStatus(), saGetPhyProfile(), saLocalPhyControl(), saPhyStop(), TD_MAX_NUM_PHYS, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG3, TI_DBG6, tiError, tiIS_SPC, tdsaPortContext_s::tiPortalContext, and tiSuccess.
Referenced by tiCOMMgntIOCTL().
Definition at line 503 of file tdmisc.c.
References agNULL, AGSA_CHIP_RESET, AGSA_SOFT_RESET, agTRUE, agsaForensicData_t::dataBuf, agsaForensicData_t::DataType, agsaForensicData_t::directData, agsaForensicData_t::directLen, agsaForensicData_t::directOffset, agsaFatalErrorInfo_s::errorInfo1, agsaControllerStatus_s::fatalErrorInfo, agsaForensicData_t::readLen, saGetControllerStatus(), saGetForensicData(), saHwReset(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_DBG2, TI_DBG6, tiSoftReset, and TYPE_FATAL.
Referenced by agtiapi_ResetCard().
osGLOBAL bit32 tiCOMSetControllerConfig | ( | tiRoot_t * | tiRoot, |
bit32 | modePage, | ||
bit32 | length, | ||
void * | buffer, | ||
void * | context | ||
) |
Definition at line 5242 of file tdport.c.
References tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_SUCCESS, saSetControllerConfig(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, TI_ENCRYPTION_CONTROL_PARM_PAGE, TI_ENCRYPTION_DEK_CONFIG_PAGE, TI_ENCRYPTION_GENERAL_CONFIG_PAGE, TI_ENCRYPTION_HMAC_CONFIG_PAGE, TI_INTERRUPT_CONFIGURATION_PAGE, TI_SAS_PROTOCOL_TIMER_CONFIG_PAGE, tiBusy, tiError, and tiSuccess.
Definition at line 6068 of file tdport.c.
References agNULL, tdsaContext_s::agRootNonInt, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, saSetOperator(), TD_ASSERT, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiBusy, tiError, and tiSuccess.
Definition at line 1789 of file tdmisc.c.
References agNULL, agsaForensicData_t::dataBuf, agsaForensicData_t::DataType, agsaForensicData_t::directData, agsaForensicData_t::directLen, agsaForensicData_t::directOffset, ostiPortEvent(), agsaForensicData_t::readLen, saGetForensicData(), saHwShutdown(), status, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaFreeCardID(), tdsaResetComMemFlags(), TI_DBG1, tiPortShutdown, tiSuccess, and TYPE_NON_FATAL.
Referenced by agtiapi_ReleaseHBA().
Definition at line 195 of file tdint.c.
References agBOOLEAN, agNULL, saSystemInterruptsActive(), agsaContext_s::sdkData, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and TI_DBG6.
Referenced by agtiapi_InitCardHW(), agtiapi_ReleaseHBA(), and agtiapi_ResetCard().
Definition at line 89 of file tdtimers.c.
References tdsaContext_s::agRootNonInt, dmTimerTick(), saTimerTick(), smTimerTick(), tiRoot::tdData, tdsaRoot_s::tdsaAllShared, and tdsaProcessTimers().
Referenced by agtiapi_CheckCB(), and agtiapi_TITimer().
osGLOBAL void tiINIDebugDumpIO | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest | ||
) |
osGLOBAL bit32 tiINIDiscoverTargets | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
bit32 | option | ||
) |
Definition at line 96 of file itddisc.c.
References AG_SA_DISCOVERY_TYPE_SAS, agFALSE, agNULL, tdsaPortContext_s::agPortContext, tdsaPortContext_s::agRoot, agTRUE, tdsaPortContext_s::discoveryOptions, tdsaPortContext_s::DiscoveryState, DM_DISCOVERY_OPTION_FULL_START, dmDiscover(), tdList_s::flink, tdsaPortContext_s::id, ITD_DSTATE_COMPLETED, ITD_DSTATE_NOT_STARTED, ITD_DSTATE_STARTED, ostiInitiatorEvent(), saDiscover(), TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, tiDiscOK, tiError, tiIntrEventTypeDiscovery, tdsaPortContext_s::tiPortalContext, tiSuccess, and tdsaPortContext_s::valid.
Referenced by agtiapi_DiscoverTgt(), and ostiPortEvent().
osGLOBAL bit32 tiINIGetDeviceHandles | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
tiDeviceHandle_t * | agDev[], | ||
bit32 | maxDevs | ||
) |
Definition at line 245 of file itddisc.c.
References tdsaDeviceData_s::agDevHandle, agFALSE, agNULL, agTRUE, DEVICE_IS_SATA_DEVICE, DEVICE_IS_SSP_TARGET, DEVICE_IS_STP_TARGET, tdsaPortContext_s::discovery, DISCOVERY_IN_PROGRESS, tdsaPortContext_s::DiscoveryState, dmDiscFailed, tdList_s::flink, tdsaDiscovery_s::forcedOK, tdsaDeviceData_s::id, tdsaPortContext_s::id, satDeviceData_t::IDDeviceValid, ITD_DSTATE_COMPLETED, tdsaDeviceData_s::registered, TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tdsaDeviceData_s::satDevData, satDeviceData_t::satNCQMaxIO, satDeviceData_t::satPendingIO, satDeviceData_t::satPendingNCQIO, satDeviceData_t::satPendingNONNCQIO, TD_ASSERT, TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, tdsaDeviceData_s::tiDeviceHandle, tdsaPortContext_s::tiPortalContext, tdsaDeviceData_s::valid, and tdsaPortContext_s::valid.
Referenced by agtiapi_GetDevHandle().
osGLOBAL bit32 tiINIGetDeviceHandlesForWinIOCTL | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
tiDeviceHandle_t * | agDev[], | ||
bit32 | maxDevs | ||
) |
Definition at line 506 of file itddisc.c.
References tdsaDeviceData_s::agDevHandle, agFALSE, agNULL, agTRUE, DEVICE_IS_SATA_DEVICE, DEVICE_IS_SMP_TARGET, DEVICE_IS_SSP_TARGET, DEVICE_IS_STP_TARGET, tdsaPortContext_s::discovery, DISCOVERY_IN_PROGRESS, tdsaPortContext_s::DiscoveryState, dmDiscFailed, tdList_s::flink, tdsaDiscovery_s::forcedOK, tdsaDeviceData_s::id, tdsaPortContext_s::id, satDeviceData_t::IDDeviceValid, ITD_DSTATE_COMPLETED, tdsaDeviceData_s::registered, TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tdsaDeviceData_s::satDevData, satDeviceData_t::satNCQMaxIO, satDeviceData_t::satPendingIO, satDeviceData_t::satPendingNCQIO, satDeviceData_t::satPendingNONNCQIO, TD_ASSERT, TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, tdsaDeviceData_s::tiDeviceHandle, tdsaPortContext_s::tiPortalContext, tdsaDeviceData_s::valid, and tdsaPortContext_s::valid.
Referenced by agtiapi_getdevlist().
osGLOBAL bit32 tiINIGetDeviceInfo | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiDeviceInfo_t * | tiDeviceInfo | ||
) |
Definition at line 780 of file itddisc.c.
References tdsaDeviceData_s::agDevHandle, tdsaDeviceData_s::agDeviceInfo, agNULL, tdsaDeviceData_s::agRoot, agTRUE, DEVICE_IS_SATA_DEVICE, DEVICE_IS_STP_TARGET, agsaDeviceInfo_s::devType_S_Rate, tiDetailedDeviceInfo::devType_S_Rate, tdsaDeviceData_s::directlyAttached, tiDeviceInfo::info, tiDeviceInfo::localAddress, tiDeviceInfo::localName, agsaSATAIdentifyData_s::modelNumber, tiDeviceInfo::osAddress1, tiDeviceInfo::osAddress2, osti_memcpy, osti_memset, tdsaDeviceData_s::registered, tiDeviceInfo::remoteAddress, tiDeviceInfo::remoteName, saGetDeviceInfo(), TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tdsaPortContext_s::sasLocalAddressHi, tdsaPortContext_s::sasLocalAddressLo, tdsaPortContext_s::sasRemoteAddressHi, tdsaPortContext_s::sasRemoteAddressLo, tdsaDeviceData_s::satDevData, satDeviceData_t::satIdentifyData, satDeviceData_t::satNCQ, satDeviceData_t::satNCQMaxIO, agsaSATAIdentifyData_s::serialNumber, satDeviceData_t::SN_id_limit, tiDeviceHandle::tdData, tdsaDeviceData_s::tdPortContext, TI_DBG1, TI_DBG6, tiError, tiInvalidHandle, and tiSuccess.
Referenced by agtiapi_cam_action(), and agtiapi_GetDevHandle().
osGLOBAL void tiIniGetDirectSataSasAddr | ( | tiRoot_t * | tiRoot, |
bit32 | phyId, | ||
bit8 ** | sasAddressHi, | ||
bit8 ** | sasAddressLo | ||
) |
Definition at line 1066 of file itddisc.c.
References agNULL, tiIOCTLPayload_wwn::FunctionSpecificArea, IOCTL_CALL_FAIL, IOCTL_MJ_NVMD_GET, IOCTL_MN_NVMD_GET_CONFIG, tiIOCTLPayload_wwn::Length, tiIOCTLPayload_wwn::MajorFunction, tiIOCTLPayload_wwn::MinorFunction, tiIOCTLPayload_wwn::Reserved, status, TD_MAX_NUM_PHYS, tiRoot::tdData, tdsaRoot_s::tdsaAllShared, tdsaNVMDGetIoctl(), TI_DBG3, tiCOMDelayedInterruptHandler(), tiIS_SPC, and tiNonInterruptContext.
Referenced by agtiapi_getdevlist(), and tiCOMMgntIOCTL().
osGLOBAL bit32 tiINIGetExpander | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | tiPortalContext, | ||
tiDeviceHandle_t * | tiDev, | ||
tiDeviceHandle_t ** | tiExp | ||
) |
Definition at line 971 of file itddisc.c.
References agFALSE, agNULL, agTRUE, tdsaDeviceData_s::ExpDevice, tdList_s::flink, tdsaPortContext_s::id, TD_PORT_LOCK, tiDeviceHandle::tdData, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG3, tdsaDeviceData_s::tiDeviceHandle, tiError, tdsaPortContext_s::tiPortalContext, tiSuccess, and tdsaPortContext_s::valid.
Referenced by agtiapi_PrepareSMPSGListCB().
osGLOBAL tiDeviceHandle_t * tiINIGetExpDeviceHandleBySasAddress | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | tiPortalContext, | ||
bit32 | sas_addr_hi, | ||
bit32 | sas_addr_lo, | ||
bit32 | maxDevs | ||
) |
Definition at line 1110 of file itddisc.c.
References tdsaDeviceData_s::agDevHandle, agFALSE, agNULL, agTRUE, DEVICE_IS_SMP_TARGET, tdList_s::flink, tdsaPortContext_s::id, tdsaDeviceData_s::registered, SAS_EDGE_EXPANDER_DEVICE, SAS_FANOUT_EXPANDER_DEVICE, TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, tdsaDeviceData_s::SASSpecDeviceType, TD_PORT_LOCK, tiRoot::tdData, TDLIST_EMPTY, TDLIST_OBJECT_BASE, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG6, tdsaDeviceData_s::tiDeviceHandle, tdsaPortContext_s::tiPortalContext, tdsaDeviceData_s::valid, and tdsaPortContext_s::valid.
Referenced by ostiGetDevHandleFromSasAddr().
osGLOBAL bit32 tiINIIOAbort | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | taskTag | ||
) |
Referenced by agtiapi_StartTM(), and ostiInitiatorEvent().
osGLOBAL bit32 tiINIIOAbortAll | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle | ||
) |
osGLOBAL bit32 tiINIIOStart | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiScsiInitiatorRequest_t * | tiScsiRequest, | ||
void * | tiRequestBody, | ||
bit32 | interruptContext | ||
) |
Definition at line 100 of file itdio.c.
References agFALSE, agNULL, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_REQ_TYPE_UNKNOWN, AGSA_SSP_INIT_READ, AGSA_SSP_INIT_WRITE, tiScsiInitiatorRequest::agSgl1, agTRUE, tiIniScsiCmnd::cdb, tiScsiInitiatorRequest::dataDirection, tiIniScsiCmnd::expDataLength, FDS_SM, tdsaContext_s::itdsaIni, itdssIOCompleted(), itdssIOForDebugging1Completed(), itdssIOForDebugging2Completed(), itdssIOForDebugging3Completed(), itdssIOPrepareSGL(), tiLUN::lun, tiIniScsiCmnd::lun, tiIORequest::osData, ossaSSPCompleted(), osti_memcpy, osti_memset, saSSPStart(), SATA_ENABLE, tiScsiInitiatorRequest::scsiCmnd, tiScsiInitiatorRequest::sglVirtualAddr, smIOStart(), TASK_ACA, TASK_HEAD_OF_QUEUE, TASK_ORDERED, TASK_SIMPLE, tiIniScsiCmnd::taskAttribute, TD_SAS_DEVICE, TD_SATA_DEVICE, TD_TASK_ACA, TD_TASK_HEAD_OF_QUEUE, TD_TASK_ORDERED, TD_TASK_SIMPLE, smContext_t::tdData, tiDeviceHandle::tdData, tiRoot::tdData, tiIORequest::tdData, TDSA_INP_ENTER, TDSA_INP_LEAVE, tdsaRoot_s::tdsaAllShared, tdsaRotateQnumber(), TI_DBG1, TI_DBG4, TI_DBG5, TI_DBG6, tiBusy, tiDirectionIn, tiDirectionOut, tiError, tiIONoDevice, and tiSuccess.
osGLOBAL bit32 tiINIIOStartDif | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiScsiInitiatorRequest_t * | tiScsiRequest, | ||
void * | tiRequestBody, | ||
bit32 | interruptContext, | ||
tiDif_t * | difOption | ||
) |
osGLOBAL bit32 tiINILogin | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle | ||
) |
Definition at line 925 of file itddisc.c.
References TI_DBG6, and tiNotSupported.
osGLOBAL bit32 tiINILogout | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle | ||
) |
Definition at line 955 of file itddisc.c.
References TI_DBG6, and tiNotSupported.
osGLOBAL bit32 tiINIReportErrorToEventLog | ( | tiRoot_t * | tiRoot, |
tiEVTData_t * | agEventData | ||
) |
osGLOBAL bit32 tiINISMPStart | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiSMPFrame_t * | tiScsiRequest, | ||
void * | tiSMPBody, | ||
bit32 | interruptContext | ||
) |
Definition at line 1123 of file itdio.c.
References tdsaDeviceData_s::agDevHandle, tdIORequestBody_s::agIORequest, agNULL, tdsaDeviceData_s::agRoot, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SMP_INIT_REQ, tdIORequestBody_s::agSASRequestBody, DEVICE_IS_SMP_TARGET, agsaSMPFrame_s::expectedRespLen, tiSMPFrame::expectedRespLen, agsaSMPFrame_s::flag, tiSMPFrame::flag, agsaSMPFrame_s::inFrameLen, agsaContext_s::osData, tiIORequest::osData, ossaSMPCAMCompleted(), agsaSMPFrame_s::outFrameBuf, tiSMPFrame::outFrameBuf, agsaSMPFrame_s::outFrameLen, tiSMPFrame::outFrameLen, tdIORequestBody_s::SAS, saSMPStart(), agsaSASRequestBody_u::smpFrame, tiDeviceHandle::tdData, tiIORequest::tdData, tdhexdump(), TDSA_INP_ENTER, TI_DBG1, TI_DBG6, tiBusy, tiError, tdIORequestBody_s::tiIORequest, tiSuccess, and tdIORequestBody_s::transport.
Referenced by agtiapi_StartSMP().
osGLOBAL bit32 tiINISuperIOStart | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiSuperScsiInitiatorRequest_t * | tiScsiRequest, | ||
void * | tiRequestBody, | ||
bit32 | interruptContext | ||
) |
Definition at line 644 of file itdio.c.
References agBOOLEAN, tdsaDeviceData_s::agDevHandle, agFALSE, tdIORequestBody_s::agIORequest, agNULL, tdIORequestBody_s::agRequestType, tdsaDeviceData_s::agRoot, AGSA_RC_BUSY, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_REQ_TYPE_UNKNOWN, AGSA_SAS_ENABLE_DIF, AGSA_SAS_ENABLE_ENCRYPTION, AGSA_SSP_INIT_READ, AGSA_SSP_INIT_READ_INDIRECT, AGSA_SSP_INIT_WRITE, AGSA_SSP_INIT_WRITE_INDIRECT, tdIORequestBody_s::agSASRequestBody, tdIORequestBody_s::agSATARequestBody, tiSuperScsiInitiatorRequest::agSgl1, agTRUE, agsaSSPCmdInfoUnit_s::cdb, tiIniScsiCmnd::cdb, satIOContext_s::currentLBA, tiSuperScsiInitiatorRequest::dataDirection, agsaSSPInitiatorRequest_s::dataLength, tdsaDeviceData_s::DeviceType, agsaSSPInitiatorRequest_s::dif, tiSuperScsiInitiatorRequest::Dif, DIF_ACTION_FLAG_MASK, DIF_INSERT, agsaSSPCmdInfoUnit_s::efb_tp_taskAttribute, agsaSSPInitiatorRequest_s::encrypt, tiSuperScsiInitiatorRequest::Encrypt, tiIniScsiCmnd::expDataLength, tdIORequestBody_s::expDataLength, agsaSATAInitiatorRequest_s::fis, agsaSATAHostFis_u::fisRegHostToDev, agsaSSPInitiatorRequest_s::flag, agsaDif_s::flags, tiSuperScsiInitiatorRequest::flags, tdsaDeviceData_s::id, tdIORequestBody_s::InitiatorRegIO, satIOContext_s::interruptContext, tdIORequestBody_s::ioCompleted, tdIORequestBody_s::IOCompletionFunc, tdIORequestBody_s::ioStarted, tdIORequestBody_s::IOType, tdsaContext_s::itdsaIni, itdssIOCompleted(), itdssIOForDebugging1Completed(), itdssIOForDebugging2Completed(), itdssIOForDebugging3Completed(), itdssIOPrepareSGL(), agsaSSPCmdInfoUnit_s::lun, tiLUN::lun, tiIniScsiCmnd::lun, satIOContext_s::OrgTL, agsaContext_s::osData, tiIORequest::osData, ossaSSPCompleted(), osti_memcpy, osti_memset, satIOContext_s::pFis, satIOContext_s::pSatDevData, satIOContext_s::pScsiCmnd, satIOContext_s::pSense, satIOContext_s::ptiDeviceHandle, satIOContext_s::pTiSenseData, tdsaDeviceData_s::registered, tdIORequestBody_s::SAS, TDSASAddressID_s::sasAddressHi, tdsaDeviceData_s::SASAddressID, TDSASAddressID_s::sasAddressLo, saSSPStart(), tdIORequestBody_s::SATA, tdsaDeviceData_s::satDevData, satIOContext_s::satIntIoContext, tdIORequestBody_s::satIOContext, satIOContext_s::satOrgIOContext, tiSuperScsiInitiatorRequest::scsiCmnd, SCSIOPC_READ_10, SCSIOPC_READ_12, SCSIOPC_READ_16, SCSIOPC_READ_6, SCSIOPC_WRITE_10, SCSIOPC_WRITE_12, SCSIOPC_WRITE_16, SCSIOPC_WRITE_6, tiSenseData::senseData, tiSenseData::senseLen, tdIORequestBody_s::sensePayload, tiSuperScsiInitiatorRequest::sglVirtualAddr, tdIORequestBody_s::sglVirtualAddr, smContext_t::smData, smSuperIOStart(), agsaSSPInitiatorRequest_s::sspCmdIU, agsaSASRequestBody_u::sspInitiatorReq, agsaSSPInitiatorRequestIndirect_s::sspInitiatorReqAddrLower32, agsaSSPInitiatorRequestIndirect_s::sspInitiatorReqAddrUpper32, agsaSASRequestBody_u::sspInitiatorReqIndirect, agsaSSPInitiatorRequestIndirect_s::sspInitiatorReqLen, satIOContext_s::superIOFlag, TASK_ACA, TASK_HEAD_OF_QUEUE, TASK_ORDERED, TASK_SIMPLE, tiIniScsiCmnd::taskAttribute, TD_ASSERT, TD_SAS_DEVICE, TD_SATA_DEVICE, TD_TASK_ACA, TD_TASK_HEAD_OF_QUEUE, TD_TASK_ORDERED, TD_TASK_SIMPLE, smContext_t::tdData, tiDeviceHandle::tdData, tiRoot::tdData, tiIORequest::tdData, tdsaDeviceData_s::tdPortContext, tdsaRoot_s::tdsaAllShared, tdsaRotateQnumber(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG4, TI_DBG5, TI_DBG6, TI_SCSI_INITIATOR_DIF, TI_SCSI_INITIATOR_ENCRYPT, TI_SCSI_INITIATOR_INDIRECT_CDB, tiBusy, tdIORequestBody_s::tiDevHandle, tiDirectionIn, tiDirectionOut, tiError, tiIONoDevice, tdIORequestBody_s::tiIORequest, satIOContext_s::tiRequestBody, satIOContext_s::tiScsiXchg, tdIORequestBody_s::tiSenseData, tiSuccess, tdIORequestBody_s::transport, and tdsaDeviceData_s::valid.
Referenced by agtiapi_StartIO().
osGLOBAL bit32 tiINITaskManagement | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle, | ||
bit32 | task, | ||
tiLUN_t * | lun, | ||
tiIORequest_t * | taskTag, | ||
tiIORequest_t * | currentTaskTag | ||
) |
Referenced by agtiapi_StartTM(), and ostiInitiatorEvent().
osGLOBAL void tiINITransportRecovery | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle | ||
) |
osGLOBAL bit32 tiNumOfLunIOCTLreq | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiDeviceHandle_t * | tiDeviceHandle, | ||
void * | tiRequestBody, | ||
tiIOCTLPayload_t * | agIOCTLPayload, | ||
void * | agParam1, | ||
void * | agParam2 | ||
) |
Definition at line 1790 of file itdio.c.
References tdsaDeviceData_s::agDevHandle, agFALSE, tdIORequestBody_s::agIORequest, agNULL, AGSA_RC_SUCCESS, AGSA_SSP_INIT_READ, tdIORequestBody_s::agSASRequestBody, agsaSSPInitiatorRequest_s::agSgl, agsaSSPCmdInfoUnit_s::cdb, CLEAR_ESGL_EXTEND, agsaSSPInitiatorRequest_s::dataLength, agsaSgl_s::extReserved, IOCTL_CALL_FAIL, IOCTL_CALL_PENDING, IOCTL_CALL_SUCCESS, agsaSgl_s::len, NULL, agsaContext_s::osData, ossaSSPIoctlCompleted(), osti_memset, ostiAllocMemory(), ostiFreeMemory(), REPORT_LUN_LEN, REPORT_LUN_OPCODE, tdIORequestBody_s::SAS, saSSPStart(), agsaSgl_s::sgLower, agsaSgl_s::sgUpper, agsaSSPInitiatorRequest_s::sspCmdIU, agsaSASRequestBody_u::sspInitiatorReq, status, tiDeviceHandle::tdData, tiRoot::tdData, tiIORequest::tdData, tdsaRoot_s::tdsaAllShared, tdIORequestBody_s::tiIORequest, tiSuccess, and tdIORequestBody_s::transport.
Referenced by tdsaGetNumOfLUNIOCTL().
void tiPCI_TRIGGER | ( | tiRoot_t * | tiRoot | ) |
osGLOBAL bit32 tiTGTGetDeviceHandles | ( | tiRoot_t * | tiRoot, |
tiPortalContext_t * | portalContext, | ||
tiDeviceHandle_t * | agDev[], | ||
bit32 | maxDevs | ||
) |
Definition at line 2195 of file ttdio.c.
References agFALSE, agNULL, agTRUE, tiRoot::tdData, TDLIST_OBJECT_BASE, tdsaRoot_s::tdsaAllShared, TI_DBG4, and tdsaContext_s::ttdsaTgt.
osGLOBAL bit32 tiTGTGetDeviceInfo | ( | tiRoot_t * | tiRoot, |
tiDeviceHandle_t * | tiDeviceHandle, | ||
tiDeviceInfo_t * | tiDeviceInfo | ||
) |
Definition at line 2306 of file ttdio.c.
References tdsaDeviceData_s::agDeviceInfo, agNULL, agTRUE, agsaDeviceInfo_s::devType_S_Rate, tiDetailedDeviceInfo::devType_S_Rate, tiDeviceInfo::info, tiDeviceInfo::localAddress, tiDeviceInfo::localName, tdsaDeviceData_s::registered, tiDeviceInfo::remoteAddress, tiDeviceInfo::remoteName, tdsaPortContext_s::sasLocalAddressHi, tdsaPortContext_s::sasLocalAddressLo, tdsaPortContext_s::sasRemoteAddressHi, tdsaPortContext_s::sasRemoteAddressLo, tiDeviceHandle::tdData, tdsaDeviceData_s::tdPortContext, TI_DBG4, tiError, and tiSuccess.
osGLOBAL bit32 tiTGTIOAbort | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | taskTag | ||
) |
Definition at line 1647 of file ttdio.c.
References tdsaDeviceData_s::agDevHandle, tdIORequestBody_s::agIORequest, agNULL, ttdsaXchg_s::agRoot, agTRUE, ttdsaXchg_s::DeviceData, ttdsaXchg_s::IORequestBody, ttdsaXchg_s::oslayerAborting, ostiTargetIOError(), saSSPAbort(), agsaContext_s::sdkData, TD_XCHG_GET_STATE, TD_XCHG_STATE_INACTIVE, tiRoot::tdData, tiIORequest::tdData, tdsaRoot_s::tdsaAllShared, TI_DBG1, tiDetailAborted, tiError, tiIOFailed, ttdsaXchg_s::tiIOToBeAbortedRequest, ttdsaXchg_s::tiRoot, tiSuccess, ttdsaXchgFreeStruct(), ttdsaXchgGetStruct(), and ttdsaXchg_s::XchgToBeAborted.
osGLOBAL bit32 tiTGTIOStart | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | dataOffset, | ||
bit32 | dataLength, | ||
tiSgl_t * | dataSGL, | ||
void * | sglVirtualAddr | ||
) |
Definition at line 485 of file ttdio.c.
References tdsaDeviceData_s::agDevHandle, agFALSE, tdIORequestBody_s::agIORequest, agNULL, ttdsaXchg_s::agRoot, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_SSP_TGT_READ_GOOD_RESP, AGSA_SSP_TGT_WRITE_GOOD_RESP, tdIORequestBody_s::agSASRequestBody, agsaSSPTargetRequest_s::agTag, agTRUE, ttdsaXchg_s::dataLen, agsaSSPTargetRequest_s::dataLength, ttdsaXchg_s::DeviceData, tdsaPortContext_s::id, ttdsaXchg_s::IORequestBody, tdsaDeviceData_s::IOResponse, tdsaDeviceData_s::IOStart, tdIORequestBody_s::IOType, tiSgl_s::len, ttdsaDmaMemoryArea_t::length, MIN, NULL, agsaSSPTargetRequest_s::offset, ossaSSPCompleted(), ttdsaXchg_s::readRspCollapsed, tdIORequestBody_s::RegIO, ttdsaXchg_s::resp, ttdsaXchg_s::responseSent, tdIORequestBody_s::SAS, saSSPStart(), tdIORequestBody_s::sglVirtualAddr, agsaSSPTargetRequest_s::sspOption, agsaSASRequestBody_u::sspTargetReq, ttdsaXchg_s::tag, tdIORequestBody_s::TargetIO, tdIORequestBody_s::TargetIOType, TD_DEBUG_TRACE, TD_XCHG_CONTEXT_NO_START_IO, tiIORequest::tdData, tdsaDeviceData_s::tdPortContext, tdsaRotateQnumber(), TI_DBG1, TI_DBG4, TI_DBG6, tiBusy, tiError, tiSgl, tdIORequestBody_s::tiSgl1, tiSuccess, ttdsaXchg_s::TLR, tdIORequestBody_s::transport, ttdsaSendResp(), ttdssIOPrepareSGL(), tiSgl_s::type, tdsaPortContext_s::valid, ttdsaXchg_s::wrtRspCollapsed, and ttdsaXchg_s::XchType.
osGLOBAL bit32 tiTGTIOStartDif | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | dataOffset, | ||
bit32 | dataLength, | ||
tiSgl_t * | dataSGL, | ||
void * | sglVirtualAddr, | ||
tiDif_t * | difOption | ||
) |
osGLOBAL bit32 tiTGTIOStartMirror | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | dataOffset, | ||
bit32 | dataLength, | ||
tiSgl_t * | dataSGL, | ||
void * | sglVirtualAddr, | ||
tiSgl_t * | dataSGLMirror, | ||
void * | sglVirtualAddrMirror | ||
) |
osGLOBAL bit32 tiTGTSendTmResp | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiTMRequest, | ||
bit32 | status | ||
) |
Definition at line 1820 of file ttdio.c.
References sas_resp_s::agResp, ttdsaXchg_s::agRoot, AGSA_INCORRECT_LOGICAL_UNIT_NUMBER, AGSA_RC_FAILURE, AGSA_RC_SUCCESS, AGSA_TASK_MANAGEMENT_FUNCTION_FAILED, AGSA_TASK_MANAGEMENT_FUNCTION_NOT_SUPPORTED, AGSA_TASK_MANAGEMENT_FUNCTION_SUCCEEDED, agTRUE, agsaSSPResponseInfoUnit_s::dataPres, ttdsaXchg_s::FrameType, ttdsaDmaMemoryArea_t::length, ttdsaXchg_s::resp, sas_resp_s::RespData, RESPONSE_DATA, RESPONSE_DATA_LEN, agsaSSPResponseInfoUnit_s::responsedataLen, ttdsaXchg_s::responseSent, SAS_TM, agsaSSPResponseInfoUnit_s::senseDataLen, status, agsaSSPResponseInfoUnit_s::status, ttdsaXchg_s::statusSent, tiIORequest::tdData, TI_DBG1, TI_DBG2, tiBusy, tiError, tiIncorrectLun, tiInvalidHandle, tiIONoDevice, tiMemoryNotAvail, tiMemoryTooLarge, tiNotSupported, tiReject, tiSuccess, tiTGTSetResp(), ttdsaSendResp(), and ttdsaDmaMemoryArea_t::virtAddr.
Referenced by ttdsaTMProcess().
osGLOBAL void * tiTGTSenseBufferGet | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | length | ||
) |
Definition at line 1974 of file ttdio.c.
References OS_ASSERT, ttdsaXchg_s::resp, tiIORequest::tdData, TI_DBG4, and ttdsaDmaMemoryArea_t::virtAddr.
osGLOBAL void tiTGTSetResp | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | dataSentLength, | ||
bit8 | ScsiStatus, | ||
bit32 | senseLength | ||
) |
Definition at line 2015 of file ttdio.c.
References agFALSE, ttdsaXchg_s::agRoot, AGSA_SSP_TGT_READ_DATA, AGSA_SSP_TGT_WRITE_DATA, AGSA_TASK_MANAGEMENT_FUNCTION_NOT_SUPPORTED, tdIORequestBody_s::agSASRequestBody, agTRUE, tdsaRoot_s::autoGoodRSP, dumpresp(), ttdsaXchg_s::FrameType, ttdsaXchg_s::IORequestBody, ttdsaDmaMemoryArea_t::length, NO_DATA, ttdsaDmaMemoryArea_t::phyAddrLower, ttdsaDmaMemoryArea_t::phyAddrUpper, READ_GOOD_RESPONSE, ttdsaXchg_s::readRspCollapsed, ttdsaXchg_s::resp, agsaSSPTargetResponse_s::respBufLength, agsaSSPTargetResponse_s::respBufLower, agsaSSPTargetResponse_s::respBufUpper, RESPONSE_DATA, RESPONSE_DATA_LEN, tdIORequestBody_s::SAS, SAS_TM, SENSE_DATA, agsaSASRequestBody_u::sspTargetResponse, ttdsaXchg_s::statusSent, ttdsaXchg_s::tag, tiRoot::tdData, tiIORequest::tdData, TI_DBG1, TI_DBG4, TI_TIROOT_TO_AGROOT, tiIS_SPC, tdIORequestBody_s::transport, ttdsaSendResp(), ttdsaDmaMemoryArea_t::virtAddr, WRITE_GOOD_RESPONSE, ttdsaXchg_s::wrtRspCollapsed, and ttdsaXchg_s::XchType.
Referenced by tiTGTSendTmResp().
osGLOBAL bit32 tiTGTSuperIOStart | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
tiSuperScsiTargetRequest_t * | tiScsiRequest | ||
) |
Definition at line 86 of file ttdtimer.c.