FreeBSD kernel pms device code
saosapi.h File Reference

The file defines the declaration of OS APIs. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ossaDisableInterrupts(agRoot, interruptVectorIndex)
 
#define ossaReenableInterrupts(agRoot, interruptVectorIndex)
 
#define ossaQueueProcessed(agRoot, queue, obpi, obci)
 
#define ossaLogIomb(a, b, c, d, e)
 
#define OSSA_INP_ENTER(root)
 
#define OSSA_INP_LEAVE(root)
 
#define OSSA_OUT_ENTER(root)
 
#define OSSA_OUT_LEAVE(root)
 

Functions

GLOBAL FORCEINLINE bit32 ossaHwRegRead (agsaRoot_t *agRoot, bit32 regOffset)
 
GLOBAL FORCEINLINE void ossaHwRegWrite (agsaRoot_t *agRoot, bit32 regOffset, bit32 regValue)
 
GLOBAL FORCEINLINE bit32 ossaHwRegReadExt (agsaRoot_t *agRoot, bit32 busBaseNumber, bit32 regOffset)
 
GLOBAL FORCEINLINE void ossaHwRegWriteExt (agsaRoot_t *agRoot, bit32 busBaseNumber, bit32 regOffset, bit32 regValue)
 
osGLOBAL bit32 ossaHwRegReadConfig32 (agsaRoot_t *agRoot, bit32 regOffset)
 
GLOBAL FORCEINLINE void ossaSingleThreadedEnter (agsaRoot_t *agRoot, bit32 syncLockId)
 ossaSingleThreadedEnter More...
 
GLOBAL FORCEINLINE void ossaSingleThreadedLeave (agsaRoot_t *agRoot, bit32 syncLockId)
 ossaSingleThreadedLeave More...
 
GLOBAL void ossaStallThread (agsaRoot_t *agRoot, bit32 microseconds)
 ossaStallThread More...
 
GLOBAL FORCEINLINE void ossaCacheInvalidate (agsaRoot_t *agRoot, void *osMemHandle, void *virtPtr, bit32 length)
 
GLOBAL FORCEINLINE void ossaCacheFlush (agsaRoot_t *agRoot, void *osMemHandle, void *virtPtr, bit32 length)
 
GLOBAL FORCEINLINE void ossaCachePreFlush (agsaRoot_t *agRoot, void *osMemHandle, void *virtPtr, bit32 length)
 
GLOBAL void ossaHwCB (agsaRoot_t *agRoot, agsaPortContext_t *agPortContext, bit32 event, bit32 eventParm1, void *eventParm2, void *eventParm3)
 
GLOBAL void ossaHwEventAckCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status)
 ossaHwEventAckCB More...
 
GLOBAL void ossaSATACompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, void *agFirstDword, bit32 agIOInfoLen, void *agParam)
 
GLOBAL void ossaSATAEvent (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, agsaPortContext_t *agPortContext, agsaDevHandle_t *agDevHandle, bit32 event, bit32 agIOInfoLen, void *agParam)
 
GLOBAL void ossaSATAAbortCB (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 flag, bit32 status)
 
GLOBAL void ossaSSPEvent (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, agsaPortContext_t *agPortContext, agsaDevHandle_t *agDevHandle, bit32 event, bit16 sspTag, bit32 agIOInfoLen, void *agParam)
 
osGLOBAL void ossaSMPIoctlCompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
 
GLOBAL void ossaSMPCompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, agsaFrameHandle_t agFrameHandle)
 ossaSMPCompleted More...
 
GLOBAL void ossaSMPReqReceived (agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, agsaFrameHandle_t agFrameHandle, bit32 agFrameLength, bit32 phyId)
 
GLOBAL FORCEINLINE void ossaSSPCompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, void *agParam, bit16 sspTag, bit32 agOtherInfo)
 ossaSSPCompleted More...
 
GLOBAL void ossaSSPReqReceived (agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, agsaFrameHandle_t agFrameHandle, bit16 agInitiatorTag, bit32 parameter, bit32 agFrameLen)
 ossaSSPReqReceived More...
 
osGLOBAL void ossaSSPIoctlCompleted (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 agIOStatus, bit32 agIOInfoLen, void *agParam, bit16 sspTag, bit32 agOtherInfo)
 
GLOBAL void ossaSSPAbortCB (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 flag, bit32 status)
 
GLOBAL void ossaSMPAbortCB (agsaRoot_t *agRoot, agsaIORequest_t *agIORequest, bit32 flag, bit32 status)
 ossaSMPAbortCB More...
 
GLOBAL void ossaReconfigSASParamsCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaSASReconfig_t *agSASConfig)
 ossaReconfigSASParamsCB More...
 
GLOBAL void ossaDiscoverSataCB (agsaRoot_t *agRoot, agsaPortContext_t *agPortContext, bit32 event, void *pParm1, void *pParm2)
 
GLOBAL void ossaDiscoverSasCB (agsaRoot_t *agRoot, agsaPortContext_t *agPortContext, bit32 event, void *pParm1, void *pParm2)
 
GLOBAL bit32 ossaDeviceHandleAccept (agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, agsaSASDeviceInfo_t *agDeviceInfo, agsaPortContext_t *agPortContext, bit32 *hostAssignedDeviceId)
 
GLOBAL void ossaGetDeviceHandlesCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaPortContext_t *agPortContext, agsaDevHandle_t *agDev[], bit32 validDevs)
 ossaGetDeviceHandlesCB More...
 
GLOBAL void ossaGetDeviceInfoCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, void *agInfo)
 ossaGetDeviceInfoCB More...
 
GLOBAL void ossaDeviceHandleRemovedEvent (agsaRoot_t *agRoot, agsaDevHandle_t *agDevHandle, agsaPortContext_t *agPortContext)
 ossaDeviceHandleRemovedEvent More...
 
GLOBAL void ossaGetDeviceStateCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, bit32 deviceState)
 ossaGetDeviceStateCB More...
 
GLOBAL void ossaSetDeviceInfoCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, bit32 option, bit32 param)
 ossaSetDeviceInfoCB More...
 
GLOBAL void ossaSetDeviceStateCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaDevHandle_t *agDevHandle, bit32 status, bit32 newDeviceState, bit32 previousDeviceState)
 ossaSetDeviceStateCB More...
 
GLOBAL bit32 ossaTimeStamp (agsaRoot_t *agRoot)
 
GLOBAL bit64 ossaTimeStamp64 (agsaRoot_t *agRoot)
 
GLOBAL void ossaLocalPhyControlCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 phyId, bit32 phyOperation, bit32 status, void *parm)
 ossaLocalPhyControlCB More...
 
GLOBAL void ossaGetPhyProfileCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 ppc, bit32 phyID, void *parm)
 
GLOBAL void ossaSetPhyProfileCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 ppc, bit32 phyID, void *parm)
 
GLOBAL void ossaFwFlashUpdateCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status)
 ossaFwFlashUpdateCB More...
 
GLOBAL void ossaFlashExtExecuteCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 command, agsaFlashExtResponse_t *agFlashExtRsp)
 
GLOBAL void ossaEchoCB (agsaRoot_t *agRoot, agsaContext_t *agContext, void *echoPayload)
 ossaEchoCB More...
 
GLOBAL void ossaGpioResponseCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 gpioReadValue, agsaGpioPinSetupInfo_t *gpioPinSetupInfo, agsaGpioEventSetupInfo_t *gpioEventSetupInfo)
 ossaGpioResponseCB More...
 
GLOBAL void ossaGpioEvent (agsaRoot_t *agRoot, bit32 gpioEvent)
 ossaGpioEvent More...
 
GLOBAL void ossaSASDiagExecuteCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 command, bit32 reportData)
 ossaSASDiagExecuteCB More...
 
GLOBAL void ossaSASDiagStartEndCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status)
 ossaSASDiagStartEndCB More...
 
GLOBAL void ossaGetTimeStampCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 timeStampLower, bit32 timeStampUpper)
 ossaGetTimeStampCB More...
 
GLOBAL void ossaPortControlCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaPortContext_t *agPortContext, bit32 portOperation, bit32 status)
 
GLOBAL void ossaGeneralEvent (agsaRoot_t *agRoot, bit32 status, agsaContext_t *agContext, bit32 *msg)
 ossaGeneralEvent More...
 
void ossaGetRegisterDumpCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status)
 ossaGetRegisterDumpCB More...
 
GLOBAL void ossaGetForensicDataCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaForensicData_t *forensicData)
 
GLOBAL void ossaGetNVMDResponseCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit8 indirectPayload, bit32 agInfoLen, agsaFrameHandle_t agFrameHandle)
 ossaGetNVMDResponseCB More...
 
GLOBAL void ossaSetNVMDResponseCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status)
 ossaSetNVMDResponseCB More...
 
GLOBAL void ossaSGpioCB (agsaRoot_t *agRoot, agsaContext_t *agContext, agsaSGpioReqResponse_t *pSgpioResponse)
 
GLOBAL void ossaPCIeDiagExecuteCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 command, agsaPCIeDiagResponse_t *resp)
 
GLOBAL void ossaGetDFEDataCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 agInfoLen)
 ossaGetDFEDataCB More...
 
GLOBAL void ossaVhistCaptureCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 len)
 ossaVhistCaptureCB More...
 
GLOBAL void ossaGetIOErrorStatsCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaIOErrorEventStats_t *stats)
 
GLOBAL void ossaGetIOEventStatsCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaIOErrorEventStats_t *stats)
 
GLOBAL void ossaOperatorManagementCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 eq)
 
GLOBAL void ossaEncryptSelftestExecuteCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 type, bit32 length, void *TestResult)
 
GLOBAL void ossaGetOperatorCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 option, bit32 num, bit32 role, agsaID_t *id)
 
GLOBAL void ossaSetOperatorCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, bit32 eq)
 
GLOBAL void ossaDIFEncryptionOffloadStartCB (agsaRoot_t *agRoot, agsaContext_t *agContext, bit32 status, agsaOffloadDifDetails_t *agsaOffloadDifDetails)
 
GLOBAL void ossaLogTrace0 (agsaRoot_t *agRoot, bit32 traceCode)
 
GLOBAL void ossaLogTrace1 (agsaRoot_t *agRoot, bit32 traceCode, bit32 value1)
 
GLOBAL void ossaLogTrace2 (agsaRoot_t *agRoot, bit32 traceCode, bit32 value1, bit32 value2)
 
GLOBAL void ossaLogTrace3 (agsaRoot_t *agRoot, bit32 traceCode, bit32 value1, bit32 value2, bit32 value3)
 
GLOBAL void ossaLogTrace4 (agsaRoot_t *agRoot, bit32 traceCode, bit32 value1, bit32 value2, bit32 value3, bit32 value4)
 
GLOBAL void ossaLogDebugString (agsaRoot_t *agRoot, bit32 level, char *string, void *ptr1, void *ptr2, bit32 value1, bit32 value2)
 ossaLogDebugString More...
 
osGLOBAL void ossaPCI_TRIGGER (agsaRoot_t *agRoot)
 

Detailed Description

The file defines the declaration of OS APIs.

Definition in file saosapi.h.

Macro Definition Documentation

◆ OSSA_INP_ENTER

#define OSSA_INP_ENTER (   root)

Definition at line 834 of file saosapi.h.

◆ OSSA_INP_LEAVE

#define OSSA_INP_LEAVE (   root)

Definition at line 835 of file saosapi.h.

◆ OSSA_OUT_ENTER

#define OSSA_OUT_ENTER (   root)

Definition at line 836 of file saosapi.h.

◆ OSSA_OUT_LEAVE

#define OSSA_OUT_LEAVE (   root)

Definition at line 837 of file saosapi.h.

◆ ossaDisableInterrupts

#define ossaDisableInterrupts (   agRoot,
  interruptVectorIndex 
)
Value:
do \
{ \
agsaLLRoot_t *saROOT = (agsaLLRoot_t *)(agRoot->sdkData);\
saROOT->DisableInterrupts(agRoot, interruptVectorIndex); \
} while(0)
the LLRoot
Definition: satypes.h:209

Definition at line 127 of file saosapi.h.

◆ ossaLogIomb

#define ossaLogIomb (   a,
  b,
  c,
  d,
 
)

Definition at line 821 of file saosapi.h.

◆ ossaQueueProcessed

#define ossaQueueProcessed (   agRoot,
  queue,
  obpi,
  obci 
)

Definition at line 640 of file saosapi.h.

◆ ossaReenableInterrupts

#define ossaReenableInterrupts (   agRoot,
  interruptVectorIndex 
)
Value:
do \
{ \
agsaLLRoot_t *saROOT = (agsaLLRoot_t *)(agRoot->sdkData); \
saROOT->ReEnableInterrupts(agRoot, interruptVectorIndex); \
} while(0)

Definition at line 136 of file saosapi.h.

Function Documentation

◆ ossaCacheFlush()

GLOBAL FORCEINLINE void ossaCacheFlush ( agsaRoot_t agRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 118 of file ossacmnapi.c.

References agsaContext_s::osData, ostiCacheFlush(), TI_DBG6, and tdsaRootOsData_s::tiRoot.

Referenced by mpiMsgProduce().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaCacheInvalidate()

GLOBAL FORCEINLINE void ossaCacheInvalidate ( agsaRoot_t agRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 102 of file ossacmnapi.c.

References agsaContext_s::osData, ostiCacheInvalidate(), TI_DBG6, and tdsaRootOsData_s::tiRoot.

Referenced by mpiMsgConsume().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaCachePreFlush()

GLOBAL FORCEINLINE void ossaCachePreFlush ( agsaRoot_t agRoot,
void *  osMemHandle,
void *  virtPtr,
bit32  length 
)

Definition at line 134 of file ossacmnapi.c.

References agsaContext_s::osData, ostiCachePreFlush(), TI_DBG6, and tdsaRootOsData_s::tiRoot.

Referenced by mpiMsgProduce().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaDeviceHandleAccept()

◆ ossaDeviceHandleRemovedEvent()

GLOBAL void ossaDeviceHandleRemovedEvent ( agsaRoot_t agRoot,
agsaDevHandle_t agDevHandle,
agsaPortContext_t agPortContext 
)

ossaDeviceHandleRemovedEvent

Purpose: This routine is called by lower layer to notify the device removal

Parameters
agRootPointer to chip/driver Instance.
agDevHandlePointer to the assigned device handle for the registered device.
agPortContext:Pointerto this instance of port context.
Returns
None.

Definition at line 6750 of file ossacmnapi.c.

References agFALSE, agNULL, hpDBG_VERY_LOUD, tdsaDeviceData_s::id, tdsaPortContext_s::id, agsaContext_s::osData, ostiInitiatorEvent(), tdsaDeviceData_s::registered, tdsaPortContext_s::RegisteredDevNums, smTraceFuncEnter, smTraceFuncExit, TI_DBG1, TI_DBG2, tiDeviceRemoval, tiIntrEventTypeDeviceChange, tdsaPortContext_s::tiPortalContext, and tdsaRootOsData_s::tiRoot.

Referenced by mpiDeviceHandleRemoval().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaDIFEncryptionOffloadStartCB()

GLOBAL void ossaDIFEncryptionOffloadStartCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
agsaOffloadDifDetails_t agsaOffloadDifDetails 
)

Definition at line 8435 of file ossacmnapi.c.

References status, and TI_DBG1.

Referenced by mpiDifEncOffloadRsp().

Here is the caller graph for this function:

◆ ossaDiscoverSasCB()

GLOBAL void ossaDiscoverSasCB ( agsaRoot_t agRoot,
agsaPortContext_t agPortContext,
bit32  event,
void *  pParm1,
void *  pParm2 
)

Definition at line 9083 of file ossacmnapi.c.

◆ ossaDiscoverSataCB()

GLOBAL void ossaDiscoverSataCB ( agsaRoot_t agRoot,
agsaPortContext_t agPortContext,
bit32  event,
void *  pParm1,
void *  pParm2 
)

Definition at line 8968 of file ossacmnapi.c.

◆ ossaEchoCB()

GLOBAL void ossaEchoCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
void *  echoPayload 
)

ossaEchoCB

Purpose: This routine is called by lower layer to corresponding to saEchoCommand()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saEchoCommand()
echoPayloadPointer to the echo payload
Returns
None.

Definition at line 7197 of file ossacmnapi.c.

References agNULL, hpDBG_VERY_LOUD, agsaContext_s::osData, osti_memset, saEchoCommand(), smTraceFuncEnter, smTraceFuncExit, tdhexdump(), tdsaRotateQnumber(), TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by mpiEchoRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaEncryptSelftestExecuteCB()

GLOBAL void ossaEncryptSelftestExecuteCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  type,
bit32  length,
void *  TestResult 
)

◆ ossaFlashExtExecuteCB()

GLOBAL void ossaFlashExtExecuteCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  command,
agsaFlashExtResponse_t agFlashExtRsp 
)

Definition at line 6955 of file ossacmnapi.c.

References status, and TI_DBG1.

Referenced by mpiFwExtFlashUpdateRsp().

Here is the caller graph for this function:

◆ ossaFwFlashUpdateCB()

GLOBAL void ossaFwFlashUpdateCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status 
)

ossaFwFlashUpdateCB

Purpose: This routine is called by lower layer to corresponding to saFwFlashUpdate()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saFwFlashUpdate()
statusstatus
Returns
None.

Definition at line 6866 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, OSSA_FLASH_FWDNLD_DEVICE_UNSUPPORT, OSSA_FLASH_UPDATE_COMPLETE_PENDING_REBOOT, OSSA_FLASH_UPDATE_CRC_ERR, OSSA_FLASH_UPDATE_DISABLED, OSSA_FLASH_UPDATE_DNLD_NOT_SUPPORTED, OSSA_FLASH_UPDATE_HDR_ERR, OSSA_FLASH_UPDATE_HMAC_ERR, OSSA_FLASH_UPDATE_HW_ERR, OSSA_FLASH_UPDATE_IN_PROGRESS, OSSA_FLASH_UPDATE_LENGTH_ERR, OSSA_FLASH_UPDATE_OFFSET_ERR, OSSA_MPI_ERR_IO_RESOURCE_UNAVAILABLE, ostiCOMMgntIOCTLRsp(), smTraceFuncEnter, smTraceFuncExit, status, TI_DBG1, TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by mpiFwFlashUpdateRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGeneralEvent()

GLOBAL void ossaGeneralEvent ( agsaRoot_t agRoot,
bit32  status,
agsaContext_t agContext,
bit32 msg 
)

ossaGeneralEvent

Purpose: This is the event notification for debugging purposes sent to inform the OS layer of some general error related to a specific inbound operation.

Parameters
agRootPointer to chip/driver Instance.
statusStatus associated with this event
msgPointer to controller specific command massage that caused the error
Returns
None.

Definition at line 7819 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, ostiGenEventIOCTLRsp(), smTraceFuncEnter, smTraceFuncExit, status, TI_DBG1, and tdsaRootOsData_s::tiRoot.

Referenced by mpiGeneralEventRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetDeviceHandlesCB()

GLOBAL void ossaGetDeviceHandlesCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaPortContext_t agPortContext,
agsaDevHandle_t agDev[],
bit32  validDevs 
)

ossaGetDeviceHandlesCB

Purpose: This routine is called by lower layer to corresponding to saGetDeviceHandles()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the get device handle request originally passed into saGetDeviceHandles().
agPortContext:Pointerto this instance of a port context
agDevArray containing pointers to the device handles
validDevsNumber of valid device handles
Returns
None.
Note
- The scope is shared target and initiator. For details, refer to SAS/SATA Low-Level API Specification

Definition at line 5891 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, and TI_DBG2.

Referenced by mpiGetDevHandleRsp().

Here is the caller graph for this function:

◆ ossaGetDeviceInfoCB()

GLOBAL void ossaGetDeviceInfoCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaDevHandle_t agDevHandle,
bit32  status,
void *  agInfo 
)

ossaGetDeviceInfoCB

Purpose: This routine is called by lower layer to corresponding to saGetDeviceInfo()

Parameters
agRootPointer to chip/driver Instance.
agDevHandleHandle of the device
statusstatus
agInfoPointer to the structure that describes device information
Returns
None.
Note
- The scope is shared target and initiator. For details, refer to SAS/SATA Low-Level API Specification

Definition at line 5931 of file ossacmnapi.c.

References agsaSATADeviceInfo_s::commonDevInfo, agsaSASDeviceInfo_s::commonDevInfo, agsaSATADeviceInfo_s::connection, agsaDeviceInfo_s::devType_S_Rate, agsaDeviceInfo_s::firstBurstSize, hpDBG_VERY_LOUD, agsaSASDeviceInfo_s::initiator_ssp_stp_smp, agsaSASDeviceInfo_s::numOfPhys, OSSA_DEV_INFO_INVALID_HANDLE, OSSA_DEV_INFO_NO_EXTENDED_INFO, OSSA_DEV_INFO_SAS_EXTENDED_INFO, OSSA_DEV_INFO_SATA_EXTENDED_INFO, agsaSASDeviceInfo_s::phyIdentifier, agsaSATADeviceInfo_s::portMultiplierField, SA_DEVINFO_GET_SAS_ADDRESSHI, SA_DEVINFO_GET_SAS_ADDRESSLO, agsaSATADeviceInfo_s::signature, smTraceFuncEnter, smTraceFuncExit, status, agsaSATADeviceInfo_s::stpPhyIdentifier, agsaSASDeviceInfo_s::target_ssp_stp_smp, tdhexdump(), TI_DBG1, and TI_DBG2.

Referenced by mpiGetDevInfoRsp(), and mpiGetDevInfoRspSpc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetDeviceStateCB()

GLOBAL void ossaGetDeviceStateCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaDevHandle_t agDevHandle,
bit32  status,
bit32  deviceState 
)

ossaGetDeviceStateCB

Purpose: ossaGetDeviceStateCB() is the response callback function called by the LL Layer to indicate a response to saGetDeviceState()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saGetRegisterDump()
agDevHandlePointer to the device handle of the device
statusstatus
deviceStatedevice status
Returns
None.

Definition at line 8007 of file ossacmnapi.c.

References status, and TI_DBG4.

Referenced by mpiGetDeviceStateRsp().

Here is the caller graph for this function:

◆ ossaGetDFEDataCB()

GLOBAL void ossaGetDFEDataCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  agInfoLen 
)

ossaGetDFEDataCB

Purpose: ossaGetDFEDataCB() is the response callback function called by the LL Layer to indicate a response to saGetDFEData()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saGetDFEData()
statusstatus
agInfoLenlength in bytes of DFE data captured and transferred
Returns
None.

Definition at line 8235 of file ossacmnapi.c.

References status, and TI_DBG1.

Referenced by mpiGetDFEDataRsp().

Here is the caller graph for this function:

◆ ossaGetForensicDataCB()

GLOBAL void ossaGetForensicDataCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
agsaForensicData_t forensicData 
)

Definition at line 7842 of file ossacmnapi.c.

References agsaContext_s::osData, ostiGetForensicDataIOCTLRsp(), status, and tdsaRootOsData_s::tiRoot.

Referenced by saGetForensicData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetIOErrorStatsCB()

GLOBAL void ossaGetIOErrorStatsCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
agsaIOErrorEventStats_t stats 
)

Definition at line 7871 of file ossacmnapi.c.

Referenced by saGetIOErrorStats().

Here is the caller graph for this function:

◆ ossaGetIOEventStatsCB()

GLOBAL void ossaGetIOEventStatsCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
agsaIOErrorEventStats_t stats 
)

Definition at line 7883 of file ossacmnapi.c.

References agsaContext_s::osData, ostiGetIoEventStatsIOCTLRsp(), status, and tdsaRootOsData_s::tiRoot.

Referenced by saGetIOEventStats().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetNVMDResponseCB()

GLOBAL void ossaGetNVMDResponseCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit8  indirectPayload,
bit32  agInfoLen,
agsaFrameHandle_t  agFrameHandle 
)

ossaGetNVMDResponseCB

Purpose: This routine is called by lower layer to corresponding to saGetNVMDCommand()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saGetVPDCommand()
statusstatus
indirectPayloadThe value passed in agsaNVMDData_t when calling saGetNVMDCommand()
agInfoLenthe length of VPD information
agFrameHandlehandler of VPD information
Returns
None.

Definition at line 6989 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, OSSA_SUCCESS, ostiGetNVMDIOCTLRsp(), smTraceFuncEnter, smTraceFuncExit, status, tdhexdump(), TI_DBG1, TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by mpiGetNVMDataRsp(), and mpiGetNVMDCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetOperatorCB()

GLOBAL void ossaGetOperatorCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  option,
bit32  num,
bit32  role,
agsaID_t id 
)

◆ ossaGetPhyProfileCB()

GLOBAL void ossaGetPhyProfileCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  ppc,
bit32  phyID,
void *  parm 
)

Definition at line 5711 of file ossacmnapi.c.

References agNULL, 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, AGSA_SAS_PHY_OPEN_REJECT_RETRY_BACKOFF_THRESHOLD_PAGE, tdPhyCount_s::BW_rx, tdPhyCount_s::BW_tx, agsaPhyErrCountersPage_s::codeViolation, tdPhyCount_s::codeViolation, agsaPhyAnalogSettingsPage_s::Dword0, agsaSASPhyOpenRejectRetryBackOffThresholdPage_s::Dword0, agsaSASPhyGeneralStatusPage_s::Dword0, agsaPhyAnalogSettingsPage_s::Dword1, agsaSASPhyOpenRejectRetryBackOffThresholdPage_s::Dword1, agsaSASPhyGeneralStatusPage_s::Dword1, agsaPhyAnalogSettingsPage_s::Dword2, agsaSASPhyOpenRejectRetryBackOffThresholdPage_s::Dword2, agsaPhyAnalogSettingsPage_s::Dword3, agsaSASPhyOpenRejectRetryBackOffThresholdPage_s::Dword3, agsaPhyAnalogSettingsPage_s::Dword4, agsaPhyAnalogSettingsPage_s::Dword5, agsaPhyAnalogSettingsPage_s::Dword6, agsaPhyAnalogSettingsPage_s::Dword7, agsaPhyAnalogSettingsPage_s::Dword8, agsaPhyAnalogSettingsPage_s::Dword9, agsaPhyErrCountersPage_s::inboundCRCError, tdPhyCount_s::inboundCRCError, tdFWControlEx::inProgress, agsaPhyErrCountersPage_s::invalidDword, tdPhyCount_s::InvalidDword, agsaPhyErrCountersPage_s::lossOfDwordSynch, tdPhyCount_s::LossOfSyncDW, NULL, agsaContext_s::osData, ostiGetPhyGeneralStatusRsp(), ostiGetPhyProfileIOCTLRsp(), agsaPhyErrCountersPage_s::phyResetProblem, tdPhyCount_s::phyResetProblem, agsaPhyErrCountersPage_s::runningDisparityError, tdPhyCount_s::runningDisparityError, agsaPhyBWCountersPage_s::RXBWCounter, saSetPhyProfile(), status, tiRoot::tdData, tdsaContext_s::tdFWControlEx, tdsaRoot_s::tdsaAllShared, tdsaRotateQnumber(), TI_DBG1, TI_DBG2, tdsaRootOsData_s::tiRoot, agsaPhyBWCountersPage_s::TXBWCounter, and tdFWControlEx::usrAddr.

Referenced by mpiGetPhyProfileRsp(), mpiSetPhyProfileCmd(), mpiVHistCapCmd(), and saGetPhyProfile().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetRegisterDumpCB()

void ossaGetRegisterDumpCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status 
)

ossaGetRegisterDumpCB

Purpose: ossaGetRegisterDumpCB() is the response callback function called by the LL Layer to indicate a response to saGetRegisterDump()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saGetRegisterDump()
statusstatus
Returns
None.

Definition at line 7914 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, ostiRegDumpIOCTLRsp(), smTraceFuncEnter, smTraceFuncExit, status, TI_DBG4, and tdsaRootOsData_s::tiRoot.

Referenced by mpiGetNVMDataRsp(), and saGetRegisterDump().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaGetTimeStampCB()

GLOBAL void ossaGetTimeStampCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  timeStampLower,
bit32  timeStampUpper 
)

ossaGetTimeStampCB

Purpose: This routine is called by lower layer to corresponding to saGetTimeStamp()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in.
timeStampLowerThe controller lower 32-bit of internal time stamp associated with event log.
timeStampUpperThe controller upper 32-bit of internal time stamp associated with event log.
Returns
None.

Definition at line 7561 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, and TI_DBG4.

Referenced by mpiGetTimeStampRsp().

Here is the caller graph for this function:

◆ ossaGpioEvent()

GLOBAL void ossaGpioEvent ( agsaRoot_t agRoot,
bit32  gpioEvent 
)

ossaGpioEvent

Purpose: This routine is called by lower layer to corresponding to saGpioEventSetup(), saGpioPinSetup(), saGpioRead(), or saGpioWrite()

Parameters
agRootPointer to chip/driver Instance.
gpioEventa bit map that indicates which GPIO input pins have generated the event.
Returns
None.

Definition at line 7314 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, and TI_DBG2.

Referenced by mpiGPIOEventRsp().

Here is the caller graph for this function:

◆ ossaGpioResponseCB()

GLOBAL void ossaGpioResponseCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  gpioReadValue,
agsaGpioPinSetupInfo_t gpioPinSetupInfo,
agsaGpioEventSetupInfo_t gpioEventSetupInfo 
)

ossaGpioResponseCB

Purpose: This routine is called by lower layer to corresponding to saGpioEventSetup(), saGpioPinSetup(), saGpioRead(), or saGpioWrite()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in.
statusGPIO operation completion status
gpioReadValuea bit map containing the corresponding value for each GPIO pin.
gpioPinSetupInfoPointer to agsaGpioPinSetupInfo_t structure describing the GPIO pin setup
gpioEventSetupInfoPointer to agsaGpioEventSetupInfo_t structure describing the GPIO event setups
Returns
None.

Definition at line 7266 of file ossacmnapi.c.

References agsaGpioEventSetupInfo_s::gpioEventFallingEdge, agsaGpioEventSetupInfo_s::gpioEventLevel, agsaGpioEventSetupInfo_s::gpioEventRisingEdge, agsaGpioPinSetupInfo_t::gpioInputEnabled, agsaGpioPinSetupInfo_t::gpioTypePart1, agsaGpioPinSetupInfo_t::gpioTypePart2, hpDBG_VERY_LOUD, OSSA_SUCCESS, smTraceFuncEnter, smTraceFuncExit, status, TI_DBG1, and TI_DBG2.

Referenced by mpiGPIORsp().

Here is the caller graph for this function:

◆ ossaHwCB()

GLOBAL void ossaHwCB ( agsaRoot_t agRoot,
agsaPortContext_t agPortContext,
bit32  event,
bit32  eventParm1,
void *  eventParm2,
void *  eventParm3 
)

Definition at line 775 of file ossacmnapi.c.

References AG_SA_DISCOVERY_OPTION_FULL_START, AG_SA_DISCOVERY_OPTION_INCREMENTAL_START, AG_SA_DISCOVERY_TYPE_SAS, agFALSE, agNULL, agsaEventSource_s::agPortContext, AGSA_ENCRYPTION_CONTROL_PARM_PAGE, AGSA_ENCRYPTION_DEK_CONFIG_PAGE, AGSA_ENCRYPTION_GENERAL_CONFIG_PAGE, AGSA_ENCRYPTION_HMAC_CONFIG_PAGE, AGSA_INTERRUPT_CONFIGURATION_PAGE, AGSA_PHY_LINK_RESET, AGSA_PHY_NOTIFY_ENABLE_SPINUP, AGSA_PORT_HARD_RESET, AGSA_PORT_SET_PORT_RECOVERY_TIME, AGSA_PORT_SET_PORT_RESET_TIME, AGSA_RC_SUCCESS, AGSA_SAS_PROTOCOL_TIMER_CONFIG_PAGE, agsaEncryptCipherModeECB, agsaEncryptCipherModeXTS, agsaEncryptSMA, agsaEncryptSMB, agsaModePageGet, agsaModePageSet, agTRUE, DEVICE_IS_SATA_DEVICE, DEVICE_IS_STP_TARGET, DM_DISCOVERY_OPTION_ABORT, DM_DISCOVERY_OPTION_INCREMENTAL_START, DM_RC_FAILURE, DM_RC_SUCCESS, dmCreatePort(), dmDiscAborted, dmDiscAbortInvalid, dmDiscCompleted, dmDiscFailed, dmDiscInProgress, dmDiscover(), dmNotifyBC(), dmQueryDiscovery(), agsaFatalErrorInfo_s::errorInfo0, agsaFatalErrorInfo_s::errorInfo1, agsaFatalErrorInfo_s::errorInfo2, agsaFatalErrorInfo_s::errorInfo3, agsaEventSource_s::event, tdsaContext_s::eventSource, tdsaHwEventSource_s::EventValid, FDS_DM, dmPortInfo_t::flag, tdsaContext_s::flags, tdList_s::flink, tdsaContext_s::FreePortContextList, hpDBG_VERY_LOUD, tdsaPortContext_s::id, INITIATOR_DRIVER, tdIORequestBody_s::InitiatorTMIO, tdIORequestBody_s::IOType, ITD_DSTATE_COMPLETED, ITD_DSTATE_NOT_STARTED, ITD_DSTATE_STARTED, tdsaContext_s::MainDeviceList, tdsaContext_s::MainPortContextList, NO_ACK, agsaContext_s::osData, tiIORequest::osData, tdIORequestBody_s::osMemHandle, OSSA_FAILURE, OSSA_HW_ENCRYPT_DEK_INVALIDTE, OSSA_HW_ENCRYPT_DEK_UPDATE, OSSA_HW_ENCRYPT_KEK_INVALIDTE, OSSA_HW_ENCRYPT_KEK_UPDATE, OSSA_HW_ENCRYPT_KEK_UPDATE_AND_STORE, OSSA_HW_ENCRYPT_OPERATOR_MANAGEMENT, OSSA_HW_ENCRYPT_TEST_EXECUTE, OSSA_HW_EVENT_BROADCAST_ASYNCH_EVENT, OSSA_HW_EVENT_BROADCAST_CHANGE, OSSA_HW_EVENT_BROADCAST_EXP, OSSA_HW_EVENT_BROADCAST_SES, OSSA_HW_EVENT_ENCRYPTION, OSSA_HW_EVENT_HARD_RESET_RECEIVED, OSSA_HW_EVENT_ID_FRAME_TIMEOUT, OSSA_HW_EVENT_MALFUNCTION, OSSA_HW_EVENT_MODE, OSSA_HW_EVENT_OPEN_RETRY_BACKOFF_THR_ADJUSTED, OSSA_HW_EVENT_PHY_DOWN, OSSA_HW_EVENT_PHY_ERR_CODE_VIOLATION, OSSA_HW_EVENT_PHY_ERR_DISPARITY_ERROR, OSSA_HW_EVENT_PHY_ERR_INBOUND_CRC, OSSA_HW_EVENT_PHY_ERR_INVALID_DWORD, OSSA_HW_EVENT_PHY_ERR_LOSS_OF_DWORD_SYNCH, OSSA_HW_EVENT_PHY_ERR_PHY_RESET_FAILED, OSSA_HW_EVENT_PHY_START_STATUS, OSSA_HW_EVENT_PHY_STOP_STATUS, OSSA_HW_EVENT_PORT_RECOVER, OSSA_HW_EVENT_PORT_RECOVERY_TIMER_TMO, OSSA_HW_EVENT_PORT_RESET_COMPLETE, OSSA_HW_EVENT_PORT_RESET_TIMER_TMO, OSSA_HW_EVENT_RESET_COMPLETE, OSSA_HW_EVENT_RESET_START, OSSA_HW_EVENT_SAS_PHY_UP, OSSA_HW_EVENT_SATA_PHY_UP, OSSA_HW_EVENT_SATA_SPINUP_HOLD, OSSA_HW_EVENT_SECURITY_MODE, OSSA_PORT_3RDPARTY_RESET, OSSA_PORT_IN_RESET, OSSA_PORT_INVALID, OSSA_PORT_LOSTCOMM, OSSA_PORT_VALID, OSSA_SUCCESS, osti_memcpy, ostiFreeMemory(), ostiInitiatorEvent(), ostiPortEvent(), agsaEventSource_s::param, tdsaPortStartInfo_s::portContext, tdsaContext_s::Ports, tdsaContext_s::portTMO, print_tdlist_flink(), agsaFatalErrorInfo_s::regDumpBusBaseNum0, agsaFatalErrorInfo_s::regDumpBusBaseNum1, agsaFatalErrorInfo_s::regDumpLen0, agsaFatalErrorInfo_s::regDumpLen1, agsaFatalErrorInfo_s::regDumpOffset0, agsaFatalErrorInfo_s::regDumpOffset1, tdsaContext_s::ResetInDiscovery, tdsaComMemFlags_s::resetInProgress, SA_DS_OPERATIONAL, SA_IDFRM_GET_DEVICETTYPE, SA_IDFRM_GET_SAS_ADDRESSHI, SA_IDFRM_GET_SAS_ADDRESSLO, SA_IDFRM_IS_SSP_TARGET, saDiscover(), saHwEventAck(), saLocalPhyControl(), saPortControl(), SAS_12G_PORT_RESET_TMO, SAS_CONNECTION_RATE_12_0G, SAS_CONNECTION_RATE_1_5G, SAS_CONNECTION_RATE_3_0G, SAS_CONNECTION_RATE_6_0G, SAS_EDGE_EXPANDER_DEVICE, SAS_END_DEVICE, SAS_FANOUT_EXPANDER_DEVICE, SAS_NO_DEVICE, SAS_PORT_RESET_TMO, saSetDeviceState(), tdsaPortStartInfo_s::SASID, dmPortInfo_t::sasLocalAddressHi, dmPortInfo_t::sasLocalAddressLo, dmPortInfo_t::sasRemoteAddressHi, dmPortInfo_t::sasRemoteAddressLo, SATA_PORT_RESET_TMO, smTraceFuncEnter, smTraceFuncExit, tdsaHwEventSource_s::Source, status, TD_ASSERT, TD_GET_LINK_RATE, TD_GET_PHY_ID, TD_GET_PHY_STATUS, TD_GET_PORT_STATE, TD_GET_RESET_STATUS, TD_MAX_NUM_NOTIFY_SPINUP, TD_MAX_NUM_PHYS, TD_OPERATION_INITIATOR, TD_PORT_LOCK, dmContext_s::tdData, tiIORequest::tdData, tdhexdump(), TDLIST_DEQUEUE_FROM_HEAD, TDLIST_DEQUEUE_THIS, TDLIST_EMPTY, TDLIST_ENQUEUE_AT_TAIL, TDLIST_NOT_EMPTY, TDLIST_OBJECT_BASE, tdsaRootOsData_s::tdsaAllShared, tdsaRotateQnumber(), tdsaSingleThreadedEnter(), tdsaSingleThreadedLeave(), tdssAddSASToSharedcontext(), tdssAddSATAToSharedcontext(), tdssRemoveSASSATAFromSharedcontextByReset(), tdssRetrySATAID(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG4, TI_DBG5, TI_DBG6, TI_ENCRYPT_ATTRIB_CIPHER_ECB, TI_ENCRYPT_ATTRIB_CIPHER_XTS, TI_ENCRYPT_SEC_MODE_A, TI_ENCRYPT_SEC_MODE_B, TI_ENCRYPT_SEC_MODE_FACT_INIT, tiEncryptDekAdd, tiEncryptDekInvalidate, tiEncryptGetInfo, tiEncryptKekAdd, tiEncryptKekStore, tiEncryptOperation, tiEncryptOperatorManagement, tiEncryptSelfTest, tiEncryptSetMode, tiError, tiIntrEventTypeDeviceChange, tiIntrEventTypeTaskManagement, tiIS_SPC, tiModePageOperation, tiNVRAMAccessTimeout, tiNVRAMNotFound, tiNVRAMSuccess, tiNVRAMWriteFail, tdsaPortContext_s::tiPortalContext, tdsaPortStartInfo_s::tiPortalContext, tiPortLinkDown, tiPortLinkUp, tiPortPanic, tiPortResetComplete, tiPortStopped, tdsaRootOsData_s::tiRoot, tIsSPC12SATA, tIsSPCV12G, tIsSPCV12or6G, tiSuccess, and tiTMOK.

Referenced by mpiBistRsp(), mpiDekManagementRsp(), mpiGeneralEventRsp(), mpiGetControllerConfigRsp(), mpiHWevent(), mpiKekManagementRsp(), mpiPhyStartEvent(), mpiPhyStopEvent(), mpiSetControllerConfigRsp(), saHwReset(), siEventPhyUpRcvd(), siEventSATASignatureRcvd(), siFatalInterruptHandler(), siPhyStopCB(), and siProcessOBMsg().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaHwEventAckCB()

GLOBAL void ossaHwEventAckCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status 
)

ossaHwEventAckCB

Purpose: This routine is called by lower layer to corresponding to saHwEventAck(()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in.
statusStatus
Returns
None.

Definition at line 7516 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, status, TI_DBG1, TI_DBG3, and tiSuccess.

Referenced by mpiSASHwEventAckRsp().

Here is the caller graph for this function:

◆ ossaHwRegRead()

◆ ossaHwRegReadConfig32()

osGLOBAL bit32 ossaHwRegReadConfig32 ( agsaRoot_t agRoot,
bit32  regOffset 
)

Definition at line 3690 of file ossacmnapi.c.

References agsaContext_s::osData, ostiChipConfigReadBit32(), TI_DBG4, and tdsaRootOsData_s::tiRoot.

Referenced by mpiInitialize(), mpiWaitForConfigTable(), saGetControllerInfo(), saInitialize(), and tiCOMPortInit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaHwRegReadExt()

◆ ossaHwRegWrite()

GLOBAL FORCEINLINE void ossaHwRegWrite ( agsaRoot_t agRoot,
bit32  regOffset,
bit32  regValue 
)

Definition at line 3563 of file ossacmnapi.c.

References agNULL, hpDBG_REGISTERS, agsaContext_s::osData, ostiChipWriteBit32(), agsaContext_s::sdkData, smTrace, and tdsaRootOsData_s::tiRoot.

Referenced by siDisableLegacyInterrupts(), siDisableMSIInterrupts(), siDisableMSIXInterrupts(), siHalRegWriteExt(), and siSpcSoftReset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaHwRegWriteExt()

◆ ossaLocalPhyControlCB()

GLOBAL void ossaLocalPhyControlCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  phyId,
bit32  phyOperation,
bit32  status,
void *  parm 
)

ossaLocalPhyControlCB

Purpose: This routine is called by lower layer to indicate the status of phy operations

Parameters
agRootPointer to chip/driver Instance.
phyIdPhy id
phyOperationOperation to be done on the phy
statusPhy operation specific completion status
parmAdditional parameter, phy operation and status specific
Returns
None.

Definition at line 5549 of file ossacmnapi.c.

References tdsaDeviceData_s::agDevHandle, tdsaDeviceData_s::agDeviceResetContext, agFALSE, agNULL, AGSA_PHY_BROADCAST_ASYNCH_EVENT, AGSA_PHY_CLEAR_ERROR_COUNTS, AGSA_PHY_COMINIT_OOB, AGSA_PHY_GET_ERROR_COUNTS, AGSA_PHY_HARD_RESET, AGSA_PHY_LINK_RESET, AGSA_PHY_NOTIFY_ENABLE_SPINUP, agTRUE, agsaPhyErrCounters_s::elasticityBufferOverflow, hpDBG_VERY_LOUD, agsaPhyErrCounters_s::invalidDword, agsaPhyErrCounters_s::lossOfDwordSynch, NULL, agsaContext_s::osData, OSSA_SUCCESS, ostiInitiatorEvent(), agsaPhyErrCounters_s::phyResetProblem, agsaPhyErrCounters_s::receivedErrorPrimitive, agsaPhyErrCounters_s::runningDisparityError, SA_DS_OPERATIONAL, saSetDeviceState(), SAT_DEV_STATE_NORMAL, tdsaDeviceData_s::satDevData, satDeviceData_t::satDriveState, satDeviceData_t::satNCQMaxIO, satDeviceData_t::satPendingIO, satDeviceData_t::satPendingNCQIO, satDeviceData_t::satPendingNONNCQIO, smTraceFuncEnter, smTraceFuncExit, status, tiIORequest::tdData, tdsaDeviceData_s::tdPortContext, tdsaRotateQnumber(), TI_DBG1, TI_DBG2, TI_DBG3, tdsaDeviceData_s::tiDeviceHandle, tiIntrEventTypeTaskManagement, tiIntrEventTypeTransportRecovery, tdsaPortContext_s::tiPortalContext, tiRecFailed, tiRecOK, tdsaRootOsData_s::tiRoot, tIsSPC12SATA, tiTMFailed, tiTMOK, and tdsaDeviceData_s::TRflag.

Referenced by mpiPhyCntrlRsp(), and saLocalPhyControl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaLogDebugString()

GLOBAL void ossaLogDebugString ( agsaRoot_t agRoot,
bit32  level,
char *  string,
void *  ptr1,
void *  ptr2,
bit32  value1,
bit32  value2 
)

ossaLogDebugString

Purpose: This routine is called by lower layer to log.

Parameters
agRootPointer to chip/driver Instance.
levelDetail of information desired.
stringPointer to the character string.
ptr1First pointer value.
ptr2Second pointer value.
value1First 32-bit value related to the specific information.
value2Second 32-bit value related to the specific information.
Returns
None.

Definition at line 7483 of file ossacmnapi.c.

References gLLDebugLevel, and TIDEBUG_MSG.

◆ ossaLogTrace0()

GLOBAL void ossaLogTrace0 ( agsaRoot_t agRoot,
bit32  traceCode 
)

Definition at line 704 of file ossacmnapi.c.

◆ ossaLogTrace1()

GLOBAL void ossaLogTrace1 ( agsaRoot_t agRoot,
bit32  traceCode,
bit32  value1 
)

Definition at line 712 of file ossacmnapi.c.

◆ ossaLogTrace2()

GLOBAL void ossaLogTrace2 ( agsaRoot_t agRoot,
bit32  traceCode,
bit32  value1,
bit32  value2 
)

Definition at line 721 of file ossacmnapi.c.

◆ ossaLogTrace3()

GLOBAL void ossaLogTrace3 ( agsaRoot_t agRoot,
bit32  traceCode,
bit32  value1,
bit32  value2,
bit32  value3 
)

Definition at line 731 of file ossacmnapi.c.

◆ ossaLogTrace4()

GLOBAL void ossaLogTrace4 ( agsaRoot_t agRoot,
bit32  traceCode,
bit32  value1,
bit32  value2,
bit32  value3,
bit32  value4 
)

Definition at line 744 of file ossacmnapi.c.

◆ ossaOperatorManagementCB()

GLOBAL void ossaOperatorManagementCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  eq 
)

Definition at line 8276 of file ossacmnapi.c.

References agNULL, tiEncryptPort::encryptEvent, agsaContext_s::osData, osti_memset, ostiPortEvent(), tiEncryptPort::pData, status, tiEncryptPort::subEvent, TI_DBG1, tiEncryptOperation, tiEncryptOperatorManagement, and tdsaRootOsData_s::tiRoot.

Referenced by mpiGeneralEventRsp(), and mpiOperatorManagementRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaPCI_TRIGGER()

osGLOBAL void ossaPCI_TRIGGER ( agsaRoot_t agRoot)

Definition at line 3633 of file ossacmnapi.c.

References agsaContext_s::osData, ostiPCI_TRIGGER(), and tdsaRootOsData_s::tiRoot.

Here is the call graph for this function:

◆ ossaPCIeDiagExecuteCB()

GLOBAL void ossaPCIeDiagExecuteCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  command,
agsaPCIeDiagResponse_t resp 
)

◆ ossaPortControlCB()

GLOBAL void ossaPortControlCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaPortContext_t agPortContext,
bit32  portOperation,
bit32  status 
)

◆ ossaReconfigSASParamsCB()

GLOBAL void ossaReconfigSASParamsCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
agsaSASReconfig_t agSASConfig 
)

ossaReconfigSASParamsCB

Purpose: This routine is called by lower layer to corresponding to saReconfigSASParams()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in saReconfigSASParams().
statussaReconfigSASParams() completion status
agSASConfigPointer to the data structure agsaSASReconfig_t
Returns
None.

Definition at line 7413 of file ossacmnapi.c.

References status, and TI_DBG2.

Referenced by mpiSasReInitializeRsp().

Here is the caller graph for this function:

◆ ossaSASDiagExecuteCB()

GLOBAL void ossaSASDiagExecuteCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  command,
bit32  reportData 
)

ossaSASDiagExecuteCB

Purpose: This routine is called by lower layer to corresponding to saSASDiagExecute()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in.
statusDiagnostic operation completion status
commandSAS diagnostic command field in agsaSASDiagExecute_t structure passed in saSASDiagExecute().
reportDataReport Diagnostic Data
Returns
None.

Definition at line 7347 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, status, and TI_DBG2.

Referenced by mpiSASDiagExecuteRsp().

Here is the caller graph for this function:

◆ ossaSASDiagStartEndCB()

GLOBAL void ossaSASDiagStartEndCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status 
)

ossaSASDiagStartEndCB

Purpose: This routine is called by lower layer to corresponding to saSASDiagExecute()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed in.
statusDiagnostic operation completion status
Returns
None.

Definition at line 7383 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, smTraceFuncExit, status, and TI_DBG2.

Referenced by mpiSASDiagStartEndRsp().

Here is the caller graph for this function:

◆ ossaSATAAbortCB()

GLOBAL void ossaSATAAbortCB ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  flag,
bit32  status 
)

Definition at line 55 of file ttdcb.c.

Referenced by mpiSATAAbortRsp().

Here is the caller graph for this function:

◆ ossaSATACompleted()

GLOBAL void ossaSATACompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
void *  agFirstDword,
bit32  agIOInfoLen,
void *  agParam 
)

Definition at line 8996 of file ossacmnapi.c.

◆ ossaSATAEvent()

GLOBAL void ossaSATAEvent ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
agsaPortContext_t agPortContext,
agsaDevHandle_t agDevHandle,
bit32  event,
bit32  agIOInfoLen,
void *  agParam 
)

Definition at line 10524 of file smsatcb.c.

References smDeviceData_s::agDevHandle, agFALSE, agNULL, smIORequestBody_s::agSATARequestBody, agTRUE, agsaDifDetails_s::DIFErrDevID, agsaDifDetails_s::ErrBoffsetEDataLen, agsaSATAInitiatorRequest_s::fis, agsaSATAHostFis_u::fisRegHostToDev, smList_s::flink, gsmRoot, smDeviceData_s::id, smIORequestBody_s::id, smIORequestBody_s::ioCompleted, smIORequestBody_s::ioStarted, agsaDifDetails_s::LowerLBA, agsaContext_s::osData, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_COLLIDE, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_RETRY_BACKOFF_THRESHOLD_REACHED, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_TMO, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_PATHWAY_BLOCKED, OSSA_IO_OPEN_CNX_ERROR_STP_RESOURCES_BUSY, OSSA_IO_XFER_CMD_FRAME_ISSUED, OSSA_IO_XFER_ERROR_ABORTED_NCQ_MODE, OSSA_IO_XFER_ERROR_DMA_ACTIVATE_TIMEOUT, OSSA_IO_XFER_ERROR_NAK_RECEIVED, OSSA_IO_XFER_PIO_SETUP_ERROR, OSSA_IO_XFR_ERROR_DEK_KEY_TAG_MISMATCH, OSSA_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH, OSSA_IO_XFR_ERROR_DIF_CRC_MISMATCH, OSSA_IO_XFR_ERROR_DIF_MISMATCH, OSSA_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH, smSatIOContext_s::pFis, smSatIOContext_s::pSatDevData, smSatIOContext_s::pScsiCmnd, smSatIOContext_s::pSense, smSatIOContext_s::psmDeviceHandle, smSatIOContext_s::pSmSenseData, saFrameReadBlock(), agsaDifDetails_s::sasAddressHi, agsaDifDetails_s::sasAddressLo, SAT_DEV_STATE_IN_RECOVERY, SAT_DEV_STATE_NORMAL, smIORequestBody_s::SATA, smDeviceData_s::satAbortAfterReset, smDeviceData_s::satDriveState, smSatInternalIo_s::satIntFlag, smSatIOContext_s::satIntIoContext, smSatInternalIo_s::satIntRequestBody, smSatInternalIo_s::satIntSmIORequest, smSatInternalIo_s::satIntSmScsiXchg, smIORequestBody_s::satIOContext, smSatIOContext_s::satOrgIOContext, smScsiInitiatorRequest::scsiCmnd, smSenseData_t::senseData, smIORequestBody_s::sensePayload, SM_DBG1, SM_DBG2, SM_GET_SAS_ADDRESSHI, SM_GET_SAS_ADDRESSLO, SM_RC_SUCCESS, smIntRoot_s::smAllShared, smContext_t::smData, smDeviceData_s::smDevHandle, smIORequestBody_s::smDevHandle, smhexdump(), SMLIST_OBJECT_BASE, smDeviceData_s::SMNumOfFCA, SMP_PHY_CONTROL_HARD_RESET, smPhyControlSend(), smSatIOContext_s::smRequestBody, smsatAllocIntIoResource(), smsatFreeIntIoResource(), smsatSendReadLogExt(), smSatIOContext_s::smScsiXchg, smIORequestBody_s::smSenseData, status, TD_INTERNAL_TM_RESET, tdsmRotateQnumber(), smIORequestBody_s::transport, agsaDifDetails_s::UpperLBA, and smDeviceData_s::valid.

Referenced by mpiSATAEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSetDeviceInfoCB()

GLOBAL void ossaSetDeviceInfoCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaDevHandle_t agDevHandle,
bit32  status,
bit32  option,
bit32  param 
)

ossaSetDeviceInfoCB

Purpose: ossaSetDeviceInfoCB() is the response callback function called by the LL Layer to indicate a response to saSetDeviceInfo()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saSetDeviceInfo()
agDevHandlePointer to the device handle of the device
statusstatus
optionoption parameter passed in saSetDeviceInfo()
paramparam parameter passed in saSetDeviceInfo()
Returns
None.

Definition at line 8174 of file ossacmnapi.c.

References agNULL, tdsaDeviceData_s::id, agsaContext_s::osData, OSSA_SUCCESS, status, TI_DBG1, and TI_DBG4.

Referenced by mpiSetDevInfoRsp(), and ossaDeviceHandleAccept().

Here is the caller graph for this function:

◆ ossaSetDeviceStateCB()

GLOBAL void ossaSetDeviceStateCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaDevHandle_t agDevHandle,
bit32  status,
bit32  newDeviceState,
bit32  previousDeviceState 
)

ossaSetDeviceStateCB

Purpose: ossaSetDeviceStateCB() is the response callback function called by the LL Layer to indicate a response to saSetDeviceState()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saGetRegisterDump()
agDevHandlePointer to the device handle of the device
statusstatus
newDeviceStatenewly set device status
previousDeviceStateold device status
Returns
None.

Definition at line 7952 of file ossacmnapi.c.

References agNULL, tdsaDeviceData_s::id, agsaContext_s::osData, status, TI_DBG1, TI_DBG2, and TI_DBG4.

Referenced by mpiSetDeviceStateRsp().

Here is the caller graph for this function:

◆ ossaSetNVMDResponseCB()

GLOBAL void ossaSetNVMDResponseCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status 
)

ossaSetNVMDResponseCB

Purpose: This routine is called by lower layer to corresponding to saSetNVMDCommand()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into saSetVPDCommand()
statusstatus
Returns
None.

Definition at line 7050 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, OSSA_SUCCESS, ostiSetNVMDIOCTLRsp(), smTraceFuncEnter, smTraceFuncExit, status, TI_DBG1, TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by mpiSetNVMDataRsp(), and mpiSetNVMDCmd().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSetOperatorCB()

◆ ossaSetPhyProfileCB()

GLOBAL void ossaSetPhyProfileCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  ppc,
bit32  phyID,
void *  parm 
)

Definition at line 5857 of file ossacmnapi.c.

References status, and TI_DBG1.

Referenced by mpiSetPhyProfileRsp().

Here is the caller graph for this function:

◆ ossaSGpioCB()

GLOBAL void ossaSGpioCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
agsaSGpioReqResponse_t pSgpioResponse 
)

Definition at line 7444 of file ossacmnapi.c.

References agsaSGpioReqResponse_s::function, agsaSGpioReqResponse_s::functionResult, agsaContext_s::osData, ostiSgpioIoctlRsp(), agsaSGpioReqResponse_s::smpFrameType, tdhexdump(), TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by mpiSGpioRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSingleThreadedEnter()

GLOBAL FORCEINLINE void ossaSingleThreadedEnter ( agsaRoot_t agRoot,
bit32  syncLockId 
)

ossaSingleThreadedEnter

Purpose: This routine is called to ensure that only a single thread of the given port instance executes code in the region protected by this function.

Parameters
agRootPointer to chip/driver Instance.
syncLockIdto be explained.
Returns
None.
Note
- The scope is shared target and initiator.

Definition at line 3786 of file ossacmnapi.c.

References agNULL, tdsaContext_s::MaxNumOSLocks, agsaContext_s::osData, ostiSingleThreadedEnter(), TD_ASSERT, tdsaRootOsData_s::tdsaAllShared, and tdsaRootOsData_s::tiRoot.

Referenced by mpiBistRsp(), mpiBuildCmd(), mpiDekManagementCmd(), mpiDekManagementRsp(), mpiDeregDevHandleCmd(), mpiDeregDevHandleRsp(), mpiDevHandleAcceptCmd(), mpiDeviceHandleArrived(), mpiDeviceHandleRemoval(), mpiDeviceRegRsp(), mpiDifEncOffloadRsp(), mpiDIFEncryptionOffloadCmd(), mpiEchoCmd(), mpiEchoRsp(), mpiEncryptBistCmd(), mpiFwExtFlashUpdateRsp(), mpiFwFlashUpdateRsp(), mpiGeneralEventRsp(), mpiGetControllerConfigCmd(), mpiGetControllerConfigRsp(), mpiGetDevHandleRsp(), mpiGetDeviceHandleCmd(), mpiGetDeviceInfoCmd(), mpiGetDeviceStateCmd(), mpiGetDeviceStateRsp(), mpiGetDevInfoRsp(), mpiGetDevInfoRspSpc(), mpiGetDFEDataRsp(), mpiGetNVMDataRsp(), mpiGetNVMDCmd(), mpiGetOperatorCmd(), mpiGetOperatorRsp(), mpiGetPhyProfileCmd(), mpiGetPhyProfileRsp(), mpiGetTimeStampRsp(), mpiGetVHistRsp(), mpiGPIORsp(), mpiHWevent(), mpiKekManagementCmd(), mpiKekManagementRsp(), mpiNVMReadRegDumpCmd(), mpiOperatorManagementCmd(), mpiOperatorManagementRsp(), mpiPCIeDiagExecuteRsp(), mpiPhyCntrlRsp(), mpiPhyStartEvent(), mpiPhyStopEvent(), mpiPortControlRsp(), mpiSASDiagExecuteRsp(), mpiSASDiagStartEndRsp(), mpiSASHwEventAckRsp(), mpiSasReinitializeCmd(), mpiSasReInitializeRsp(), mpiSATAAbortRsp(), mpiSetControllerConfigCmd(), mpiSetControllerConfigRsp(), mpiSetDeviceInfoCmd(), mpiSetDeviceStateCmd(), mpiSetDeviceStateRsp(), mpiSetDevInfoRsp(), mpiSetNVMDataRsp(), mpiSetNVMDCmd(), mpiSetOperatorCmd(), mpiSetOperatorRsp(), mpiSetPhyProfileCmd(), mpiSetPhyProfileRsp(), mpiSMPAbortRsp(), mpiSSPAbortRsp(), mpiVHistCapCmd(), saFlashExtExecute(), saFwFlashUpdate(), saGetDFEData(), saGetRequestFromFreePool(), saGetTimeStamp(), saGpioEventSetup(), saGpioPinSetup(), saGpioRead(), saGpioWrite(), saHwEventAck(), saLocalPhyControl(), saPCIeDiagExecute(), saPhyStart(), saPhyStop(), saPortControl(), saRegisterNewDevice(), saReturnRequestToFreePool(), saSASDiagExecute(), saSASDiagStartEnd(), saSATAAbort(), saSATAStart(), saSendSMPIoctl(), saSMPAbort(), saSMPStart(), saSSPAbort(), saSSPStart(), saTimerTick(), saVhistCapture(), siAbnormal(), siDifAbnormal(), siEventPhyUpRcvd(), siEventSATAResponseWtDataRcvd(), siEventSATASignatureRcvd(), siEventSSPResponseWtDataRcvd(), siIODone(), siPhyStopCB(), siPortDeviceListRemove(), siPortDeviceRemove(), siPortInvalid(), siPortSASDeviceAdd(), siPortSATADeviceAdd(), siProcessOBMsg(), siSMPRespRcvd(), siTimerAdd(), siTimerRemove(), and siTimerRemoveAll().

Here is the call graph for this function:

◆ ossaSingleThreadedLeave()

GLOBAL FORCEINLINE void ossaSingleThreadedLeave ( agsaRoot_t agRoot,
bit32  syncLockId 
)

ossaSingleThreadedLeave

Purpose: This routine is called to leave a critical region of code previously protected by a call to osSingleThreadedEnter()

Parameters
agRootPointer to chip/driver Instance.
syncLockIdto be explained.
Returns
None.
Note
- The scope is shared target and initiator.

Definition at line 3827 of file ossacmnapi.c.

References agNULL, tdsaContext_s::MaxNumOSLocks, agsaContext_s::osData, ostiSingleThreadedLeave(), TD_ASSERT, tdsaRootOsData_s::tdsaAllShared, and tdsaRootOsData_s::tiRoot.

Referenced by mpiBistRsp(), mpiBuildCmd(), mpiDekManagementCmd(), mpiDekManagementRsp(), mpiDeregDevHandleCmd(), mpiDeregDevHandleRsp(), mpiDevHandleAcceptCmd(), mpiDeviceHandleArrived(), mpiDeviceHandleRemoval(), mpiDeviceRegRsp(), mpiDifEncOffloadRsp(), mpiDIFEncryptionOffloadCmd(), mpiEchoCmd(), mpiEchoRsp(), mpiEncryptBistCmd(), mpiFwExtFlashUpdateRsp(), mpiFwFlashUpdateRsp(), mpiGeneralEventRsp(), mpiGetControllerConfigCmd(), mpiGetControllerConfigRsp(), mpiGetDevHandleRsp(), mpiGetDeviceHandleCmd(), mpiGetDeviceInfoCmd(), mpiGetDeviceStateCmd(), mpiGetDeviceStateRsp(), mpiGetDevInfoRsp(), mpiGetDevInfoRspSpc(), mpiGetDFEDataRsp(), mpiGetNVMDataRsp(), mpiGetNVMDCmd(), mpiGetOperatorCmd(), mpiGetOperatorRsp(), mpiGetPhyProfileCmd(), mpiGetPhyProfileRsp(), mpiGetTimeStampRsp(), mpiGetVHistRsp(), mpiGPIORsp(), mpiHWevent(), mpiKekManagementCmd(), mpiKekManagementRsp(), mpiNVMReadRegDumpCmd(), mpiOperatorManagementCmd(), mpiOperatorManagementRsp(), mpiPCIeDiagExecuteRsp(), mpiPhyCntrlRsp(), mpiPhyStartEvent(), mpiPhyStopEvent(), mpiPortControlRsp(), mpiSASDiagExecuteRsp(), mpiSASDiagStartEndRsp(), mpiSASHwEventAckRsp(), mpiSasReinitializeCmd(), mpiSasReInitializeRsp(), mpiSATAAbortRsp(), mpiSetControllerConfigCmd(), mpiSetControllerConfigRsp(), mpiSetDeviceInfoCmd(), mpiSetDeviceStateCmd(), mpiSetDeviceStateRsp(), mpiSetDevInfoRsp(), mpiSetNVMDataRsp(), mpiSetNVMDCmd(), mpiSetOperatorCmd(), mpiSetOperatorRsp(), mpiSetPhyProfileCmd(), mpiSetPhyProfileRsp(), mpiSMPAbortRsp(), mpiSSPAbortRsp(), mpiVHistCapCmd(), saFlashExtExecute(), saFwFlashUpdate(), saGetDFEData(), saGetRequestFromFreePool(), saGetTimeStamp(), saGpioEventSetup(), saGpioPinSetup(), saGpioRead(), saGpioWrite(), saHwEventAck(), saLocalPhyControl(), saPCIeDiagExecute(), saPhyStart(), saPhyStop(), saPortControl(), saRegisterNewDevice(), saReturnRequestToFreePool(), saSASDiagExecute(), saSASDiagStartEnd(), saSATAAbort(), saSATAStart(), saSendSMPIoctl(), saSMPAbort(), saSMPStart(), saSSPAbort(), saSSPStart(), saTimerTick(), saVhistCapture(), siAbnormal(), siDifAbnormal(), siEventPhyUpRcvd(), siEventSATAResponseWtDataRcvd(), siEventSATASignatureRcvd(), siEventSSPResponseWtDataRcvd(), siIODone(), siPhyStopCB(), siPortDeviceListRemove(), siPortDeviceRemove(), siPortInvalid(), siPortSASDeviceAdd(), siPortSATADeviceAdd(), siProcessOBMsg(), siSMPRespRcvd(), siTimerAdd(), siTimerRemove(), and siTimerRemoveAll().

Here is the call graph for this function:

◆ ossaSMPAbortCB()

GLOBAL void ossaSMPAbortCB ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  flag,
bit32  status 
)

ossaSMPAbortCB

Purpose: This routine is called by lower layer to corresponding to saSMPAbort()

Parameters
agRootPointer to chip/driver Instance.
agIORequestThis is the agIORequest parameter passed in saSMPAbort()
statusStatus of abort
Returns
None.

Definition at line 7592 of file ossacmnapi.c.

References tdsaDeviceData_s::agDevHandle, agNULL, hpDBG_VERY_LOUD, tdsaDeviceData_s::id, tdIORequestBody_s::InitiatorTMIO, tdIORequestBody_s::IOType, agsaContext_s::osData, tdIORequestBody_s::osMemHandle, OSSA_IO_ABORT_DELAYED, OSSA_IO_ABORT_IN_PROGRESS, OSSA_IO_NO_DEVICE, OSSA_IO_NOT_VALID, OSSA_IO_SUCCESS, ostiFreeMemory(), saDeregisterDeviceHandle(), smTraceFuncEnter, smTraceFuncExit, status, tiDeviceHandle::tdData, tdsaRotateQnumber(), TI_DBG1, TI_DBG2, TI_DBG3, TI_DBG4, tdIORequestBody_s::tiDevHandle, and tdsaRootOsData_s::tiRoot.

Referenced by mpiSMPAbortRsp().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSMPCompleted()

GLOBAL void ossaSMPCompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
bit32  agIOInfoLen,
agsaFrameHandle_t  agFrameHandle 
)

ossaSMPCompleted

Purpose: This routine is called by lower layer to indicate the completion of SMP request

Parameters
agRootPointer to chip/driver Instance.
agIORequestPointer to SMP request handle
agIOStatusStatus
agFrameHeader:Pointerto SMP frame header.
agIOInfoLenIO information length assoicated with the IO
agFrameHandleA Handle used to refer to the response frame
Returns
None.
Note
- The scope is shared target and initiator. For details, refer to SAS/SATA Low-Level API Specification

Definition at line 3961 of file ossacmnapi.c.

References agNULL, hpDBG_VERY_LOUD, agsaContext_s::osData, OSSA_IO_ABORTED, OSSA_IO_SUCCESS, osti_memcpy, osti_memset, saFrameReadBlock(), tdssSMPRequestBody_s::SMPCompletionFunc, smTraceFuncEnter, smTraceFuncExit, TDSA_OUT_ENTER, TDSA_OUT_LEAVE, TI_DBG1, TI_DBG2, TI_DBG4, and tdsaRootOsData_s::tiRoot.

Referenced by ttdsaDiscoverRespSend(), ttdsaNotSupportRespSend(), and ttdsaReportGeneralRespSend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSMPIoctlCompleted()

osGLOBAL void ossaSMPIoctlCompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
bit32  agIOInfoLen,
agsaFrameHandle_t  agFrameHandle 
)

Definition at line 3912 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, OSSA_SUCCESS, ostiSendSMPIOCTLRsp(), smTraceFuncExit, TI_DBG1, TI_DBG2, and tdsaRootOsData_s::tiRoot.

Referenced by tdsaSendSMPIoctl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSMPReqReceived()

GLOBAL void ossaSMPReqReceived ( agsaRoot_t agRoot,
agsaDevHandle_t agDevHandle,
agsaFrameHandle_t  agFrameHandle,
bit32  agFrameLength,
bit32  phyId 
)

Definition at line 4087 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, smTraceFuncEnter, and smTraceFuncExit.

◆ ossaSSPAbortCB()

GLOBAL void ossaSSPAbortCB ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  flag,
bit32  status 
)

Referenced by mpiSSPAbortRsp().

Here is the caller graph for this function:

◆ ossaSSPCompleted()

GLOBAL FORCEINLINE void ossaSSPCompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
bit32  agIOInfoLen,
void *  agParam,
bit16  sspTag,
bit32  agOtherInfo 
)

ossaSSPCompleted

Purpose: This routine is called by lower layer to indicate the completion of SSP request

Parameters
agRootPointer to chip/driver Instance.
agIORequestPointer to SMP request handle
agIOStatusStatus
agIOInfoLenIO information length assoicated with the IO
agFrameHandleA Handle used to refer to the response frame
Returns
None.
Note
- The scope is shared target and initiator. For details, refer to SAS/SATA Low-Level API Specification

Definition at line 4321 of file ossacmnapi.c.

References agNULL, hpDBG_VERY_LOUD, tdsaDeviceData_s::id, tdIORequestBody_s::IOCompletionFunc, agsaContext_s::osData, smTraceFuncEnter, smTraceFuncExit, TD_ASSERT, tiDeviceHandle::tdData, TDSA_OUT_ENTER, TDSA_OUT_LEAVE, TI_DBG1, TI_DBG4, and tdIORequestBody_s::tiDevHandle.

Referenced by itdssXferOpenRetryTimeoutHandler(), ossaSSPEvent(), tiINIIOStart(), tiINISuperIOStart(), tiTGTIOStart(), ttdsaIOCompleted(), and ttdsaSendResp().

Here is the caller graph for this function:

◆ ossaSSPEvent()

GLOBAL void ossaSSPEvent ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
agsaPortContext_t agPortContext,
agsaDevHandle_t agDevHandle,
bit32  event,
bit16  sspTag,
bit32  agIOInfoLen,
void *  agParam 
)

Definition at line 4682 of file ossacmnapi.c.

References agNULL, tdIORequestBody_s::agRequestType, AGSA_QUERY_TASK, AGSA_RC_SUCCESS, AGSA_REQ_TYPE_UNKNOWN, AGSA_SSP_TASK_MGNT_REQ, agTRUE, agsaDifDetails_s::DIFErrDevID, agsaDifDetails_s::ErrBoffsetEDataLen, hpDBG_VERY_LOUD, tdIORequestBody_s::InitiatorTMIO, tdIORequestBody_s::IOType, agsaDifDetails_s::LowerLBA, agsaSSPScsiTaskMgntReq_s::lun, agsaContext_s::osData, tdIORequestBody_s::osMemHandle, OSSA_IO_ABORTED, OSSA_IO_NOT_VALID, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_NO_DEST, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_COLLIDE, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_RETRY_BACKOFF_THRESHOLD_REACHED, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_OPEN_TMO, OSSA_IO_OPEN_CNX_ERROR_IT_NEXUS_LOSS_PATHWAY_BLOCKED, OSSA_IO_OVERFLOW, OSSA_IO_XFER_CMD_FRAME_ISSUED, OSSA_IO_XFER_ERROR_BREAK, OSSA_IO_XFER_ERROR_CMD_ISSUE_ACK_NAK_TIMEOUT, OSSA_IO_XFER_ERROR_OFFSET_MISMATCH, OSSA_IO_XFER_ERROR_PHY_NOT_READY, OSSA_IO_XFER_ERROR_XFER_RDY_OVERRUN, OSSA_IO_XFR_ERROR_DEK_KEY_TAG_MISMATCH, OSSA_IO_XFR_ERROR_DIF_APPLICATION_TAG_MISMATCH, OSSA_IO_XFR_ERROR_DIF_CRC_MISMATCH, OSSA_IO_XFR_ERROR_DIF_MISMATCH, OSSA_IO_XFR_ERROR_DIF_REFERENCE_TAG_MISMATCH, ossaSSPCompleted(), osti_memset, ostiAllocMemory(), ostiFreeMemory(), saFrameReadBlock(), agsaDifDetails_s::sasAddressHi, agsaDifDetails_s::sasAddressLo, saSSPStart(), agsaContext_s::sdkData, smTraceFuncEnter, smTraceFuncExit, agsaSASRequestBody_u::sspTaskMgntReq, agsaSSPScsiTaskMgntReq_s::taskMgntFunction, TD_GET_SAS_ADDRESSHI, TD_GET_SAS_ADDRESSLO, tiDeviceHandle::tdData, tdhexdump(), TI_DBG1, TI_DBG2, TI_DBG6, tdIORequestBody_s::tiDevHandle, tdIORequestBody_s::tiIORequest, tdsaRootOsData_s::tiRoot, tiSuccess, and agsaDifDetails_s::UpperLBA.

Referenced by mpiSSPEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaSSPIoctlCompleted()

osGLOBAL void ossaSSPIoctlCompleted ( agsaRoot_t agRoot,
agsaIORequest_t agIORequest,
bit32  agIOStatus,
bit32  agIOInfoLen,
void *  agParam,
bit16  sspTag,
bit32  agOtherInfo 
)

◆ ossaSSPReqReceived()

GLOBAL void ossaSSPReqReceived ( agsaRoot_t agRoot,
agsaDevHandle_t agDevHandle,
agsaFrameHandle_t  agFrameHandle,
bit16  agInitiatorTag,
bit32  parameter,
bit32  agFrameLen 
)

ossaSSPReqReceived

Purpose: This routine is called by lower layer to indicate the reception of SMP request

Parameters
agRootPointer to chip/driver Instance.
agDevHandlePointer to the device handle of the device
agFrameHandleA Handle used to refer to the response frame
agInitiatorTagthe initiator tag
agFrameTypeSSP frame type
Returns
none.
Note
- The scope is target only For details, refer to SAS/SATA Low-Level API Specification

Definition at line 4603 of file ossacmnapi.c.

References hpDBG_VERY_LOUD, agsaContext_s::osData, tdsaDeviceData_s::pJumpTable, tdsaJumpTable_s::pSSPReqReceived, smTraceFuncEnter, and smTraceFuncExit.

Referenced by mpiSSPReqReceivedNotify().

Here is the caller graph for this function:

◆ ossaStallThread()

GLOBAL void ossaStallThread ( agsaRoot_t agRoot,
bit32  microseconds 
)

ossaStallThread

Purpose: This routine is called to stall this thread for a number of microseconds.

Parameters
agRootPointer to chip/driver Instance.
microsecondsMicro second to stall.
Returns
None.
Note
- The scope is shared target and initiator.

Definition at line 4652 of file ossacmnapi.c.

References agsaContext_s::osData, ostiStallThread(), and tdsaRootOsData_s::tiRoot.

Referenced by mpiInitialize(), mpiUnInitConfigTable(), mpiWaitForConfigTable(), saGetControllerInfo(), saGetControllerStatus(), si_check_V_Ready(), siBar4Shift(), siChipResetSpc(), siChipResetV(), siNonFatalErrorBuffer(), siSpcSoftReset(), siSpcSoftResetRDYChk(), siWaitForFatalTransfer(), and siWaitForNonFatalTransfer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaTimeStamp()

GLOBAL bit32 ossaTimeStamp ( agsaRoot_t agRoot)

Definition at line 8446 of file ossacmnapi.c.

References agNULL, agsaContext_s::osData, ostiTimeStamp(), and tdsaRootOsData_s::tiRoot.

Here is the call graph for this function:

◆ ossaTimeStamp64()

GLOBAL bit64 ossaTimeStamp64 ( agsaRoot_t agRoot)

Definition at line 8461 of file ossacmnapi.c.

References agNULL, agsaContext_s::osData, ostiTimeStamp64(), and tdsaRootOsData_s::tiRoot.

Referenced by siChipResetV().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ossaVhistCaptureCB()

GLOBAL void ossaVhistCaptureCB ( agsaRoot_t agRoot,
agsaContext_t agContext,
bit32  status,
bit32  len 
)

ossaVhistCaptureCB

Purpose: ossaVhistCaptureCB() is the response callback function called by the LL Layer to indicate a response to saGetDFEData()

Parameters
agRootPointer to chip/driver Instance.
agContextContext of the operation originally passed into ()
statusstatus
lenlength in bytes of Vis data captured and transferred
Returns
None.

Definition at line 8265 of file ossacmnapi.c.

References status, and TI_DBG1.

Referenced by mpiGetVHistRsp().

Here is the caller graph for this function: