Lines Matching refs:param

1558  *	@param: Container for create_hash_wr()'s parameters
1561 struct hash_wr_param *param)
1580 transhdr_len = HASH_TRANSHDR_SIZE(param->kctx_len);
1581 req_ctx->hctx_wr.imm = (transhdr_len + param->bfr_len +
1582 param->sg_len) <= SGE_MAX_WR_LEN;
1583 nents = sg_nents_xlen(req_ctx->hctx_wr.srcsg, param->sg_len,
1585 nents += param->bfr_len ? 1 : 0;
1586 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len +
1587 param->sg_len, 16) : (sgl_len(nents) * 8);
1598 chcr_req->sec_cpl.pldlen = htonl(param->bfr_len + param->sg_len);
1605 FILL_SEC_CPL_SCMD0_SEQNO(0, 0, 0, param->alg_prm.auth_mode,
1606 param->opad_needed, 0);
1609 FILL_SEC_CPL_IVGEN_HDRLEN(param->last, param->more, 0, 1, 0, 0);
1612 param->alg_prm.result_size);
1614 if (param->opad_needed)
1616 ((param->alg_prm.result_size <= 32) ? 32 :
1618 hmacctx->opad, param->alg_prm.result_size);
1621 param->alg_prm.mk_size, 0,
1622 param->opad_needed,
1623 ((param->kctx_len +
1625 chcr_req->sec_cpl.scmd1 = cpu_to_be64((u64)param->scmd1);
1626 ulptx = (struct ulptx_sgl *)((u8 *)(chcr_req + 1) + param->kctx_len +
1628 if (param->bfr_len != 0) {
1631 param->bfr_len, DMA_TO_DEVICE);
1637 req_ctx->hctx_wr.dma_len = param->bfr_len;
1641 chcr_add_hash_src_ent(req, ulptx, param);
1643 temp = param->kctx_len + DUMMY_BYTES + (req_ctx->hctx_wr.imm ?
1644 (param->sg_len + param->bfr_len) : 0);
1647 param->hash_size, transhdr_len,
2772 struct hash_wr_param *param)
2780 if (param->bfr_len) {
2781 memcpy(buf, reqctx->reqbfr, param->bfr_len);
2782 buf += param->bfr_len;
2787 param->sg_len, 0);
2790 if (param->bfr_len)
2791 ulptx_walk_add_page(&ulp_walk, param->bfr_len,
2794 param->sg_len, reqctx->hctx_wr.src_ofst);
3559 struct algo_param param;
3573 if (get_alg_config(&param, max_authsize)) {
3620 o_ptr = actx->h_iopad + param.result_size + align;
3653 chcr_change_order(actx->h_iopad, param.result_size);
3654 chcr_change_order(o_ptr, param.result_size);
3657 (param.result_size + align) * 2;
3658 aeadctx->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, param.mk_size,
3660 actx->auth_mode = param.auth_mode;