Lines Matching refs:req_ctx
508 struct cipher_req_ctx *req_ctx, in cc_setup_readiv_desc() argument
516 int direction = req_ctx->gen_ctx.op_type; in cc_setup_readiv_desc()
517 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_readiv_desc()
564 struct cipher_req_ctx *req_ctx, in cc_setup_state_desc() argument
573 int direction = req_ctx->gen_ctx.op_type; in cc_setup_state_desc()
574 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_state_desc()
608 struct cipher_req_ctx *req_ctx, in cc_setup_xex_state_desc() argument
617 int direction = req_ctx->gen_ctx.op_type; in cc_setup_xex_state_desc()
620 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_xex_state_desc()
686 struct cipher_req_ctx *req_ctx, in cc_setup_key_desc() argument
694 int direction = req_ctx->gen_ctx.op_type; in cc_setup_key_desc()
768 struct cipher_req_ctx *req_ctx, in cc_setup_mlli_desc() argument
776 if (req_ctx->dma_buf_type == CC_DMA_BUF_MLLI) { in cc_setup_mlli_desc()
779 &req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
780 req_ctx->mlli_params.mlli_len, in cc_setup_mlli_desc()
784 req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
785 req_ctx->mlli_params.mlli_len, NS_BIT); in cc_setup_mlli_desc()
788 req_ctx->mlli_params.mlli_len); in cc_setup_mlli_desc()
795 struct cipher_req_ctx *req_ctx, in cc_setup_flow_desc() argument
807 if (req_ctx->dma_buf_type == CC_DMA_BUF_DLLI) { in cc_setup_flow_desc()
826 req_ctx->in_mlli_nents, NS_BIT); in cc_setup_flow_desc()
827 if (req_ctx->out_nents == 0) { in cc_setup_flow_desc()
833 req_ctx->in_mlli_nents, NS_BIT, in cc_setup_flow_desc()
839 (u32)LLI_ENTRY_BYTE_SIZE * req_ctx->in_nents); in cc_setup_flow_desc()
843 req_ctx->in_mlli_nents)), in cc_setup_flow_desc()
844 req_ctx->out_mlli_nents, NS_BIT, in cc_setup_flow_desc()
860 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_complete() local
866 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_complete()
867 memcpy(req->iv, req_ctx->iv, ivsize); in cc_cipher_complete()
868 kfree_sensitive(req_ctx->iv); in cc_cipher_complete()
879 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_process() local
924 req_ctx->iv = kmemdup(iv, ivsize, flags); in cc_cipher_process()
925 if (!req_ctx->iv) { in cc_cipher_process()
942 req_ctx->gen_ctx.op_type = direction; in cc_cipher_process()
946 rc = cc_map_cipher_request(ctx_p->drvdata, req_ctx, ivsize, nbytes, in cc_cipher_process()
947 req_ctx->iv, src, dst, flags); in cc_cipher_process()
956 cc_setup_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
958 cc_setup_mlli_desc(tfm, req_ctx, dst, src, nbytes, req, desc, &seq_len); in cc_cipher_process()
960 cc_setup_key_desc(tfm, req_ctx, nbytes, desc, &seq_len); in cc_cipher_process()
962 cc_setup_xex_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
964 cc_setup_flow_desc(tfm, req_ctx, dst, src, nbytes, desc, &seq_len); in cc_cipher_process()
966 cc_setup_readiv_desc(tfm, req_ctx, ivsize, desc, &seq_len); in cc_cipher_process()
976 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_process()
981 kfree_sensitive(req_ctx->iv); in cc_cipher_process()
989 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_encrypt() local
991 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_encrypt()
998 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_decrypt() local
1000 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_decrypt()