Lines Matching refs:sqe

71 	void (*fill_addr)(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req);
72 void (*fill_buf_size)(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req);
73 void (*fill_buf_type)(struct hisi_zip_sqe *sqe, u8 buf_type);
74 void (*fill_req_type)(struct hisi_zip_sqe *sqe, u8 req_type);
75 void (*fill_tag)(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req);
76 void (*fill_sqe_type)(struct hisi_zip_sqe *sqe, u8 sqe_type);
77 u32 (*get_tag)(struct hisi_zip_sqe *sqe);
78 u32 (*get_status)(struct hisi_zip_sqe *sqe);
79 u32 (*get_dstlen)(struct hisi_zip_sqe *sqe);
148 static void hisi_zip_fill_addr(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req)
150 sqe->source_addr_l = lower_32_bits(req->dma_src);
151 sqe->source_addr_h = upper_32_bits(req->dma_src);
152 sqe->dest_addr_l = lower_32_bits(req->dma_dst);
153 sqe->dest_addr_h = upper_32_bits(req->dma_dst);
156 static void hisi_zip_fill_buf_size(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req)
160 sqe->input_data_length = a_req->slen;
161 sqe->dest_avail_out = a_req->dlen;
164 static void hisi_zip_fill_buf_type(struct hisi_zip_sqe *sqe, u8 buf_type)
168 val = sqe->dw9 & ~HZIP_BUF_TYPE_M;
170 sqe->dw9 = val;
173 static void hisi_zip_fill_req_type(struct hisi_zip_sqe *sqe, u8 req_type)
177 val = sqe->dw9 & ~HZIP_REQ_TYPE_M;
179 sqe->dw9 = val;
182 static void hisi_zip_fill_tag(struct hisi_zip_sqe *sqe, struct hisi_zip_req *req)
184 sqe->dw26 = req->req_id;
187 static void hisi_zip_fill_sqe_type(struct hisi_zip_sqe *sqe, u8 sqe_type)
191 val = sqe->dw7 & ~HZIP_SQE_TYPE_M;
193 sqe->dw7 = val;
196 static void hisi_zip_fill_sqe(struct hisi_zip_ctx *ctx, struct hisi_zip_sqe *sqe,
201 memset(sqe, 0, sizeof(struct hisi_zip_sqe));
203 ops->fill_addr(sqe, req);
204 ops->fill_buf_size(sqe, req);
205 ops->fill_buf_type(sqe, HZIP_SGL);
206 ops->fill_req_type(sqe, req_type);
207 ops->fill_tag(sqe, req);
208 ops->fill_sqe_type(sqe, ops->sqe_type);
264 static u32 hisi_zip_get_tag(struct hisi_zip_sqe *sqe)
266 return sqe->dw26;
269 static u32 hisi_zip_get_status(struct hisi_zip_sqe *sqe)
271 return sqe->dw3 & HZIP_BD_STATUS_M;
274 static u32 hisi_zip_get_dstlen(struct hisi_zip_sqe *sqe)
276 return sqe->produced;
286 struct hisi_zip_sqe *sqe = data;
287 u32 tag = ops->get_tag(sqe);
294 status = ops->get_status(sqe);
298 sqe->produced);
306 acomp_req->dlen = ops->get_dstlen(sqe);
413 /* alg_type = 0 for compress, 1 for decompress in hw sqe */