Home
last modified time | relevance | path

Searched refs:gen_ctx (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_buffer_mgr.c338 if (req_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_cipher_request()
340 &req_ctx->gen_ctx.iv_dma_addr, ivsize); in cc_unmap_cipher_request()
341 dma_unmap_single(dev, req_ctx->gen_ctx.iv_dma_addr, in cc_unmap_cipher_request()
381 req_ctx->gen_ctx.iv_dma_addr = in cc_map_cipher_request()
383 if (dma_mapping_error(dev, req_ctx->gen_ctx.iv_dma_addr)) { in cc_map_cipher_request()
389 ivsize, info, &req_ctx->gen_ctx.iv_dma_addr); in cc_map_cipher_request()
391 req_ctx->gen_ctx.iv_dma_addr = 0; in cc_map_cipher_request()
488 if (areq_ctx->gen_ctx.iv_dma_addr) { in cc_unmap_aead_request()
489 dma_unmap_single(dev, areq_ctx->gen_ctx.iv_dma_addr, in cc_unmap_aead_request()
491 kfree_sensitive(areq_ctx->gen_ctx.iv); in cc_unmap_aead_request()
[all …]
Dcc_cipher.h17 struct async_gen_req_ctx gen_ctx; member
Dcc_cipher.c516 int direction = req_ctx->gen_ctx.op_type; in cc_setup_readiv_desc()
517 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_readiv_desc()
573 int direction = req_ctx->gen_ctx.op_type; in cc_setup_state_desc()
574 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_state_desc()
617 int direction = req_ctx->gen_ctx.op_type; in cc_setup_xex_state_desc()
620 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr; in cc_setup_xex_state_desc()
694 int direction = req_ctx->gen_ctx.op_type; in cc_setup_key_desc()
942 req_ctx->gen_ctx.op_type = direction; in cc_cipher_process()
Dcc_aead.h84 struct async_gen_req_ctx gen_ctx; member
Dcc_hash.h43 struct async_gen_req_ctx gen_ctx ____cacheline_aligned;
Dcc_aead.c227 if (areq_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT) { in cc_aead_complete()
880 int direct = req_ctx->gen_ctx.op_type; in cc_proc_digest_desc()
929 int direct = req_ctx->gen_ctx.op_type; in cc_set_cipher_desc()
935 set_din_type(&desc[idx], DMA_DLLI, req_ctx->gen_ctx.iv_dma_addr, in cc_set_cipher_desc()
969 int direct = req_ctx->gen_ctx.op_type; in cc_proc_cipher()
1216 int direct = req_ctx->gen_ctx.op_type; in cc_hmac_authenc()
1269 int direct = req_ctx->gen_ctx.op_type; in cc_xcbc_authenc()
1419 if (req_ctx->gen_ctx.op_type == DRV_CRYPTO_DIRECTION_DECRYPT) { in cc_ccm()
1444 req_ctx->gen_ctx.iv_dma_addr, AES_BLOCK_SIZE, NS_BIT); in cc_ccm()
1547 unsigned int cryptlen = (req_ctx->gen_ctx.op_type == in config_ccm_adata()
[all …]