Lines Matching refs:req_ctx

353 	struct aead_ctx *req_ctx = aead_request_ctx(req);  in finish_scattered_hmac()  local
358 if (req_ctx->encrypt) { in finish_scattered_hmac()
359 scatterwalk_map_and_copy(req_ctx->hmac_virt, req->dst, in finish_scattered_hmac()
362 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac()
379 struct aead_ctx *req_ctx = aead_request_ctx(req); in one_packet() local
381 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet()
382 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
383 if (req_ctx->hmac_virt) in one_packet()
391 struct ablk_ctx *req_ctx = skcipher_request_ctx(req); in one_packet() local
398 if (req_ctx->encrypt) { in one_packet()
402 memcpy(req->iv, req_ctx->iv, ivsize); in one_packet()
403 memzero_explicit(req_ctx->iv, ivsize); in one_packet()
407 if (req_ctx->dst) in one_packet()
408 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet()
410 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet()
981 struct ablk_ctx *req_ctx = skcipher_request_ctx(req); in ablk_perform() local
997 req_ctx->encrypt = encrypt; in ablk_perform()
1015 scatterwalk_map_and_copy(req_ctx->iv, req->src, offset, ivsize, 0); in ablk_perform()
1023 req_ctx->dst = NULL; in ablk_perform()
1028 req_ctx->dst = dst_hook.next; in ablk_perform()
1031 req_ctx->dst = NULL; in ablk_perform()
1033 req_ctx->src = NULL; in ablk_perform()
1038 req_ctx->src = src_hook.next; in ablk_perform()
1046 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in ablk_perform()
1049 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in ablk_perform()
1098 struct aead_ctx *req_ctx = aead_request_ctx(req); in aead_perform() local
1138 req_ctx->src = src_hook.next; in aead_perform()
1148 req_ctx->dst = NULL; in aead_perform()
1158 req_ctx->dst = dst_hook.next; in aead_perform()
1175 req_ctx->hmac_virt = dma_pool_alloc(buffer_pool, flags, in aead_perform()
1177 if (unlikely(!req_ctx->hmac_virt)) in aead_perform()
1180 scatterwalk_map_and_copy(req_ctx->hmac_virt, in aead_perform()
1183 req_ctx->encrypt = encrypt; in aead_perform()
1185 req_ctx->hmac_virt = NULL; in aead_perform()
1194 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in aead_perform()
1196 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in aead_perform()