xref: /freebsd/sys/dev/qat/qat_api/common/compression/dc_chain.c (revision 71625ec9ad2a9bc8c09784fbd23b759830e0ee5f)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 
4 /**
5  *****************************************************************************
6  * @file dc_chain.c
7  *
8  * @ingroup Dc_Chaining
9  *
10  * @description
11  *      Implementation of the chaining session operations.
12  *
13  *****************************************************************************/
14 
15 /*
16  *******************************************************************************
17  * Include public/global header files
18  *******************************************************************************
19  */
20 #include "cpa.h"
21 
22 #include "icp_qat_fw.h"
23 #include "icp_qat_fw_comp.h"
24 #include "icp_qat_hw.h"
25 
26 /*
27  *******************************************************************************
28  * Include private header files
29  *******************************************************************************
30  */
31 #include "sal_types_compression.h"
32 #include "cpa_dc_chain.h"
33 #include "lac_session.h"
34 #include "dc_session.h"
35 #include "dc_datapath.h"
36 #include "dc_stats.h"
37 #include "lac_mem_pools.h"
38 #include "lac_log.h"
39 #include "sal_types_compression.h"
40 #include "lac_buffer_desc.h"
41 #include "sal_service_state.h"
42 #include "sal_qat_cmn_msg.h"
43 #include "lac_sym_qat_hash_defs_lookup.h"
44 #include "sal_string_parse.h"
45 #include "lac_sym.h"
46 #include "lac_session.h"
47 #include "lac_sym_qat.h"
48 #include "lac_sym_hash.h"
49 #include "lac_sym_alg_chain.h"
50 #include "lac_sym_auth_enc.h"
51 
52 CpaStatus
cpaDcChainGetSessionSize(CpaInstanceHandle dcInstance,CpaDcChainOperations operation,Cpa8U numSessions,CpaDcChainSessionSetupData * pSessionData,Cpa32U * pSessionSize)53 cpaDcChainGetSessionSize(CpaInstanceHandle dcInstance,
54 			 CpaDcChainOperations operation,
55 			 Cpa8U numSessions,
56 			 CpaDcChainSessionSetupData *pSessionData,
57 			 Cpa32U *pSessionSize)
58 
59 {
60 	return CPA_STATUS_UNSUPPORTED;
61 }
62 
63 CpaStatus
cpaDcChainInitSession(CpaInstanceHandle dcInstance,CpaDcSessionHandle pSessionHandle,CpaDcChainOperations operation,Cpa8U numSessions,CpaDcChainSessionSetupData * pSessionData,CpaDcCallbackFn callbackFn)64 cpaDcChainInitSession(CpaInstanceHandle dcInstance,
65 		      CpaDcSessionHandle pSessionHandle,
66 		      CpaDcChainOperations operation,
67 		      Cpa8U numSessions,
68 		      CpaDcChainSessionSetupData *pSessionData,
69 		      CpaDcCallbackFn callbackFn)
70 
71 {
72 	return CPA_STATUS_UNSUPPORTED;
73 }
74 
75 CpaStatus
cpaDcChainRemoveSession(const CpaInstanceHandle dcInstance,CpaDcSessionHandle pSessionHandle)76 cpaDcChainRemoveSession(const CpaInstanceHandle dcInstance,
77 			CpaDcSessionHandle pSessionHandle)
78 {
79 	return CPA_STATUS_UNSUPPORTED;
80 }
81 
82 CpaStatus
cpaDcChainResetSession(const CpaInstanceHandle dcInstance,CpaDcSessionHandle pSessionHandle)83 cpaDcChainResetSession(const CpaInstanceHandle dcInstance,
84 		       CpaDcSessionHandle pSessionHandle)
85 {
86 	return CPA_STATUS_UNSUPPORTED;
87 }
88 
89 CpaStatus
cpaDcChainPerformOp(CpaInstanceHandle dcInstance,CpaDcSessionHandle pSessionHandle,CpaBufferList * pSrcBuff,CpaBufferList * pDestBuff,CpaDcChainOperations operation,Cpa8U numOpDatas,CpaDcChainOpData * pChainOpData,CpaDcChainRqResults * pResults,void * callbackTag)90 cpaDcChainPerformOp(CpaInstanceHandle dcInstance,
91 		    CpaDcSessionHandle pSessionHandle,
92 		    CpaBufferList *pSrcBuff,
93 		    CpaBufferList *pDestBuff,
94 		    CpaDcChainOperations operation,
95 		    Cpa8U numOpDatas,
96 		    CpaDcChainOpData *pChainOpData,
97 		    CpaDcChainRqResults *pResults,
98 		    void *callbackTag)
99 {
100 	return CPA_STATUS_UNSUPPORTED;
101 }
102