Lines Matching refs:pSessionDesc

127 		      dc_session_desc_t *pSessionDesc,  in dcCompHwBlockPopulate()  argument
147 if (CPA_DC_DEFLATE == pSessionDesc->compType) { in dcCompHwBlockPopulate()
165 switch (pSessionDesc->compLevel) { in dcCompHwBlockPopulate()
200 dc_session_desc_t *pSessionDesc, in dcCompHwBlockPopulateGen4() argument
218 switch (pSessionDesc->compType) { in dcCompHwBlockPopulateGen4()
224 if (CPA_DC_HT_FULL_DYNAMIC == pSessionDesc->huffType) { in dcCompHwBlockPopulateGen4()
235 if (CPA_DC_STATEFUL == pSessionDesc->sessState) { in dcCompHwBlockPopulateGen4()
245 switch (pSessionDesc->compLevel) { in dcCompHwBlockPopulateGen4()
270 pSessionDesc->huffType) && in dcCompHwBlockPopulateGen4()
271 (CPA_DC_DEFLATE == pSessionDesc->compType)) { in dcCompHwBlockPopulateGen4()
309 if (CPA_DC_DEFLATE == pSessionDesc->compType) { in dcCompHwBlockPopulateGen4()
342 dc_session_desc_t *pSessionDesc, in dcCompContentDescPopulate() argument
363 if ((CPA_DC_STATEFUL == pSessionDesc->sessState) && in dcCompContentDescPopulate()
364 (CPA_DC_DEFLATE == pSessionDesc->compType) && in dcCompContentDescPopulate()
398 pSessionDesc->stateRegistersComp); in dcCompContentDescPopulate()
403 pSessionDesc->stateRegistersDecomp); in dcCompContentDescPopulate()
417 pSessionDesc, in dcCompContentDescPopulate()
422 pSessionDesc, in dcCompContentDescPopulate()
563 dc_session_desc_t *pSessionDesc = NULL; in dcInitSession() local
688 pSessionDesc = (dc_session_desc_t *) in dcInitSession()
696 *((LAC_ARCH_UINT *)pSessionHandle) = (LAC_ARCH_UINT)pSessionDesc; in dcInitSession()
699 LAC_OS_BZERO(pSessionDesc, sizeof(dc_session_desc_t)); in dcInitSession()
713 pSessionDesc->pContextBuffer = pContextBuffer; in dcInitSession()
714 pSessionDesc->historyBuffSize = historySize; in dcInitSession()
717 pSessionDesc->cumulativeConsumedBytes = 0; in dcInitSession()
720 pSessionDesc->requestType = DC_REQUEST_FIRST; in dcInitSession()
721 pSessionDesc->huffType = pSessionData->huffType; in dcInitSession()
722 pSessionDesc->compType = pSessionData->compType; in dcInitSession()
723 pSessionDesc->checksumType = pSessionData->checksum; in dcInitSession()
724 pSessionDesc->autoSelectBestHuffmanTree = in dcInitSession()
726 pSessionDesc->sessDirection = pSessionData->sessDirection; in dcInitSession()
727 pSessionDesc->sessState = pSessionData->sessState; in dcInitSession()
728 pSessionDesc->compLevel = pSessionData->compLevel; in dcInitSession()
729 pSessionDesc->isDcDp = CPA_FALSE; in dcInitSession()
730 pSessionDesc->minContextSize = minContextSize; in dcInitSession()
731 pSessionDesc->isSopForCompressionProcessed = CPA_FALSE; in dcInitSession()
732 pSessionDesc->isSopForDecompressionProcessed = CPA_FALSE; in dcInitSession()
734 if (CPA_DC_ADLER32 == pSessionDesc->checksumType) { in dcInitSession()
735 pSessionDesc->previousChecksum = 1; in dcInitSession()
737 pSessionDesc->previousChecksum = 0; in dcInitSession()
744 status = LAC_SPINLOCK_INIT(&(pSessionDesc->sessionLock)); in dcInitSession()
754 pSessionDesc->pCompressionCb = ((void *)NULL != (void *)callbackFn) ? in dcInitSession()
759 qatUtilsAtomicSet(0, &pSessionDesc->pendingStatelessCbCount); in dcInitSession()
760 qatUtilsAtomicSet(0, &pSessionDesc->pendingStatefulCbCount); in dcInitSession()
761 pSessionDesc->pendingDpStatelessCbCount = 0; in dcInitSession()
769 pSessionDesc, in dcInitSession()
771 &(pSessionDesc->reqCacheComp), in dcInitSession()
778 &(pSessionDesc->reqCacheComp), in dcInitSession()
782 pReqCache = &(pSessionDesc->reqCacheComp); in dcInitSession()
789 pSessionDesc, in dcInitSession()
791 &(pSessionDesc->reqCacheComp), in dcInitSession()
801 pSessionDesc, in dcInitSession()
803 &(pSessionDesc->reqCacheDecomp), in dcInitSession()
811 LAC_OS_BZERO(&pSessionDesc->stateRegistersComp, in dcInitSession()
812 sizeof(pSessionDesc->stateRegistersComp)); in dcInitSession()
814 LAC_OS_BZERO(&pSessionDesc->stateRegistersDecomp, in dcInitSession()
815 sizeof(pSessionDesc->stateRegistersDecomp)); in dcInitSession()
819 pSessionDesc->physDataIntegrityCrcs = (icp_qat_addr_width_t) in dcInitSession()
821 &pSessionDesc->dataIntegrityCrcs); in dcInitSession()
822 if (0 == pSessionDesc->physDataIntegrityCrcs) { in dcInitSession()
828 pDataIntegrityCrcs = &pSessionDesc->dataIntegrityCrcs; in dcInitSession()
852 pSessionDesc->seedSwCrc.swCrc64I = 0; in dcInitSession()
853 pSessionDesc->seedSwCrc.swCrc64O = 0; in dcInitSession()
856 switch (pSessionDesc->autoSelectBestHuffmanTree) { in dcInitSession()
910 pReqCache = &(pSessionDesc->reqCacheComp); in dcInitSession()
934 pReqCache = &(pSessionDesc->reqCacheDecomp); in dcInitSession()
988 dc_session_desc_t *pSessionDesc = NULL; in cpaDcResetSession() local
996 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pSessionHandle); in cpaDcResetSession()
997 LAC_CHECK_NULL_PARAM(pSessionDesc); in cpaDcResetSession()
999 if (CPA_TRUE == pSessionDesc->isDcDp) { in cpaDcResetSession()
1012 if (CPA_TRUE == pSessionDesc->isDcDp) { in cpaDcResetSession()
1024 if (0 != pSessionDesc->pendingDpStatelessCbCount) { in cpaDcResetSession()
1028 pSessionDesc->pendingDpStatelessCbCount); in cpaDcResetSession()
1033 qatUtilsAtomicGet(&(pSessionDesc->pendingStatelessCbCount)); in cpaDcResetSession()
1035 qatUtilsAtomicGet(&(pSessionDesc->pendingStatefulCbCount)); in cpaDcResetSession()
1052 pSessionDesc->requestType = DC_REQUEST_FIRST; in cpaDcResetSession()
1053 pSessionDesc->cumulativeConsumedBytes = 0; in cpaDcResetSession()
1054 if (CPA_DC_ADLER32 == pSessionDesc->checksumType) { in cpaDcResetSession()
1055 pSessionDesc->previousChecksum = 1; in cpaDcResetSession()
1057 pSessionDesc->previousChecksum = 0; in cpaDcResetSession()
1059 pSessionDesc->cnvErrorInjection = ICP_QAT_FW_COMP_NO_CNV_DFX; in cpaDcResetSession()
1062 pDataIntegrityCrcs = &pSessionDesc->dataIntegrityCrcs; in cpaDcResetSession()
1077 pSwCrcs = &pSessionDesc->seedSwCrc; in cpaDcResetSession()
1081 pSwCrcs = &pSessionDesc->integritySwCrc; in cpaDcResetSession()
1086 qatUtilsAtomicSet(0, &pSessionDesc->pendingStatelessCbCount); in cpaDcResetSession()
1087 qatUtilsAtomicSet(0, &pSessionDesc->pendingStatefulCbCount); in cpaDcResetSession()
1088 pSessionDesc->pendingDpStatelessCbCount = 0; in cpaDcResetSession()
1089 if (CPA_DC_STATEFUL == pSessionDesc->sessState) { in cpaDcResetSession()
1090 LAC_OS_BZERO(&pSessionDesc->stateRegistersComp, in cpaDcResetSession()
1091 sizeof(pSessionDesc->stateRegistersComp)); in cpaDcResetSession()
1092 LAC_OS_BZERO(&pSessionDesc->stateRegistersDecomp, in cpaDcResetSession()
1093 sizeof(pSessionDesc->stateRegistersDecomp)); in cpaDcResetSession()
1119 dc_session_desc_t *pSessionDesc = NULL; in cpaDcRemoveSession() local
1125 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pSessionHandle); in cpaDcRemoveSession()
1126 LAC_CHECK_NULL_PARAM(pSessionDesc); in cpaDcRemoveSession()
1128 if (CPA_TRUE == pSessionDesc->isDcDp) { in cpaDcRemoveSession()
1144 if (CPA_TRUE == pSessionDesc->isDcDp) { in cpaDcRemoveSession()
1157 if (0 != pSessionDesc->pendingDpStatelessCbCount) { in cpaDcRemoveSession()
1161 pSessionDesc->pendingDpStatelessCbCount); in cpaDcRemoveSession()
1166 qatUtilsAtomicGet(&(pSessionDesc->pendingStatelessCbCount)); in cpaDcRemoveSession()
1168 qatUtilsAtomicGet(&(pSessionDesc->pendingStatefulCbCount)); in cpaDcRemoveSession()
1185 if ((CPA_DC_STATEFUL == pSessionDesc->sessState) && in cpaDcRemoveSession()
1187 LAC_SPINLOCK_DESTROY(&(pSessionDesc->sessionLock)); in cpaDcRemoveSession()
1257 dc_session_desc_t *pSessionDesc = NULL; in dcSetCnvError() local
1273 pSessionDesc = DC_SESSION_DESC_FROM_CTX_GET(pSessionHandle); in dcSetCnvError()
1275 LAC_CHECK_NULL_PARAM(pSessionDesc); in dcSetCnvError()
1277 pSessionDesc->cnvErrorInjection = ICP_QAT_FW_COMP_CNV_DFX; in dcSetCnvError()