Home
last modified time | relevance | path

Searched refs:key_dma_addr (Results 1 – 3 of 3) sorted by relevance

/linux-5.19.10/drivers/crypto/ccree/
Dcc_cipher.c25 dma_addr_t key_dma_addr; member
210 ctx_p->user.key_dma_addr = dma_map_single(dev, ctx_p->user.key, in cc_cipher_init()
213 if (dma_mapping_error(dev, ctx_p->user.key_dma_addr)) { in cc_cipher_init()
219 max_key_buf_size, ctx_p->user.key, &ctx_p->user.key_dma_addr); in cc_cipher_init()
254 dma_unmap_single(dev, ctx_p->user.key_dma_addr, max_key_buf_size, in cc_cipher_exit()
257 &ctx_p->user.key_dma_addr); in cc_cipher_exit()
469 dma_sync_single_for_cpu(dev, ctx_p->user.key_dma_addr, in cc_cipher_setkey()
488 dma_sync_single_for_device(dev, ctx_p->user.key_dma_addr, in cc_cipher_setkey()
621 dma_addr_t key_dma_addr = ctx_p->user.key_dma_addr; in cc_setup_xex_state_desc() local
649 (key_dma_addr + key_offset), in cc_setup_xex_state_desc()
[all …]
Dcc_hash.c78 dma_addr_t key_dma_addr; member
752 ctx->key_params.key_dma_addr = 0; in cc_hash_setkey()
761 ctx->key_params.key_dma_addr = in cc_hash_setkey()
764 if (dma_mapping_error(dev, ctx->key_params.key_dma_addr)) { in cc_hash_setkey()
771 &ctx->key_params.key_dma_addr, ctx->key_params.keylen); in cc_hash_setkey()
794 ctx->key_params.key_dma_addr, keylen, in cc_hash_setkey()
821 ctx->key_params.key_dma_addr, keylen, in cc_hash_setkey()
909 if (ctx->key_params.key_dma_addr) { in cc_hash_setkey()
910 dma_unmap_single(dev, ctx->key_params.key_dma_addr, in cc_hash_setkey()
913 &ctx->key_params.key_dma_addr, ctx->key_params.keylen); in cc_hash_setkey()
[all …]
Dcc_aead.c413 dma_addr_t key_dma_addr = 0; in cc_get_plain_hmac_key() local
447 key_dma_addr = dma_map_single(dev, key, keylen, DMA_TO_DEVICE); in cc_get_plain_hmac_key()
448 if (dma_mapping_error(dev, key_dma_addr)) { in cc_get_plain_hmac_key()
476 key_dma_addr, keylen, NS_BIT); in cc_get_plain_hmac_key()
501 set_din_type(&desc[idx], DMA_DLLI, key_dma_addr, in cc_get_plain_hmac_key()
533 if (key_dma_addr) in cc_get_plain_hmac_key()
534 dma_unmap_single(dev, key_dma_addr, keylen, DMA_TO_DEVICE); in cc_get_plain_hmac_key()