Lines Matching refs:chcr_req
760 struct chcr_wr *chcr_req,
781 chcr_req->wreq.op_to_cctx_size = FILL_WR_OP_CCTX_SIZE;
782 chcr_req->wreq.pld_size_hash_size =
784 chcr_req->wreq.len16_pkd =
786 chcr_req->wreq.cookie = cpu_to_be64((uintptr_t)req);
787 chcr_req->wreq.rx_chid_to_rx_q_id = FILL_WR_RX_Q_ID(rx_channel_id, qid,
790 chcr_req->ulptx.cmd_dest = FILL_ULPTX_CMD_DEST(tx_channel_id, fid);
791 chcr_req->ulptx.len = htonl((DIV_ROUND_UP(len16, 16) -
792 ((sizeof(chcr_req->wreq)) >> 4)));
793 chcr_req->sc_imm.cmd_more = FILL_CMD_MORE(!imm);
794 chcr_req->sc_imm.len = cpu_to_be32(sizeof(struct cpl_tx_sec_pdu) +
795 sizeof(chcr_req->key_ctx) + sc_len);
812 struct chcr_wr *chcr_req;
843 chcr_req = __skb_put_zero(skb, transhdr_len);
844 chcr_req->sec_cpl.op_ivinsrtofst =
847 chcr_req->sec_cpl.pldlen = htonl(IV + wrparam->bytes);
848 chcr_req->sec_cpl.aadstart_cipherstop_hi =
851 chcr_req->sec_cpl.cipherstop_lo_authinsert =
853 chcr_req->sec_cpl.seqno_numivs = FILL_SEC_CPL_SCMD0_SEQNO(reqctx->op, 0,
856 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 0,
859 chcr_req->key_ctx.ctx_hdr = ablkctx->key_ctx_hdr;
865 generate_copy_rrkey(ablkctx, &chcr_req->key_ctx);
869 memcpy(chcr_req->key_ctx.key, ablkctx->key,
872 memcpy(chcr_req->key_ctx.key, ablkctx->key +
875 memcpy(chcr_req->key_ctx.key +
881 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
889 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0,
1575 struct chcr_wr *chcr_req;
1599 chcr_req = __skb_put_zero(skb, transhdr_len);
1601 chcr_req->sec_cpl.op_ivinsrtofst =
1604 chcr_req->sec_cpl.pldlen = htonl(param->bfr_len + param->sg_len);
1606 chcr_req->sec_cpl.aadstart_cipherstop_hi =
1608 chcr_req->sec_cpl.cipherstop_lo_authinsert =
1610 chcr_req->sec_cpl.seqno_numivs =
1614 chcr_req->sec_cpl.ivgen_hdrlen =
1617 memcpy(chcr_req->key_ctx.key, req_ctx->partial_hash,
1621 memcpy(chcr_req->key_ctx.key +
1626 chcr_req->key_ctx.ctx_hdr = FILL_KEY_CTX_HDR(CHCR_KEYCTX_NO_KEY,
1630 sizeof(chcr_req->key_ctx)) >> 4));
1631 chcr_req->sec_cpl.scmd1 = cpu_to_be64((u64)param->scmd1);
1632 ulptx = (struct ulptx_sgl *)((u8 *)(chcr_req + 1) + param->kctx_len +
1652 create_wreq(h_ctx(tfm), chcr_req, &req->base, req_ctx->hctx_wr.imm,
2449 struct chcr_wr *chcr_req;
2484 - sizeof(chcr_req->key_ctx);
2505 chcr_req = __skb_put_zero(skb, transhdr_len);
2514 chcr_req->sec_cpl.op_ivinsrtofst =
2516 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen);
2517 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI(
2522 chcr_req->sec_cpl.cipherstop_lo_authinsert = FILL_SEC_CPL_AUTHINSERT(
2531 chcr_req->sec_cpl.seqno_numivs = FILL_SEC_CPL_SCMD0_SEQNO(reqctx->op,
2536 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1,
2539 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
2543 memcpy(chcr_req->key_ctx.key, aeadctx->key,
2546 memcpy(chcr_req->key_ctx.key, actx->dec_rrkey,
2549 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
2551 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
2569 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size,
3047 struct chcr_wr *chcr_req;
3102 chcr_req = __skb_put_zero(skb, transhdr_len);
3104 fill_sec_cpl_for_aead(&chcr_req->sec_cpl, dst_size, req, reqctx->op);
3106 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
3107 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len);
3108 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
3111 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
3124 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, 0,
3146 struct chcr_wr *chcr_req;
3195 chcr_req = __skb_put_zero(skb, transhdr_len);
3199 chcr_req->sec_cpl.op_ivinsrtofst = FILL_SEC_CPL_OP_IVINSR(
3201 chcr_req->sec_cpl.pldlen =
3203 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI(
3207 chcr_req->sec_cpl.cipherstop_lo_authinsert =
3210 chcr_req->sec_cpl.seqno_numivs =
3216 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1,
3218 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
3219 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len);
3220 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
3223 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
3242 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size,