Lines Matching refs:sqe
122 static void hisi_zip_config_buf_type(struct hisi_zip_sqe *sqe, u8 buf_type) in hisi_zip_config_buf_type() argument
126 val = (sqe->dw9) & ~HZIP_BUF_TYPE_M; in hisi_zip_config_buf_type()
128 sqe->dw9 = val; in hisi_zip_config_buf_type()
131 static void hisi_zip_config_tag(struct hisi_zip_sqe *sqe, u32 tag) in hisi_zip_config_tag() argument
133 sqe->tag = tag; in hisi_zip_config_tag()
136 static void hisi_zip_fill_sqe(struct hisi_zip_sqe *sqe, u8 req_type, in hisi_zip_fill_sqe() argument
140 memset(sqe, 0, sizeof(struct hisi_zip_sqe)); in hisi_zip_fill_sqe()
142 sqe->input_data_length = slen - sskip; in hisi_zip_fill_sqe()
143 sqe->dw7 = FIELD_PREP(HZIP_IN_SGE_DATA_OFFSET_M, sskip); in hisi_zip_fill_sqe()
144 sqe->dw8 = FIELD_PREP(HZIP_OUT_SGE_DATA_OFFSET_M, dskip); in hisi_zip_fill_sqe()
145 sqe->dw9 = FIELD_PREP(HZIP_REQ_TYPE_M, req_type); in hisi_zip_fill_sqe()
146 sqe->dest_avail_out = dlen - dskip; in hisi_zip_fill_sqe()
147 sqe->source_addr_l = lower_32_bits(s_addr); in hisi_zip_fill_sqe()
148 sqe->source_addr_h = upper_32_bits(s_addr); in hisi_zip_fill_sqe()
149 sqe->dest_addr_l = lower_32_bits(d_addr); in hisi_zip_fill_sqe()
150 sqe->dest_addr_h = upper_32_bits(d_addr); in hisi_zip_fill_sqe()
352 struct hisi_zip_sqe *sqe = data; in hisi_zip_acomp_cb() local
356 struct hisi_zip_req *req = req_q->q + sqe->tag; in hisi_zip_acomp_cb()
363 status = sqe->dw3 & HZIP_BD_STATUS_M; in hisi_zip_acomp_cb()
367 sqe->produced); in hisi_zip_acomp_cb()
371 dlen = sqe->produced; in hisi_zip_acomp_cb()