Lines Matching refs:chcr_req

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