{
        struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
        struct cvm_enc_ctx *ctx = crypto_skcipher_ctx(tfm);
-       struct cvm_req_ctx *rctx = skcipher_request_ctx(req);
+       struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req);
        struct fc_context *fctx = &rctx->fctx;
        u32 enc_iv_len = crypto_skcipher_ivsize(tfm);
        struct cpt_request_info *req_info = &rctx->cpt_req;
 static inline u32 create_input_list(struct skcipher_request  *req, u32 enc,
                                    u32 enc_iv_len)
 {
-       struct cvm_req_ctx *rctx = skcipher_request_ctx(req);
+       struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req);
        struct cpt_request_info *req_info = &rctx->cpt_req;
        u32 argcnt =  0;
 
 static inline void create_output_list(struct skcipher_request *req,
                                      u32 enc_iv_len)
 {
-       struct cvm_req_ctx *rctx = skcipher_request_ctx(req);
+       struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req);
        struct cpt_request_info *req_info = &rctx->cpt_req;
        u32 argcnt = 0;
 
 static inline int cvm_enc_dec(struct skcipher_request *req, u32 enc)
 {
        struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
-       struct cvm_req_ctx *rctx = skcipher_request_ctx(req);
+       struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req);
        u32 enc_iv_len = crypto_skcipher_ivsize(tfm);
        struct fc_context *fctx = &rctx->fctx;
        struct cpt_request_info *req_info = &rctx->cpt_req;
 
 static int cvm_enc_dec_init(struct crypto_skcipher *tfm)
 {
-       crypto_skcipher_set_reqsize(tfm, sizeof(struct cvm_req_ctx));
+       crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct cvm_req_ctx));
 
        return 0;
 }
 
 
 static int nitrox_rfc4106_set_aead_rctx_sglist(struct aead_request *areq)
 {
-       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx(areq);
+       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx_dma(areq);
        struct nitrox_aead_rctx *aead_rctx = &rctx->base;
        unsigned int assoclen = areq->assoclen - GCM_RFC4106_IV_SIZE;
        struct scatterlist *sg;
 static void nitrox_rfc4106_callback(void *arg, int err)
 {
        struct aead_request *areq = arg;
-       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx(areq);
+       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx_dma(areq);
        struct nitrox_kcrypt_request *nkreq = &rctx->base.nkreq;
 
        free_src_sglist(nkreq);
 {
        struct crypto_aead *aead = crypto_aead_reqtfm(areq);
        struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
-       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx(areq);
+       struct nitrox_rfc4106_rctx *rctx = aead_request_ctx_dma(areq);
        struct nitrox_aead_rctx *aead_rctx = &rctx->base;
        struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
        int ret;
 static int nitrox_rfc4106_dec(struct aead_request *areq)
 {
        struct crypto_aead *aead = crypto_aead_reqtfm(areq);
-       struct nitrox_crypto_ctx *nctx = crypto_aead_ctx(aead);
+       struct nitrox_crypto_ctx *nctx = crypto_aead_ctx_dma(aead);
        struct nitrox_rfc4106_rctx *rctx = aead_request_ctx(areq);
        struct nitrox_aead_rctx *aead_rctx = &rctx->base;
        struct se_crypto_request *creq = &aead_rctx->nkreq.creq;
        if (ret)
                return ret;
 
-       crypto_aead_set_reqsize(aead, sizeof(struct aead_request) +
-                               sizeof(struct nitrox_rfc4106_rctx));
+       crypto_aead_set_reqsize_dma(aead, sizeof(struct aead_request) +
+                                         sizeof(struct nitrox_rfc4106_rctx));
 
        return 0;
 }