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()
2443 struct chcr_wr *chcr_req; in create_authenc_wr() local
2478 - sizeof(chcr_req->key_ctx); in create_authenc_wr()
2499 chcr_req = __skb_put_zero(skb, transhdr_len); in create_authenc_wr()
2508 chcr_req->sec_cpl.op_ivinsrtofst = in create_authenc_wr()
2510 chcr_req->sec_cpl.pldlen = htonl(req->assoclen + IV + req->cryptlen); in create_authenc_wr()
2511 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI( in create_authenc_wr()
2516 chcr_req->sec_cpl.cipherstop_lo_authinsert = FILL_SEC_CPL_AUTHINSERT( in create_authenc_wr()
2525 chcr_req->sec_cpl.seqno_numivs = FILL_SEC_CPL_SCMD0_SEQNO(reqctx->op, in create_authenc_wr()
2530 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1, in create_authenc_wr()
2533 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr; in create_authenc_wr()
2537 memcpy(chcr_req->key_ctx.key, aeadctx->key, in create_authenc_wr()
2540 memcpy(chcr_req->key_ctx.key, actx->dec_rrkey, in create_authenc_wr()
2543 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), in create_authenc_wr()
2545 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len); in create_authenc_wr()
2563 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_authenc_wr()
3041 struct chcr_wr *chcr_req; in create_aead_ccm_wr() local
3096 chcr_req = __skb_put_zero(skb, transhdr_len); in create_aead_ccm_wr()
3098 fill_sec_cpl_for_aead(&chcr_req->sec_cpl, dst_size, req, reqctx->op); in create_aead_ccm_wr()
3100 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr; in create_aead_ccm_wr()
3101 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len); in create_aead_ccm_wr()
3102 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), in create_aead_ccm_wr()
3105 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len); in create_aead_ccm_wr()
3118 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, 0, in create_aead_ccm_wr()
3140 struct chcr_wr *chcr_req; in create_gcm_wr() local
3189 chcr_req = __skb_put_zero(skb, transhdr_len); in create_gcm_wr()
3193 chcr_req->sec_cpl.op_ivinsrtofst = FILL_SEC_CPL_OP_IVINSR( in create_gcm_wr()
3195 chcr_req->sec_cpl.pldlen = in create_gcm_wr()
3197 chcr_req->sec_cpl.aadstart_cipherstop_hi = FILL_SEC_CPL_CIPHERSTOP_HI( in create_gcm_wr()
3201 chcr_req->sec_cpl.cipherstop_lo_authinsert = in create_gcm_wr()
3204 chcr_req->sec_cpl.seqno_numivs = in create_gcm_wr()
3210 chcr_req->sec_cpl.ivgen_hdrlen = FILL_SEC_CPL_IVGEN_HDRLEN(0, 0, 1, in create_gcm_wr()
3212 chcr_req->key_ctx.ctx_hdr = aeadctx->key_ctx_hdr; in create_gcm_wr()
3213 memcpy(chcr_req->key_ctx.key, aeadctx->key, aeadctx->enckey_len); in create_gcm_wr()
3214 memcpy(chcr_req->key_ctx.key + roundup(aeadctx->enckey_len, 16), in create_gcm_wr()
3217 phys_cpl = (struct cpl_rx_phys_dsgl *)((u8 *)(chcr_req + 1) + kctx_len); in create_gcm_wr()
3236 create_wreq(a_ctx(tfm), chcr_req, &req->base, reqctx->imm, size, in create_gcm_wr()