Lines Matching refs:chcr_req
756 struct chcr_wr *chcr_req,
777 chcr_req->wreq.op_to_cctx_size = FILL_WR_OP_CCTX_SIZE;
778 chcr_req->wreq.pld_size_hash_size =
780 chcr_req->wreq.len16_pkd =
782 chcr_req->wreq.cookie = cpu_to_be64((uintptr_t)req);
783 chcr_req->wreq.rx_chid_to_rx_q_id = FILL_WR_RX_Q_ID(rx_channel_id, qid,
786 chcr_req->ulptx.cmd_dest = FILL_ULPTX_CMD_DEST(tx_channel_id, fid);
787 chcr_req->ulptx.len = htonl((DIV_ROUND_UP(len16, 16) -
788 ((sizeof(chcr_req->wreq)) >> 4)));
789 chcr_req->sc_imm.cmd_more = FILL_CMD_MORE(!imm);
790 chcr_req->sc_imm.len = cpu_to_be32(sizeof(struct cpl_tx_sec_pdu) +
791 sizeof(chcr_req->key_ctx) + sc_len);
805 struct chcr_wr *chcr_req;
836 chcr_req = __skb_put_zero(skb, transhdr_len);
837 chcr_req->sec_cpl.op_ivinsrtofst =
840 chcr_req->sec_cpl.pldlen = htonl(IV + wrparam->bytes);
841 chcr_req->sec_cpl.aadstart_cipherstop_hi =
844 chcr_req->sec_cpl.cipherstop_lo_authinsert =
846 chcr_req->sec_cpl.seqno_numivs = FILL_SEC_CPL_SCMD0_SEQNO(reqctx->op, 0,
849 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 0,
852 chcr_req->key_ctx.ctx_hdr = ablkctx->key_ctx_hdr;
858 generate_copy_rrkey(ablkctx, &chcr_req->key_ctx);
862 memcpy(chcr_req->key_ctx.key, ablkctx->key,
865 memcpy(chcr_req->key_ctx.key, ablkctx->key +
868 memcpy(chcr_req->key_ctx.key +
874 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
882 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0,
1569 struct chcr_wr *chcr_req;
1593 chcr_req = __skb_put_zero(skb, transhdr_len);
1595 chcr_req->sec_cpl.op_ivinsrtofst =
1598 chcr_req->sec_cpl.pldlen = htonl(param->bfr_len + param->sg_len);
1600 chcr_req->sec_cpl.aadstart_cipherstop_hi =
1602 chcr_req->sec_cpl.cipherstop_lo_authinsert =
1604 chcr_req->sec_cpl.seqno_numivs =
1608 chcr_req->sec_cpl.ivgen_hdrlen =
1611 memcpy(chcr_req->key_ctx.key, req_ctx->partial_hash,
1615 memcpy(chcr_req->key_ctx.key +
1620 chcr_req->key_ctx.ctx_hdr = FILL_KEY_CTX_HDR(CHCR_KEYCTX_NO_KEY,
1624 sizeof(chcr_req->key_ctx)) >> 4));
1625 chcr_req->sec_cpl.scmd1 = cpu_to_be64((u64)param->scmd1);
1626 ulptx = (struct ulptx_sgl *)((u8 *)(chcr_req + 1) + param->kctx_len +
1646 create_wreq(h_ctx(tfm), chcr_req, &req->base, req_ctx->hctx_wr.imm,
2444 struct chcr_wr *chcr_req;
2479 - sizeof(chcr_req->key_ctx);
2500 chcr_req = __skb_put_zero(skb, transhdr_len);
2509 chcr_req->sec_cpl.op_ivinsrtofst =
2511 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen);
2512 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI(
2517 chcr_req->sec_cpl.cipherstop_lo_authinsert = FILL_SEC_CPL_AUTHINSERT(
2526 chcr_req->sec_cpl.seqno_numivs = FILL_SEC_CPL_SCMD0_SEQNO(reqctx->op,
2531 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1,
2534 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
2538 memcpy(chcr_req->key_ctx.key, aeadctx->key,
2541 memcpy(chcr_req->key_ctx.key, actx->dec_rrkey,
2544 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
2546 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
2564 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size,
3042 struct chcr_wr *chcr_req;
3097 chcr_req = __skb_put_zero(skb, transhdr_len);
3099 fill_sec_cpl_for_aead(&chcr_req->sec_cpl, dst_size, req, reqctx->op);
3101 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
3102 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len);
3103 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
3106 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
3119 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, 0,
3141 struct chcr_wr *chcr_req;
3190 chcr_req = __skb_put_zero(skb, transhdr_len);
3194 chcr_req->sec_cpl.op_ivinsrtofst = FILL_SEC_CPL_OP_IVINSR(
3196 chcr_req->sec_cpl.pldlen =
3198 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI(
3202 chcr_req->sec_cpl.cipherstop_lo_authinsert =
3205 chcr_req->sec_cpl.seqno_numivs =
3211 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1,
3213 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr;
3214 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len);
3215 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16),
3218 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len);
3237 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size,