Lines Matching refs:req_ctx
351 struct aead_ctx *req_ctx = aead_request_ctx(req); in finish_scattered_hmac() local
356 if (req_ctx->encrypt) { in finish_scattered_hmac()
357 scatterwalk_map_and_copy(req_ctx->hmac_virt, in finish_scattered_hmac()
360 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac()
376 struct aead_ctx *req_ctx = aead_request_ctx(req); in one_packet() local
378 free_buf_chain(dev, req_ctx->buffer, crypt->src_buf); in one_packet()
379 if (req_ctx->hmac_virt) { in one_packet()
387 struct ablk_ctx *req_ctx = ablkcipher_request_ctx(req); in one_packet() local
389 if (req_ctx->dst) { in one_packet()
390 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
392 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet()
886 struct ablk_ctx *req_ctx = ablkcipher_request_ctx(req); in ablk_perform() local
918 req_ctx->dst = NULL; in ablk_perform()
923 req_ctx->dst = dst_hook.next; in ablk_perform()
926 req_ctx->dst = NULL; in ablk_perform()
928 req_ctx->src = NULL; in ablk_perform()
933 req_ctx->src = src_hook.next; in ablk_perform()
941 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in ablk_perform()
944 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in ablk_perform()
1011 struct aead_ctx *req_ctx = aead_request_ctx(req); in aead_perform() local
1053 req_ctx->buffer = src_hook.next; in aead_perform()
1058 sg_init_table(&req_ctx->ivlist, 1); in aead_perform()
1059 sg_set_buf(&req_ctx->ivlist, iv, ivsize); in aead_perform()
1060 buf = chainup_buffers(dev, &req_ctx->ivlist, ivsize, buf, flags, in aead_perform()
1067 req_ctx->hmac_virt = dma_pool_alloc(buffer_pool, flags, in aead_perform()
1069 if (unlikely(!req_ctx->hmac_virt)) in aead_perform()
1072 scatterwalk_map_and_copy(req_ctx->hmac_virt, in aead_perform()
1075 req_ctx->encrypt = encrypt; in aead_perform()
1077 req_ctx->hmac_virt = NULL; in aead_perform()
1084 if (!req_ctx->hmac_virt) { in aead_perform()
1093 if (req_ctx->hmac_virt) { in aead_perform()
1094 dma_pool_free(buffer_pool, req_ctx->hmac_virt, in aead_perform()
1098 free_buf_chain(dev, req_ctx->buffer, crypt->src_buf); in aead_perform()