Lines Matching refs:pSessionData

59 dcCheckSessionData(const CpaDcSessionSetupData *pSessionData,  in dcCheckSessionData()  argument
66 if ((pSessionData->compLevel < CPA_DC_L1) || in dcCheckSessionData()
67 (pSessionData->compLevel > CPA_DC_L12)) { in dcCheckSessionData()
72 if ((pSessionData->autoSelectBestHuffmanTree < CPA_DC_ASB_DISABLED) || in dcCheckSessionData()
73 (pSessionData->autoSelectBestHuffmanTree > CPA_DC_ASB_ENABLED)) { in dcCheckSessionData()
77 if (pSessionData->compType != CPA_DC_DEFLATE) { in dcCheckSessionData()
82 if ((pSessionData->huffType < CPA_DC_HT_STATIC) || in dcCheckSessionData()
83 (pSessionData->huffType > CPA_DC_HT_FULL_DYNAMIC) || in dcCheckSessionData()
84 (CPA_DC_HT_PRECOMP == pSessionData->huffType)) { in dcCheckSessionData()
89 if ((pSessionData->sessDirection < CPA_DC_DIR_COMPRESS) || in dcCheckSessionData()
90 (pSessionData->sessDirection > CPA_DC_DIR_COMBINED)) { in dcCheckSessionData()
95 if ((pSessionData->sessState < CPA_DC_STATEFUL) || in dcCheckSessionData()
96 (pSessionData->sessState > CPA_DC_STATELESS)) { in dcCheckSessionData()
101 if ((pSessionData->checksum < CPA_DC_NONE) || in dcCheckSessionData()
102 (pSessionData->checksum > CPA_DC_ADLER32)) { in dcCheckSessionData()
480 CpaDcSessionSetupData *pSessionData, in dcGetContextSize() argument
488 if ((CPA_DC_STATEFUL == pSessionData->sessState) && in dcGetContextSize()
489 (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection)) { in dcGetContextSize()
490 switch (pSessionData->compType) { in dcGetContextSize()
505 CpaDcSessionSetupData *pSessionData, in dcGetCompressCommandId() argument
510 LAC_CHECK_NULL_PARAM(pSessionData); in dcGetCompressCommandId()
513 switch (pSessionData->compType) { in dcGetCompressCommandId()
515 *pDcCmdId = (CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType) ? in dcGetCompressCommandId()
531 CpaDcSessionSetupData *pSessionData, in dcGetDecompressCommandId() argument
536 LAC_CHECK_NULL_PARAM(pSessionData); in dcGetDecompressCommandId()
539 switch (pSessionData->compType) { in dcGetDecompressCommandId()
556 CpaDcSessionSetupData *pSessionData, in dcInitSession() argument
590 LAC_CHECK_NULL_PARAM(pSessionData); in dcInitSession()
596 dcCheckSessionData(pSessionData, dcInstance)) { in dcInitSession()
600 if ((CPA_DC_STATEFUL == pSessionData->sessState) && in dcInitSession()
601 (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection)) { in dcInitSession()
608 (CPA_DC_STATEFUL == pSessionData->sessState && in dcInitSession()
609 CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection)) { in dcInitSession()
616 (CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType)) { in dcInitSession()
621 pSessionData->autoSelectBestHuffmanTree) { in dcInitSession()
623 pSessionData->huffType = CPA_DC_HT_STATIC; in dcInitSession()
633 if ((CPA_DC_STATEFUL == pSessionData->sessState) && in dcInitSession()
634 (CPA_DC_DEFLATE == pSessionData->compType)) { in dcInitSession()
637 dcGetContextSize(dcInstance, pSessionData, &minContextSize); in dcInitSession()
721 pSessionDesc->huffType = pSessionData->huffType; in dcInitSession()
722 pSessionDesc->compType = pSessionData->compType; in dcInitSession()
723 pSessionDesc->checksumType = pSessionData->checksum; in dcInitSession()
725 pSessionData->autoSelectBestHuffmanTree; in dcInitSession()
726 pSessionDesc->sessDirection = pSessionData->sessDirection; in dcInitSession()
727 pSessionDesc->sessState = pSessionData->sessState; in dcInitSession()
728 pSessionDesc->compLevel = pSessionData->compLevel; in dcInitSession()
740 if (CPA_DC_STATEFUL == pSessionData->sessState) { in dcInitSession()
763 if (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection) { in dcInitSession()
765 CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType) { in dcInitSession()
799 if (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection) { in dcInitSession()
808 if (CPA_DC_STATEFUL == pSessionData->sessState) { in dcInitSession()
899 if (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection) { in dcInitSession()
901 pSessionData, in dcInitSession()
923 if (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection) { in dcInitSession()
925 pSessionData, in dcInitSession()
953 CpaDcSessionSetupData *pSessionData, in cpaDcInitSession() argument
976 pSessionData, in cpaDcInitSession()
1196 CpaDcSessionSetupData *pSessionData, in dcGetSessionSize() argument
1212 LAC_CHECK_NULL_PARAM(pSessionData); in dcGetSessionSize()
1215 if (dcCheckSessionData(pSessionData, insHandle) != CPA_STATUS_SUCCESS) { in dcGetSessionSize()
1225 dcGetContextSize(insHandle, pSessionData, pContextSize); in dcGetSessionSize()
1239 CpaDcSessionSetupData *pSessionData, in cpaDcGetSessionSize() argument
1247 pSessionData, in cpaDcGetSessionSize()