Lines Matching defs:pSessionData

44  *      Check that pSessionData is valid
47 * Check that all the parameters defined in the pSessionData are valid
49 * @param[in] pSessionData Pointer to a user instantiated structure
59 dcCheckSessionData(const CpaDcSessionSetupData *pSessionData,
66 if ((pSessionData->compLevel < CPA_DC_L1) ||
67 (pSessionData->compLevel > CPA_DC_L12)) {
72 if ((pSessionData->autoSelectBestHuffmanTree < CPA_DC_ASB_DISABLED) ||
73 (pSessionData->autoSelectBestHuffmanTree > CPA_DC_ASB_ENABLED)) {
77 if (pSessionData->compType != CPA_DC_DEFLATE) {
82 if ((pSessionData->huffType < CPA_DC_HT_STATIC) ||
83 (pSessionData->huffType > CPA_DC_HT_FULL_DYNAMIC) ||
84 (CPA_DC_HT_PRECOMP == pSessionData->huffType)) {
89 if ((pSessionData->sessDirection < CPA_DC_DIR_COMPRESS) ||
90 (pSessionData->sessDirection > CPA_DC_DIR_COMBINED)) {
95 if ((pSessionData->sessState < CPA_DC_STATEFUL) ||
96 (pSessionData->sessState > CPA_DC_STATELESS)) {
101 if ((pSessionData->checksum < CPA_DC_NONE) ||
102 (pSessionData->checksum > CPA_DC_ADLER32)) {
470 * @param[in] pSessionData Pointer to a user instantiated
480 CpaDcSessionSetupData *pSessionData,
488 if ((CPA_DC_STATEFUL == pSessionData->sessState) &&
489 (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection)) {
490 switch (pSessionData->compType) {
505 CpaDcSessionSetupData *pSessionData,
510 LAC_CHECK_NULL_PARAM(pSessionData);
513 switch (pSessionData->compType) {
515 *pDcCmdId = (CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType) ?
531 CpaDcSessionSetupData *pSessionData,
536 LAC_CHECK_NULL_PARAM(pSessionData);
539 switch (pSessionData->compType) {
556 CpaDcSessionSetupData *pSessionData,
590 LAC_CHECK_NULL_PARAM(pSessionData);
592 /* Check that the parameters defined in the pSessionData are valid for
596 dcCheckSessionData(pSessionData, dcInstance)) {
600 if ((CPA_DC_STATEFUL == pSessionData->sessState) &&
601 (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection)) {
608 (CPA_DC_STATEFUL == pSessionData->sessState &&
609 CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection)) {
616 (CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType)) {
621 pSessionData->autoSelectBestHuffmanTree) {
623 pSessionData->huffType = CPA_DC_HT_STATIC;
633 if ((CPA_DC_STATEFUL == pSessionData->sessState) &&
634 (CPA_DC_DEFLATE == pSessionData->compType)) {
637 dcGetContextSize(dcInstance, pSessionData, &minContextSize);
721 pSessionDesc->huffType = pSessionData->huffType;
722 pSessionDesc->compType = pSessionData->compType;
723 pSessionDesc->checksumType = pSessionData->checksum;
725 pSessionData->autoSelectBestHuffmanTree;
726 pSessionDesc->sessDirection = pSessionData->sessDirection;
727 pSessionDesc->sessState = pSessionData->sessState;
728 pSessionDesc->compLevel = pSessionData->compLevel;
740 if (CPA_DC_STATEFUL == pSessionData->sessState) {
763 if (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection) {
765 CPA_DC_HT_FULL_DYNAMIC == pSessionData->huffType) {
799 if (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection) {
808 if (CPA_DC_STATEFUL == pSessionData->sessState) {
899 if (CPA_DC_DIR_DECOMPRESS != pSessionData->sessDirection) {
901 pSessionData,
923 if (CPA_DC_DIR_COMPRESS != pSessionData->sessDirection) {
925 pSessionData,
953 CpaDcSessionSetupData *pSessionData,
976 pSessionData,
1196 CpaDcSessionSetupData *pSessionData,
1212 LAC_CHECK_NULL_PARAM(pSessionData);
1215 if (dcCheckSessionData(pSessionData, insHandle) != CPA_STATUS_SUCCESS) {
1225 dcGetContextSize(insHandle, pSessionData, pContextSize);
1239 CpaDcSessionSetupData *pSessionData,
1247 pSessionData,