1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2019 HiSilicon Limited. */
7 #define pr_fmt(fmt) "hisi_zip: " fmt
9 #include <linux/list.h>
12 enum hisi_zip_error_type
{
13 /* negative compression */
20 atomic64_t send_busy_cnt
;
21 atomic64_t err_bd_cnt
;
28 struct hisi_zip_ctrl
*ctrl
;
29 struct hisi_zip_dfx dfx
;
37 u32 input_data_length
;
55 u32 stream_ctx_addr_l
;
56 u32 stream_ctx_addr_h
;
57 u32 cipher_key1_addr_l
;
58 u32 cipher_key1_addr_h
;
59 u32 cipher_key2_addr_l
;
60 u32 cipher_key2_addr_h
;
64 int zip_create_qps(struct hisi_qp
**qps
, int ctx_num
, int node
);
65 int hisi_zip_register_to_crypto(void);
66 void hisi_zip_unregister_from_crypto(void);