Lines Matching refs:req_ctx
511 struct cipher_req_ctx *req_ctx, in cc_setup_readiv_desc() argument
519 int direction = req_ctx->gen_ctx.op_type; in cc_setup_readiv_desc()
520 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_readiv_desc()
567 struct cipher_req_ctx *req_ctx, in cc_setup_state_desc() argument
576 int direction = req_ctx->gen_ctx.op_type; in cc_setup_state_desc()
577 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_state_desc()
611 struct cipher_req_ctx *req_ctx, in cc_setup_xex_state_desc() argument
620 int direction = req_ctx->gen_ctx.op_type; in cc_setup_xex_state_desc()
623 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_xex_state_desc()
689 struct cipher_req_ctx *req_ctx, in cc_setup_key_desc() argument
697 int direction = req_ctx->gen_ctx.op_type; in cc_setup_key_desc()
771 struct cipher_req_ctx *req_ctx, in cc_setup_mlli_desc() argument
779 if (req_ctx->dma_buf_type == CC_DMA_BUF_MLLI) { in cc_setup_mlli_desc()
782 &req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
783 req_ctx->mlli_params.mlli_len, in cc_setup_mlli_desc()
787 req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
788 req_ctx->mlli_params.mlli_len, NS_BIT); in cc_setup_mlli_desc()
791 req_ctx->mlli_params.mlli_len); in cc_setup_mlli_desc()
798 struct cipher_req_ctx *req_ctx, in cc_setup_flow_desc() argument
810 if (req_ctx->dma_buf_type == CC_DMA_BUF_DLLI) { in cc_setup_flow_desc()
829 req_ctx->in_mlli_nents, NS_BIT); in cc_setup_flow_desc()
830 if (req_ctx->out_nents == 0) { in cc_setup_flow_desc()
836 req_ctx->in_mlli_nents, NS_BIT, in cc_setup_flow_desc()
842 (u32)LLI_ENTRY_BYTE_SIZE * req_ctx->in_nents); in cc_setup_flow_desc()
846 req_ctx->in_mlli_nents)), in cc_setup_flow_desc()
847 req_ctx->out_mlli_nents, NS_BIT, in cc_setup_flow_desc()
863 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_complete() local
869 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_complete()
870 memcpy(req->iv, req_ctx->iv, ivsize); in cc_cipher_complete()
871 kfree_sensitive(req_ctx->iv); in cc_cipher_complete()
882 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_process() local
927 req_ctx->iv = kmemdup(iv, ivsize, flags); in cc_cipher_process()
928 if (!req_ctx->iv) { in cc_cipher_process()
945 req_ctx->gen_ctx.op_type = direction; in cc_cipher_process()
949 rc = cc_map_cipher_request(ctx_p->drvdata, req_ctx, ivsize, nbytes, in cc_cipher_process()
950 req_ctx->iv, src, dst, flags); in cc_cipher_process()
959 cc_setup_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
961 cc_setup_mlli_desc(tfm, req_ctx, dst, src, nbytes, req, desc, &seq_len); in cc_cipher_process()
963 cc_setup_key_desc(tfm, req_ctx, nbytes, desc, &seq_len); in cc_cipher_process()
965 cc_setup_xex_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
967 cc_setup_flow_desc(tfm, req_ctx, dst, src, nbytes, desc, &seq_len); in cc_cipher_process()
969 cc_setup_readiv_desc(tfm, req_ctx, ivsize, desc, &seq_len); in cc_cipher_process()
979 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_process()
984 kfree_sensitive(req_ctx->iv); in cc_cipher_process()
992 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_encrypt() local
994 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_encrypt()
1001 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_decrypt() local
1003 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_decrypt()