Lines Matching refs:head_size
184 int head_size = TO_HEAD_SIZE(req_type); in add_comp_head() local
188 ret = sg_copy_from_buffer(dst, sg_nents(dst), head, head_size); in add_comp_head()
189 if (unlikely(ret != head_size)) { in add_comp_head()
194 return head_size; in add_comp_head()
219 size_t head_size, bool is_comp) in hisi_zip_create_req() argument
244 req_cache->dskip = head_size; in hisi_zip_create_req()
246 req_cache->sskip = head_size; in hisi_zip_create_req()
417 u32 status, dlen, head_size; in hisi_zip_acomp_cb() local
435 head_size = (qp->alg_type == 0) ? TO_HEAD_SIZE(qp->req_type) : 0; in hisi_zip_acomp_cb()
436 acomp_req->dlen = dlen + head_size; in hisi_zip_acomp_cb()
450 int head_size; in hisi_zip_acompress() local
454 head_size = add_comp_head(acomp_req->dst, qp_ctx->qp->req_type); in hisi_zip_acompress()
455 if (unlikely(head_size < 0)) { in hisi_zip_acompress()
457 head_size); in hisi_zip_acompress()
458 return head_size; in hisi_zip_acompress()
461 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, true); in hisi_zip_acompress()
480 int head_size, ret; in hisi_zip_adecompress() local
482 head_size = get_comp_head_size(acomp_req, qp_ctx->qp->req_type); in hisi_zip_adecompress()
483 if (unlikely(head_size < 0)) { in hisi_zip_adecompress()
485 head_size); in hisi_zip_adecompress()
486 return head_size; in hisi_zip_adecompress()
489 req = hisi_zip_create_req(acomp_req, qp_ctx, head_size, false); in hisi_zip_adecompress()