Lines Matching refs:gen_ctx
345 if (req_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_cipher_request()
347 &req_ctx->gen_ctx.iv_dma_addr, ivsize); in cc_unmap_cipher_request()
348 dma_unmap_single(dev, req_ctx->gen_ctx.iv_dma_addr, in cc_unmap_cipher_request()
391 req_ctx->gen_ctx.iv_dma_addr = in cc_map_cipher_request()
393 if (dma_mapping_error(dev, req_ctx->gen_ctx.iv_dma_addr)) { in cc_map_cipher_request()
399 ivsize, info, &req_ctx->gen_ctx.iv_dma_addr); in cc_map_cipher_request()
401 req_ctx->gen_ctx.iv_dma_addr = 0; in cc_map_cipher_request()
499 if (areq_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_aead_request()
500 dma_unmap_single(dev, areq_ctx->gen_ctx.iv_dma_addr, in cc_unmap_aead_request()
502 kfree_sensitive(areq_ctx->gen_ctx.iv); in cc_unmap_aead_request()
528 areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT && in cc_unmap_aead_request()
556 areq_ctx->gen_ctx.iv_dma_addr = 0; in cc_aead_chain_iv()
557 areq_ctx->gen_ctx.iv = NULL; in cc_aead_chain_iv()
561 areq_ctx->gen_ctx.iv = kmemdup(req->iv, hw_iv_size, flags); in cc_aead_chain_iv()
562 if (!areq_ctx->gen_ctx.iv) in cc_aead_chain_iv()
565 areq_ctx->gen_ctx.iv_dma_addr = in cc_aead_chain_iv()
566 dma_map_single(dev, areq_ctx->gen_ctx.iv, hw_iv_size, in cc_aead_chain_iv()
568 if (dma_mapping_error(dev, areq_ctx->gen_ctx.iv_dma_addr)) { in cc_aead_chain_iv()
571 kfree_sensitive(areq_ctx->gen_ctx.iv); in cc_aead_chain_iv()
572 areq_ctx->gen_ctx.iv = NULL; in cc_aead_chain_iv()
578 hw_iv_size, req->iv, &areq_ctx->gen_ctx.iv_dma_addr); in cc_aead_chain_iv()
656 enum drv_crypto_direction direct = areq_ctx->gen_ctx.op_type; in cc_prepare_aead_data_dlli()
682 enum drv_crypto_direction direct = areq_ctx->gen_ctx.op_type; in cc_prepare_aead_data_mlli()
795 enum drv_crypto_direction direct = areq_ctx->gen_ctx.op_type; in cc_aead_chain_data()
918 if (areq_ctx->gen_ctx.op_type == in cc_update_aead_mlli_nents()
967 areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT && in cc_map_aead_request()
972 areq_ctx->cryptlen = (areq_ctx->gen_ctx.op_type == in cc_map_aead_request()
1056 if ((areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_ENCRYPT) && in cc_map_aead_request()