Lines Matching refs:wrparam
805 static struct sk_buff *create_cipher_wr(struct cipher_wr_param *wrparam) in create_cipher_wr() argument
807 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(wrparam->req); in create_cipher_wr()
816 skcipher_request_ctx(wrparam->req); in create_cipher_wr()
821 gfp_t flags = wrparam->req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ? in create_cipher_wr()
827 nents = sg_nents_xlen(reqctx->dstsg, wrparam->bytes, CHCR_DST_SG_SIZE, in create_cipher_wr()
832 nents = sg_nents_xlen(reqctx->srcsg, wrparam->bytes, in create_cipher_wr()
834 temp = reqctx->imm ? roundup(wrparam->bytes, 16) : in create_cipher_wr()
847 chcr_req->sec_cpl.pldlen = htonl(IV + wrparam->bytes); in create_cipher_wr()
883 chcr_add_cipher_src_ent(wrparam->req, ulptx, wrparam); in create_cipher_wr()
884 chcr_add_cipher_dst_ent(wrparam->req, phys_cpl, wrparam, wrparam->qid); in create_cipher_wr()
888 + (reqctx->imm ? (wrparam->bytes) : 0); in create_cipher_wr()
889 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, in create_cipher_wr()
896 sg_pcopy_to_buffer(wrparam->req->src, in create_cipher_wr()
897 sg_nents(wrparam->req->src), wrparam->req->iv, 16, in create_cipher_wr()
898 reqctx->processed + wrparam->bytes - AES_BLOCK_SIZE); in create_cipher_wr()
1174 struct cipher_wr_param wrparam; in chcr_handle_cipher_resp() local
1216 wrparam.qid = u_ctx->lldi.rxq_ids[reqctx->rxqidx]; in chcr_handle_cipher_resp()
1217 wrparam.req = req; in chcr_handle_cipher_resp()
1218 wrparam.bytes = bytes; in chcr_handle_cipher_resp()
1219 skb = create_cipher_wr(&wrparam); in chcr_handle_cipher_resp()
1259 struct cipher_wr_param wrparam; in process_cipher() local
1350 wrparam.qid = qid; in process_cipher()
1351 wrparam.req = req; in process_cipher()
1352 wrparam.bytes = bytes; in process_cipher()
1353 *skb = create_cipher_wr(&wrparam); in process_cipher()
2733 struct cipher_wr_param *wrparam) in chcr_add_cipher_src_ent() argument
2743 buf, wrparam->bytes, reqctx->processed); in chcr_add_cipher_src_ent()
2746 ulptx_walk_add_sg(&ulp_walk, reqctx->srcsg, wrparam->bytes, in chcr_add_cipher_src_ent()
2756 struct cipher_wr_param *wrparam, in chcr_add_cipher_dst_ent() argument
2760 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(wrparam->req); in chcr_add_cipher_dst_ent()
2768 dsgl_walk_add_sg(&dsgl_walk, reqctx->dstsg, wrparam->bytes, in chcr_add_cipher_dst_ent()