Home
last modified time | relevance | path

Searched refs:crypto_dev (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/u-boot/lib/avb/libavb/
H A Davb_sha512.c142 ctx->crypto_dev = crypto_get_device(ctx->crypto_ctx.algo); in avb_sha512_init()
144 if (ctx->crypto_dev) { in avb_sha512_init()
145 crypto_sha_init(ctx->crypto_dev, &ctx->crypto_ctx); in avb_sha512_init()
339 if (ctx->crypto_dev) { in avb_sha512_update()
340 crypto_sha_update(ctx->crypto_dev, (u32 *)data, len); in avb_sha512_update()
379 if (ctx->crypto_dev) { in avb_sha512_final()
380 crypto_sha_final(ctx->crypto_dev, &ctx->crypto_ctx, ctx->buf); in avb_sha512_final()
H A Davb_sha256.c47 ctx->crypto_dev = crypto_get_device(ctx->crypto_ctx.algo); in avb_sha256_init()
48 if (!ctx->crypto_dev) in avb_sha256_init()
51 crypto_sha_init(ctx->crypto_dev, &ctx->crypto_ctx); in avb_sha256_init()
55 if (ctx->crypto_dev) in avb_sha256_update()
56 crypto_sha_update(ctx->crypto_dev, (u32 *)data, len); in avb_sha256_update()
60 if (ctx->crypto_dev) in avb_sha256_final()
61 crypto_sha_final(ctx->crypto_dev, &ctx->crypto_ctx, ctx->buf); in avb_sha256_final()
/OK3568_Linux_fs/u-boot/include/android_avb/
H A Davb_sha.h64 struct udevice *crypto_dev; member
77 struct udevice *crypto_dev; member
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/cryptodev_linux/
H A Drk_cryptodev.c242 struct device *crypto_dev = rk_cryptodev_find_dev(NULL); in get_dmafd_sgtbl() local
244 if (!crypto_dev) in get_dmafd_sgtbl()
258 *dma_attach = dma_buf_attach(*dmabuf, crypto_dev); in get_dmafd_sgtbl()
278 dma_sync_sg_for_cpu(crypto_dev, (*sg_tbl)->sgl, (*sg_tbl)->nents, DMA_FROM_DEVICE); in get_dmafd_sgtbl()
298 struct device *crypto_dev = rk_cryptodev_find_dev(NULL); in put_dmafd_sgtbl() local
300 if (!crypto_dev) in put_dmafd_sgtbl()
308 dma_sync_sg_for_device(crypto_dev, sg_tbl->sgl, sg_tbl->nents, DMA_TO_DEVICE); in put_dmafd_sgtbl()
485 struct device *crypto_dev = NULL; in dma_fd_map_for_user() local
495 crypto_dev = rk_cryptodev_find_dev(NULL); in dma_fd_map_for_user()
496 if (!crypto_dev) in dma_fd_map_for_user()
[all …]