FreeBSD kernel pms device code
|
The file contains general helper routines. More...
#include <sys/cdefs.h>
#include <dev/pms/config.h>
#include <dev/pms/RefTisa/sallsdk/spc/saglobal.h>
Go to the source code of this file.
The file contains general helper routines.
Definition in file sautil.c.
__FBSDID | ( | "$FreeBSD$" | ) |
GLOBAL void saCountActiveIORequests | ( | agsaRoot_t * | agRoot | ) |
saCountActiveIORequests count all active IO's
char | value |
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().
FORCEINLINE void * si_memcpy | ( | void * | dst, |
void * | src, | ||
bit32 | count | ||
) |
memcopy
char | value |
Definition at line 76 of file sautil.c.
Referenced by mpiBuildCmd(), mpiDIFEncryptionOffloadCmd(), mpiEchoCmd(), mpiGetDevInfoRsp(), mpiHWevent(), mpiInitialize(), mpiPhyStartCmd(), mpiSetNVMDCmd(), mpiSMPCmd(), mpiWaitForConfigTable(), saEncryptSelftestExecute(), saGetRegisterDump(), saInitialize(), saOperatorManagement(), saSATAStart(), saSetOperator(), saSMPStart(), saSSPStart(), siDumpInboundQueue(), siDumpOutboundQueue(), siGSMDump(), siNonFatalErrorBuffer(), and siUpdateBarOffsetTable().
FORCEINLINE void * si_memset | ( | void * | s, |
int | c, | ||
bit32 | n | ||
) |
memset
char | value |
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().
GLOBAL void siClearActiveIORequests | ( | agsaRoot_t * | agRoot | ) |
saCountActiveIORequests
char | value |
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.
GLOBAL void siClearActiveIORequestsOnDevice | ( | agsaRoot_t * | agRoot, |
bit32 | device | ||
) |
siCountActiveIORequestsOnDevice count all active IO's
char | value |
Definition at line 264 of file sautil.c.
References agFALSE, agNULL, AGSAMEM_ELEMENT_READ, agTRUE, device, agsaDeviceDesc_s::DeviceMapIndex, agsaLLRoot_s::IORequestMem, agsaSwConfig_s::maxActiveIOs, agsaIORequestDesc_s::pDevice, SA_ASSERT, SA_DBG1, agsaContext_s::sdkData, agsaLLRoot_s::swConfig, and agsaIORequestDesc_s::valid.
GLOBAL void siCountActiveIORequestsOnDevice | ( | agsaRoot_t * | agRoot, |
bit32 | device | ||
) |
siCountActiveIORequestsOnDevice count all active IO's
char | value |
Definition at line 315 of file sautil.c.
References agNULL, AGSAMEM_ELEMENT_READ, agTRUE, device, agsaDeviceDesc_s::DeviceMapIndex, agsaLLRoot_s::IORequestMem, agsaSwConfig_s::maxActiveIOs, agsaIORequestDesc_s::pDevice, agsaLLRoot_s::ResetStartTick, SA_ASSERT, SA_DBG1, SA_DBG2, agsaContext_s::sdkData, agsaIORequestDesc_s::startTick, agsaLLRoot_s::swConfig, and agsaIORequestDesc_s::valid.
Referenced by mpiSSPAbortRsp(), saSATAAbort(), and saSSPAbort().
GLOBAL void siDumpActiveIORequests | ( | agsaRoot_t * | agRoot, |
bit32 | count | ||
) |
siDumpActiveIORequests
char | value |
Definition at line 130 of file sautil.c.
References agNULL, mpiOCQueue_s::agRoot, AGSAMEM_ELEMENT_READ, agTRUE, mpiOCQueue_s::consumerIdx, agsaDeviceDesc_s::DeviceMapIndex, agsaIORequestDesc_s::HTag, agsaLLRoot_s::IORequestMem, agsaQueueConfig_s::numOutboundQueues, ossaHwRegRead(), agsaLLRoot_s::outboundQueue, agsaIORequestDesc_s::pDevice, agsaIORequestDesc_s::pIORequestContext, mpiOCQueue_s::piPointer, mpiOCQueue_s::producerIdx, agsaLLRoot_s::QueueConfig, agsaIORequestDesc_s::requestType, SA_ASSERT, SA_DBG1, saCountActiveIORequests(), SCRATCH_PAD1_V_ERROR_STATE, agsaContext_s::sdkData, smIS_SPCV(), agsaIORequestDesc_s::startTick, agsaLLRoot_s::timeTick, agsaLLRoot_s::usecsPerTick, V_Scratchpad_0_Register, V_Scratchpad_1_Register, V_Scratchpad_2_Register, V_Scratchpad_3_Register, and agsaIORequestDesc_s::valid.
Referenced by saHwReset(), saInitialize(), and saSSPStart().
int siIsHexDigit | ( | char | a | ) |
GLOBAL bit32 smIS_ENCRYPT | ( | agsaRoot_t * | agRoot | ) |
Definition at line 510 of file sautil.c.
References smIS_ADAP8088, smIS_SPCV8009, smIS_SPCV8019, smIS_SPCV8071, smIS_SPCV8073, smIS_SPCV8077, smIS_SPCV9015, and smIS_SPCV9060.
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().
GLOBAL bit32 smIS_SPC | ( | agsaRoot_t * | agRoot | ) |
Definition at line 437 of file sautil.c.
References smIS_SFC_AS_SPC, smIS_spc8001, and smIS_spc8081.
Referenced by mpiGetDeviceInfoCmd(), mpiHWevent(), mpiInitialize(), mpiParseOBIomb(), mpiPhyStartCmd(), mpiSetDeviceInfoCmd(), mpiUnInitConfigTable(), mpiWaitForConfigTable(), saGetControllerInfo(), saGetControllerStatus(), saGetRegisterDump(), saHwEventAck(), saHwReset(), saHwShutdown(), saInitialize(), saLocalPhyControl(), saPhyStop(), saRegisterNewDevice(), saSASDiagExecute(), saSendSMPIoctl(), saSMPStart(), saSSPStart(), saSystemInterruptsActive(), si_macro_check(), siBar4Shift(), siChipReset(), siGetForensicData(), siGSMDump(), and siProcessOBMsg().
GLOBAL bit32 smIS_SPC12V | ( | agsaRoot_t * | agRoot | ) |
Definition at line 470 of file sautil.c.
References smIS_SPCV8006, smIS_SPCV8070, smIS_SPCV8071, smIS_SPCV8072, smIS_SPCV8073, smIS_SPCV8074, smIS_SPCV8075, smIS_SPCV8076, smIS_SPCV8077, smIS_SPCV9015, and smIS_SPCV9060.
Referenced by mpiGetVHistRsp(), mpiInitialize(), mpiParseOBIomb(), mpiWaitForConfigTable(), saGetControllerInfo(), and smIS_SPCV().
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().
GLOBAL bit32 smIS_SPCV | ( | agsaRoot_t * | agRoot | ) |
Definition at line 502 of file sautil.c.
References smIS_SFC_AS_V, smIS_SPC12V(), and smIS_SPC6V().
Referenced by mpiDeviceHandleArrived(), mpiDeviceRegRsp(), mpiDIFEncryptionOffloadCmd(), mpiGetDFEDataRsp(), mpiInitialize(), mpiParseOBIomb(), mpiPCIeDiagExecuteRsp(), mpiPhyStopEvent(), mpiReadCALTable(), mpiReadGSTable(), mpiSASDiagExecuteRsp(), mpiSASDiagStartEndRsp(), mpiSetDevInfoRsp(), mpiWaitForConfigTable(), mpiWriteCALAll(), mpiWriteCALTable(), saDIFEncryptionOffloadStart(), saEncryptGetMode(), saEncryptSetMode(), saGetControllerConfig(), saGetControllerInfo(), saGetDFEData(), saGetPhyProfile(), saGetRegisterDump(), saHwReset(), saHwShutdown(), saInitialize(), saLocalPhyControl(), saPCIeDiagExecute(), saReconfigSASParams(), saSASDiagExecute(), saSATAAbort(), saSetControllerConfig(), saSSPAbort(), saSystemInterruptsActive(), si_macro_check(), siBar4Shift(), siConfiguration(), siDumpActiveIORequests(), siGSMDump(), and siSoftReset().
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().
GLOBAL bit32 smIsCfg_V_ANY | ( | agsaRoot_t * | agRoot | ) |
Definition at line 412 of file sautil.c.
References smIS_SPCV8074, smIS_SPCV8075, smIS_SPCV8076, smIS_SPCV8077, smIsCfg_V8006, smIsCfg_V8008, smIsCfg_V8009, smIsCfg_V8018, smIsCfg_V8019, smIsCfg_V8025, smIsCfg_V8070, smIsCfg_V8071, smIsCfg_V8072, smIsCfg_V8073, smIsCfg_V8088, smIsCfg_V8089, smIsCfg_V9015, and smIsCfg_V9060.