/freebsd/sys/dev/qat/qat_api/common/crypto/sym/ |
H A D | lac_sym_stats.c | 42 sal_crypto_service_t *pService = (sal_crypto_service_t *)instanceHandle; in LacSym_StatsInit() local 44 pService->pLacSymStatsArr = in LacSym_StatsInit() 47 if (NULL != pService->pLacSymStatsArr) { in LacSym_StatsInit() 49 pService->pLacSymStatsArr), in LacSym_StatsInit() 60 sal_crypto_service_t *pService = (sal_crypto_service_t *)instanceHandle; in LacSym_StatsFree() local 61 if (NULL != pService->pLacSymStatsArr) { in LacSym_StatsFree() 62 LAC_OS_FREE(pService->pLacSymStatsArr); in LacSym_StatsFree() 71 pService->generic_service_info.stats->bSymStatsEnabled) { in LacSym_StatsInc() 73 &pService->pLacSymStatsArr[offset / sizeof(Cpa64U)]); in LacSym_StatsInc() 86 (Cpa32U)qatUtilsAtomicGet(&pService->pLacSymStatsArr[i]); in LacSym_Stats32CopyGet() [all …]
|
H A D | lac_sym_alg_chain.c | 644 sal_crypto_service_t *pService = in LacAlgChain_SessionAuthKeyUpdate() local 1064 pService->generic_service_info, in LacAlgChain_SessionInit() 1132 pService->qatHmacMode; in LacAlgChain_SessionInit() 1164 buildCmdData(pService, in LacAlgChain_SessionInit() 1628 if (isCyGen2x(pService)) { in LacAlgChain_Perform() 2071 if (isCyGen4x(pService)) { in LacAlgChain_Perform() 2099 pService in LacAlgChain_Perform() 2104 pService)) { in LacAlgChain_Perform() 2146 if (isCyGen4x(pService)) { in LacAlgChain_Perform() 2207 pService in LacAlgChain_Perform() [all …]
|
H A D | lac_sym_dp.c | 586 sal_crypto_service_t *pService = in LacDp_WriteRingMsgFull() local 623 if (isCyGen2x(pService)) in LacDp_WriteRingMsgFull() 643 LacCipher_GetCipherSliceType(pService, cipher, hash); in LacDp_WriteRingMsgFull() 808 if (isCyGen4x(pService)) { in LacDp_WriteRingMsgFull() 963 sal_service_t *pService = NULL; in cpaCySymDpInitSession() local 971 pService = (sal_service_t *)instanceHandle; in cpaCySymDpInitSession() 974 SAL_RUNNING_CHECK(pService); in cpaCySymDpInitSession() 1009 pService->pSymDpCb = pSymDpCb; in cpaCySymDpRegCbFunc() 1098 sal_crypto_service_t *pService = NULL; in cpaCySymDpEnqueueOpBatch() local 1108 (numberRequests > pService->maxNumSymReqBatch)) { in cpaCySymDpEnqueueOpBatch() [all …]
|
H A D | lac_sym_cipher.c | 60 LacCipher_PerformIvCheck(sal_service_t *pService, in LacCipher_PerformIvCheck() argument 435 LacCipher_GetCipherSliceType(sal_crypto_service_t *pService, in LacCipher_GetCipherSliceType() argument 441 pService->generic_service_info.capabilitiesMask; in LacCipher_GetCipherSliceType() 444 if (isCyGen4x(pService)) { in LacCipher_GetCipherSliceType()
|
H A D | lac_sym_queue.c | 52 sal_crypto_service_t *pService = (sal_crypto_service_t *)instanceHandle; in LacSymQueue_RequestSend() local 142 status = icp_adf_transPutMsg(pService->trans_handle_sym_tx, in LacSymQueue_RequestSend()
|
/freebsd/sys/dev/qat/qat_api/common/include/ |
H A D | sal_hw_gen.h | 32 isDcGen4x(const sal_compression_service_t *pService) in isDcGen4x() argument 34 return (pService->generic_service_info.gen == GEN4); in isDcGen4x() 48 isDcGen2x(const sal_compression_service_t *pService) in isDcGen2x() argument 50 return ((pService->generic_service_info.gen == GEN2) || in isDcGen2x() 51 (pService->generic_service_info.gen == GEN3)); in isDcGen2x() 65 isCyGen4x(const sal_crypto_service_t *pService) in isCyGen4x() argument 67 return (pService->generic_service_info.gen == GEN4); in isCyGen4x() 81 isCyGen2x(const sal_crypto_service_t *pService) in isCyGen2x() argument 83 return ((pService->generic_service_info.gen == GEN2) || in isCyGen2x() 84 (pService->generic_service_info.gen == GEN3)); in isCyGen2x()
|
H A D | sal_service_state.h | 84 sal_service_t *pService = (sal_service_t *)instanceHandle; \ 85 if ((SAL_SERVICE_STATE_UNINITIALIZED != pService->state) && \ 86 (SAL_SERVICE_STATE_RESTARTING != pService->state)) { \
|
H A D | lac_buffer_desc.h | 50 sal_service_t *pService); 75 sal_service_t *pService); 103 sal_service_t *pService);
|
H A D | lac_sal_types.h | 201 #define SAL_CHECK_INSTANCE_TYPE(pService, service_type) \ argument 204 pGenericService = (sal_service_t *)pService; \
|
/freebsd/sys/dev/qat/qat_api/common/compression/ |
H A D | dc_datapath.c | 189 pService); in dcCompression_ProcessCallback() 355 pService); in dcCompression_ProcessCallback() 364 pService); in dcCompression_ProcessCallback() 367 pService); in dcCompression_ProcessCallback() 414 pService); in dcCompression_ProcessCallback() 417 pService); in dcCompression_ProcessCallback() 1221 pService, in dcCompDecompData() 1436 pService, in cpaDcCompressData() 1579 pService, in cpaDcCompressData2() 1810 pService, in cpaDcDecompressData() [all …]
|
H A D | dc_stats.c | 39 dcStatsInit(sal_compression_service_t *pService) in dcStatsInit() argument 43 pService->pCompStatsArr = in dcStatsInit() 46 if (pService->pCompStatsArr == NULL) { in dcStatsInit() 51 COMPRESSION_STATS_RESET(pService); in dcStatsInit() 58 dcStatsFree(sal_compression_service_t *pService) in dcStatsFree() argument 60 if (NULL != pService->pCompStatsArr) { in dcStatsFree() 61 LAC_OS_FREE(pService->pCompStatsArr); in dcStatsFree() 68 sal_compression_service_t *pService = NULL; in cpaDcGetStats() local 77 pService = (sal_compression_service_t *)insHandle; in cpaDcGetStats() 86 COMPRESSION_STATS_GET(pStatistics, pService); in cpaDcGetStats()
|
H A D | dc_dp.c | 63 sal_compression_service_t *pService = NULL; in dcDataPlaneParamCheck() local 185 if (isDcGen2x(pService) && in dcDataPlaneParamCheck() 210 pService->comp_device_data in dcDataPlaneParamCheck() 248 if (!isDcGen4x(pService)) { in dcDataPlanePartReadCheck() 291 if (!isDcGen4x(pService)) { in dcDataPlaneZeroPadCheck() 326 SAL_RUNNING_CHECK(pService); in cpaDcDpInitSession() 380 pService->pDcDpCb = pNewCb; in cpaDcDpRegCbFunc() 417 if (isDcGen4x(pService)) { in dcDpWriteRingMsg() 492 if (!isDcGen4x(pService)) { in dcDpUpdateRingMsg() 818 if (!isDcGen4x(pService)) { in cpaDcDpIsPartReadSupported() [all …]
|
H A D | dc_session.c | 413 if (isDcGen4x(pService)) { in dcCompContentDescPopulate() 419 dcCompHwBlockPopulate(pService, in dcCompContentDescPopulate() 507 LAC_CHECK_NULL_PARAM(pService); in dcGetCompressCommandId() 533 LAC_CHECK_NULL_PARAM(pService); in dcGetDecompressCommandId() 605 if ((isDcGen4x(pService)) && in dcInitSession() 613 if ((isDcGen2x(pService)) && in dcInitSession() 762 if ((isDcGen2x(pService)) && in dcInitSession() 830 if (isDcGen2x(pService)) { in dcInitSession() 970 SAL_RUNNING_CHECK(pService); in cpaDcInitSession() 1065 if (isDcGen2x(pService)) { in cpaDcResetSession() [all …]
|
H A D | dc_buffers.c | 142 sal_compression_service_t *pService = NULL; in cpaDcDeflateCompressBound() local 167 pService = (sal_compression_service_t *)insHandle; in cpaDcDeflateCompressBound() 168 if (isDcGen4x(pService)) { in cpaDcDeflateCompressBound()
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/key/ |
H A D | lac_sym_key.c | 765 pService->lac_sym_cookie_pool); in LacSymKey_MgfCommon() 825 pService->generic_service_info, in LacSymKey_MgfCommon() 1243 pService->lac_sym_cookie_pool); in LacSymKey_KeyGenSslTls_GenCommon() 1264 pCookie->instanceHandle = pService; in LacSymKey_KeyGenSslTls_GenCommon() 1593 pLabel = pService->pSslLabel; in LacSymKey_KeyGenSslTls_GenCommon() 1972 pService->pTlsHKDFSubLabel in LacSymKey_KeyGenSslTls_GenCommon() 2784 pService->pLacKeyStats = in LacSymKey_Init() 2794 pService->nodeAffinity); in LacSymKey_Init() 2813 pService->nodeAffinity); in LacSymKey_Init() 2822 pService->nodeAffinity); in LacSymKey_Init() [all …]
|
/freebsd/sys/dev/qat/qat_api/common/compression/include/ |
H A D | dc_stats.h | 19 #define COMPRESSION_STAT_INC(statistic, pService) \ argument 22 pService->generic_service_info.stats->bDcStatsEnabled) { \ 24 &pService->pCompStatsArr[offsetof(CpaDcStats, \ 31 #define COMPRESSION_STATS_GET(compStats, pService) \ argument 36 qatUtilsAtomicGet(&pService->pCompStatsArr[i]); \ 41 #define COMPRESSION_STATS_RESET(pService) \ argument 45 qatUtilsAtomicSet(0, &pService->pCompStatsArr[i]); \ 63 CpaStatus dcStatsInit(sal_compression_service_t *pService); 78 void dcStatsFree(sal_compression_service_t *pService);
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/qat/ |
H A D | lac_sym_qat_key.c | 115 sal_service_t *pService, in LacSymQat_KeySslKeyMaterialInputPopulate() argument 122 (*pService), pSslKeyMaterialInput->seed_addr, pSeed); in LacSymQat_KeySslKeyMaterialInputPopulate() 127 (*pService), pSslKeyMaterialInput->secret_addr, pSecret); in LacSymQat_KeySslKeyMaterialInputPopulate() 132 sal_service_t *pService, in LacSymQat_KeyTlsKeyMaterialInputPopulate() argument 138 (*pService), pTlsKeyMaterialInput->seed_addr, pSeed); in LacSymQat_KeyTlsKeyMaterialInputPopulate() 145 sal_service_t *pService, in LacSymQat_KeyTlsHKDFKeyMaterialInputPopulate() argument 154 (*pService), in LacSymQat_KeyTlsHKDFKeyMaterialInputPopulate() 160 (*pService), in LacSymQat_KeyTlsHKDFKeyMaterialInputPopulate() 166 (*pService), in LacSymQat_KeyTlsHKDFKeyMaterialInputPopulate() 177 (*pService), in LacSymQat_KeyTlsHKDFKeyMaterialInputPopulate() [all …]
|
H A D | lac_sym_qat_constants_table.c | 162 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_ConstantsInitLookupTables() local 171 if (SAL_SERVICE_TYPE_COMPRESSION == pService->type) { in LacSymQat_ConstantsInitLookupTables() 176 ((sal_crypto_service_t *)pService)->constantsLookupTables); in LacSymQat_ConstantsInitLookupTables() 215 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_ConstantsGetCipherOffset() local 218 if (SAL_SERVICE_TYPE_COMPRESSION == pService->type) { in LacSymQat_ConstantsGetCipherOffset() 223 ((sal_crypto_service_t *)pService)->constantsLookupTables); in LacSymQat_ConstantsGetCipherOffset() 244 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_ConstantsGetAuthOffset() local 247 if (SAL_SERVICE_TYPE_COMPRESSION == pService->type) { in LacSymQat_ConstantsGetAuthOffset() 252 ((sal_crypto_service_t *)pService)->constantsLookupTables); in LacSymQat_ConstantsGetAuthOffset()
|
H A D | lac_sym_qat_hash_defs_lookup.c | 452 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_HashLookupInit() local 478 ((sal_crypto_service_t *)pService)->pLacHashLookupDefs = in LacSymQat_HashLookupInit() 492 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_HashAlgLookupGet() local 494 ((sal_crypto_service_t *)pService)->pLacHashLookupDefs; in LacSymQat_HashAlgLookupGet() 507 sal_service_t *pService = (sal_service_t *)instanceHandle; in LacSymQat_HashDefsLookupGet() local 509 ((sal_crypto_service_t *)pService)->pLacHashLookupDefs; in LacSymQat_HashDefsLookupGet()
|
/freebsd/sys/dev/qat/qat_api/common/utils/ |
H A D | sal_service_state.c | 28 sal_service_t *pService = (sal_service_t *)instanceHandle; in Sal_ServiceIsRunning() local 30 if (SAL_SERVICE_STATE_RUNNING == pService->state) { in Sal_ServiceIsRunning() 39 sal_service_t *pService = (sal_service_t *)instanceHandle; in Sal_ServiceIsRestarting() local 41 if (SAL_SERVICE_STATE_RESTARTING == pService->state) { in Sal_ServiceIsRestarting()
|
H A D | lac_buffer_desc.c | 48 sal_service_t *pService, in LacBuffDesc_CommonBufferListDescWrite() argument 70 (*pService), pUserBufferList->pPrivateMetaData); in LacBuffDesc_CommonBufferListDescWrite() 132 (*pService), pCurrClientFlatBuffer->pData)); in LacBuffDesc_CommonBufferListDescWrite() 162 sal_service_t *pService) in LacBuffDesc_BufferListDescWriteAndAllowZeroBuffer() argument 169 pService, in LacBuffDesc_BufferListDescWriteAndAllowZeroBuffer() 179 sal_service_t *pService) in LacBuffDesc_BufferListDescWrite() argument 185 pService, in LacBuffDesc_BufferListDescWrite() 196 sal_service_t *pService) in LacBuffDesc_BufferListDescWriteAndGetSize() argument 214 (*pService), pUserBufferList->pPrivateMetaData); in LacBuffDesc_BufferListDescWriteAndGetSize() 253 (*pService), pCurrClientFlatBuffer->pData)); in LacBuffDesc_BufferListDescWriteAndGetSize()
|
H A D | lac_mem.c | 90 sal_service_t *pService = (sal_service_t *)pServiceGen; in SalMem_virt2PhysExternal() local 92 if (NULL != pService->virt2PhysClient) { in SalMem_virt2PhysExternal() 93 return pService->virt2PhysClient(pVirtAddr); in SalMem_virt2PhysExternal()
|
/freebsd/sys/dev/qat/qat_api/common/ctrl/ |
H A D | sal_compression.c | 915 sal_compression_service_t *pService = NULL; in cpaDcGetNumIntermediateBuffers() local 927 *pNumBuffers = pService->numInterBuffs; in cpaDcGetNumIntermediateBuffers() 947 sal_compression_service_t *pService = NULL; in cpaDcStartInstance() local 1063 pService->nodeAffinity); in cpaDcStartInstance() 1104 (*pService), in cpaDcStartInstance() 1181 sal_compression_service_t *pService = NULL; in cpaDcStopInstance() local 1195 pService->pInterBuffPtrsArray = 0; in cpaDcStopInstance() 1198 pService->pInterBuffPtrsArrayPhyAddr = 0; in cpaDcStopInstance() 1490 sal_compression_service_t *pService = NULL; in cpaDcQueryCapabilities() local 1550 sal_service_t *pService = NULL; in cpaDcSetAddressTranslation() local [all …]
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/include/ |
H A D | lac_sym_qat_key.h | 136 sal_service_t *pService, 159 sal_service_t *pService, 182 sal_service_t *pService,
|
H A D | lac_sym_cipher.h | 308 CpaStatus LacCipher_PerformIvCheck(sal_service_t *pService, 328 Cpa32U LacCipher_GetCipherSliceType(sal_crypto_service_t *pService,
|