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