Lines Matching refs:req_ctx
505 struct cipher_req_ctx *req_ctx, in cc_setup_readiv_desc() argument
513 int direction = req_ctx->gen_ctx.op_type; in cc_setup_readiv_desc()
514 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_readiv_desc()
561 struct cipher_req_ctx *req_ctx, in cc_setup_state_desc() argument
570 int direction = req_ctx->gen_ctx.op_type; in cc_setup_state_desc()
571 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_state_desc()
605 struct cipher_req_ctx *req_ctx, in cc_setup_xex_state_desc() argument
614 int direction = req_ctx->gen_ctx.op_type; in cc_setup_xex_state_desc()
617 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_xex_state_desc()
683 struct cipher_req_ctx *req_ctx, in cc_setup_key_desc() argument
691 int direction = req_ctx->gen_ctx.op_type; in cc_setup_key_desc()
765 struct cipher_req_ctx *req_ctx, in cc_setup_mlli_desc() argument
773 if (req_ctx->dma_buf_type == CC_DMA_BUF_MLLI) { in cc_setup_mlli_desc()
776 &req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
777 req_ctx->mlli_params.mlli_len, in cc_setup_mlli_desc()
781 req_ctx->mlli_params.mlli_dma_addr, in cc_setup_mlli_desc()
782 req_ctx->mlli_params.mlli_len, NS_BIT); in cc_setup_mlli_desc()
785 req_ctx->mlli_params.mlli_len); in cc_setup_mlli_desc()
792 struct cipher_req_ctx *req_ctx, in cc_setup_flow_desc() argument
804 if (req_ctx->dma_buf_type == CC_DMA_BUF_DLLI) { in cc_setup_flow_desc()
823 req_ctx->in_mlli_nents, NS_BIT); in cc_setup_flow_desc()
824 if (req_ctx->out_nents == 0) { in cc_setup_flow_desc()
830 req_ctx->in_mlli_nents, NS_BIT, in cc_setup_flow_desc()
836 (u32)LLI_ENTRY_BYTE_SIZE * req_ctx->in_nents); in cc_setup_flow_desc()
840 req_ctx->in_mlli_nents)), in cc_setup_flow_desc()
841 req_ctx->out_mlli_nents, NS_BIT, in cc_setup_flow_desc()
857 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_complete() local
863 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_complete()
864 memcpy(req->iv, req_ctx->iv, ivsize); in cc_cipher_complete()
865 kfree_sensitive(req_ctx->iv); in cc_cipher_complete()
876 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_process() local
921 req_ctx->iv = kmemdup(iv, ivsize, flags); in cc_cipher_process()
922 if (!req_ctx->iv) { in cc_cipher_process()
939 req_ctx->gen_ctx.op_type = direction; in cc_cipher_process()
943 rc = cc_map_cipher_request(ctx_p->drvdata, req_ctx, ivsize, nbytes, in cc_cipher_process()
944 req_ctx->iv, src, dst, flags); in cc_cipher_process()
953 cc_setup_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
955 cc_setup_mlli_desc(tfm, req_ctx, dst, src, nbytes, req, desc, &seq_len); in cc_cipher_process()
957 cc_setup_key_desc(tfm, req_ctx, nbytes, desc, &seq_len); in cc_cipher_process()
959 cc_setup_xex_state_desc(tfm, req_ctx, ivsize, nbytes, desc, &seq_len); in cc_cipher_process()
961 cc_setup_flow_desc(tfm, req_ctx, dst, src, nbytes, desc, &seq_len); in cc_cipher_process()
963 cc_setup_readiv_desc(tfm, req_ctx, ivsize, desc, &seq_len); in cc_cipher_process()
973 cc_unmap_cipher_request(dev, req_ctx, ivsize, src, dst); in cc_cipher_process()
978 kfree_sensitive(req_ctx->iv); in cc_cipher_process()
986 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_encrypt() local
988 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_encrypt()
995 struct cipher_req_ctx *req_ctx = skcipher_request_ctx(req); in cc_cipher_decrypt() local
997 memset(req_ctx, 0, sizeof(*req_ctx)); in cc_cipher_decrypt()