Lines Matching refs:param
1567 struct hash_wr_param *param)
1586 transhdr_len = HASH_TRANSHDR_SIZE(param->kctx_len);
1587 req_ctx->hctx_wr.imm = (transhdr_len + param->bfr_len +
1588 param->sg_len) <= SGE_MAX_WR_LEN;
1589 nents = sg_nents_xlen(req_ctx->hctx_wr.srcsg, param->sg_len,
1591 nents += param->bfr_len ? 1 : 0;
1592 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len +
1593 param->sg_len, 16) : (sgl_len(nents) * 8);
1604 chcr_req->sec_cpl.pldlen = htonl(param->bfr_len + param->sg_len);
1611 FILL_SEC_CPL_SCMD0_SEQNO(0, 0, 0, param->alg_prm.auth_mode,
1612 param->opad_needed, 0);
1615 FILL_SEC_CPL_IVGEN_HDRLEN(param->last, param->more, 0, 1, 0, 0);
1618 param->alg_prm.result_size);
1620 if (param->opad_needed)
1622 ((param->alg_prm.result_size <= 32) ? 32 :
1624 hmacctx->opad, param->alg_prm.result_size);
1627 param->alg_prm.mk_size, 0,
1628 param->opad_needed,
1629 ((param->kctx_len +
1631 chcr_req->sec_cpl.scmd1 = cpu_to_be64((u64)param->scmd1);
1632 ulptx = (struct ulptx_sgl *)((u8 *)(chcr_req + 1) + param->kctx_len +
1634 if (param->bfr_len != 0) {
1637 param->bfr_len, DMA_TO_DEVICE);
1643 req_ctx->hctx_wr.dma_len = param->bfr_len;
1647 chcr_add_hash_src_ent(req, ulptx, param);
1649 temp = param->kctx_len + DUMMY_BYTES + (req_ctx->hctx_wr.imm ?
1650 (param->sg_len + param->bfr_len) : 0);
1653 param->hash_size, transhdr_len,
2777 struct hash_wr_param *param)
2785 if (param->bfr_len) {
2786 memcpy(buf, reqctx->reqbfr, param->bfr_len);
2787 buf += param->bfr_len;
2792 param->sg_len, 0);
2795 if (param->bfr_len)
2796 ulptx_walk_add_page(&ulp_walk, param->bfr_len,
2799 param->sg_len, reqctx->hctx_wr.src_ofst);
3563 struct algo_param param;
3577 if (get_alg_config(¶m, max_authsize)) {
3624 o_ptr = actx->h_iopad + param.result_size + align;
3657 chcr_change_order(actx->h_iopad, param.result_size);
3658 chcr_change_order(o_ptr, param.result_size);
3661 (param.result_size + align) * 2;
3662 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, param.mk_size,
3664 actx->auth_mode = param.auth_mode;