FreeBSD kernel pms device code
sautil.c File Reference

The file contains general helper routines. More...

#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <dev/pms/RefTisa/sallsdk/spc/saglobal.h>
Include dependency graph for sautil.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int siIsHexDigit (char a)
 Check for Hex digit. More...
 
FORCEINLINE void * si_memcpy (void *dst, void *src, bit32 count)
 memcopy More...
 
FORCEINLINE void * si_memset (void *s, int c, bit32 n)
 memset More...
 
GLOBAL void siDumpActiveIORequests (agsaRoot_t *agRoot, bit32 count)
 siDumpActiveIORequests More...
 
GLOBAL void siClearActiveIORequests (agsaRoot_t *agRoot)
 saCountActiveIORequests More...
 
GLOBAL void siClearActiveIORequestsOnDevice (agsaRoot_t *agRoot, bit32 device)
 siCountActiveIORequestsOnDevice count all active IO's More...
 
GLOBAL void siCountActiveIORequestsOnDevice (agsaRoot_t *agRoot, bit32 device)
 siCountActiveIORequestsOnDevice count all active IO's More...
 
GLOBAL void saCountActiveIORequests (agsaRoot_t *agRoot)
 saCountActiveIORequests count all active IO's More...
 
GLOBAL bit32 smIsCfg_V_ANY (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_SPC (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_HIL (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_SPC6V (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_SPC12V (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_SPCV_2_IOP (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_SPCV (agsaRoot_t *agRoot)
 
GLOBAL bit32 smIS_ENCRYPT (agsaRoot_t *agRoot)
 

Detailed Description

The file contains general helper routines.

Definition in file sautil.c.

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ saCountActiveIORequests()

GLOBAL void saCountActiveIORequests ( agsaRoot_t agRoot)

saCountActiveIORequests count all active IO's

Parameters
charvalue
Returns
-void-

Definition at line 370 of file sautil.c.

References agNULL, AGSAMEM_ELEMENT_READ, agTRUE, agsaLLRoot_s::IORequestMem, agsaSwConfig_s::maxActiveIOs, agsaLLRoot_s::ResetStartTick, SA_ASSERT, SA_DBG1, SA_DBG2, agsaContext_s::sdkData, agsaIORequestDesc_s::startTick, agsaLLRoot_s::swConfig, and agsaIORequestDesc_s::valid.

Referenced by saHwReset(), siDumpActiveIORequests(), and tiComCountActiveIORequests().

Here is the caller graph for this function:

◆ si_memcpy()

◆ si_memset()

FORCEINLINE void * si_memset ( void *  s,
int  c,
bit32  n 
)

memset

Parameters
charvalue
Returns
-void-

Definition at line 104 of file sautil.c.

Referenced by mpiBistRsp(), mpiDekManagementRsp(), mpiDeregDevHandleCmd(), mpiDevHandleAcceptCmd(), mpiDeviceHandleArrived(), mpiDifEncOffloadRsp(), mpiDIFEncryptionOffloadCmd(), mpiGeneralEventRsp(), mpiGetControllerConfigRsp(), mpiGetDeviceHandleCmd(), mpiGetDeviceInfoCmd(), mpiGetDeviceStateCmd(), mpiGetDevInfoRsp(), mpiGetNVMDCmd(), mpiGetOperatorRsp(), mpiGetPhyProfileCmd(), mpiGPIORsp(), mpiHWevent(), mpiInitialize(), mpiKekManagementRsp(), mpiLocalPhyControlCmd(), mpiNVMReadRegDumpCmd(), mpiOperatorManagementRsp(), mpiPCIeDiagExecuteRsp(), mpiPhyStartCmd(), mpiPhyStopCmd(), mpiSasReinitializeCmd(), mpiSetControllerConfigRsp(), mpiSetDeviceInfoCmd(), mpiSetDeviceStateCmd(), mpiSetNVMDCmd(), mpiSetPhyProfileCmd(), mpiVHistCapCmd(), saEncryptDekCacheInvalidate(), saEncryptDekCacheUpdate(), saEncryptKekInvalidate(), saEncryptKekUpdate(), saEncryptSelftestExecute(), saEncryptSetMode(), saFlashExtExecute(), saGetControllerConfig(), saGetControllerInfo(), saGetControllerStatus(), saGetDFEData(), saGetIOErrorStats(), saGetIOEventStats(), saGetOperator(), saGetPhyProfile(), saGetRequirements(), saGetTimeStamp(), saGpioEventSetup(), saGpioPinSetup(), saGpioRead(), saGpioWrite(), saHwEventAck(), saHwReset(), saInitialize(), saLocalPhyControl(), saOperatorManagement(), saPCIeDiagExecute(), saPortControl(), saRegisterNewDevice(), saSASDiagExecute(), saSASDiagStartEnd(), saSATAStart(), saSendSMPIoctl(), saSetControllerConfig(), saSetOperator(), saSgpio(), saSMPStart(), saSSPStart(), siConfiguration(), siDifAbnormal(), siFatalInterruptHandler(), siInitResources(), siNonFatalErrorBuffer(), and siProcessOBMsg().

◆ siClearActiveIORequests()

GLOBAL void siClearActiveIORequests ( agsaRoot_t agRoot)

saCountActiveIORequests

Parameters
charvalue
Returns
-void-

Definition at line 214 of file sautil.c.

References agFALSE, agNULL, AGSAMEM_ELEMENT_READ, agTRUE, agsaLLRoot_s::IORequestMem, agsaSwConfig_s::maxActiveIOs, SA_ASSERT, SA_DBG1, agsaContext_s::sdkData, agsaLLRoot_s::swConfig, and agsaIORequestDesc_s::valid.

◆ siClearActiveIORequestsOnDevice()

GLOBAL void siClearActiveIORequestsOnDevice ( agsaRoot_t agRoot,
bit32  device 
)

◆ siCountActiveIORequestsOnDevice()

GLOBAL void siCountActiveIORequestsOnDevice ( agsaRoot_t agRoot,
bit32  device 
)

◆ siDumpActiveIORequests()

◆ siIsHexDigit()

int siIsHexDigit ( char  a)

Check for Hex digit.

Parameters
charvalue
Returns
-void-

Definition at line 56 of file sautil.c.

◆ smIS_ENCRYPT()

GLOBAL bit32 smIS_ENCRYPT ( agsaRoot_t agRoot)

◆ smIS_HIL()

GLOBAL bit32 smIS_HIL ( agsaRoot_t agRoot)

Definition at line 446 of file sautil.c.

References smIS_ADAP8088, smIS_ADAP8089, smIS_spc8081, smIS_SPCV8074, smIS_SPCV8075, smIS_SPCV8076, and smIS_SPCV8077.

Referenced by mpiInitialize(), and si_macro_check().

Here is the caller graph for this function:

◆ smIS_SPC()

◆ smIS_SPC12V()

◆ smIS_SPC6V()

GLOBAL bit32 smIS_SPC6V ( agsaRoot_t agRoot)

Definition at line 459 of file sautil.c.

References smIS_ADAP8088, smIS_ADAP8089, smIS_SPCV8008, smIS_SPCV8009, smIS_SPCV8018, and smIS_SPCV8019.

Referenced by mpiInitialize(), mpiParseOBIomb(), mpiWaitForConfigTable(), saGetControllerInfo(), and smIS_SPCV().

Here is the caller graph for this function:

◆ smIS_SPCV()

◆ smIS_SPCV_2_IOP()

GLOBAL bit32 smIS_SPCV_2_IOP ( agsaRoot_t agRoot)

Definition at line 486 of file sautil.c.

References smIS_ADAP8088, smIS_ADAP8089, smIS_SPCV8006, smIS_SPCV8009, smIS_SPCV8018, smIS_SPCV8019, smIS_SPCV8071, smIS_SPCV8072, smIS_SPCV8073, smIS_SPCV8076, and smIS_SPCV8077.

Referenced by siChipResetV().

Here is the caller graph for this function:

◆ smIsCfg_V_ANY()