Lines Matching refs:virtio_crypto_algs
579 static struct virtio_crypto_algo virtio_crypto_algs[] = { { variable
609 for (i = 0; i < ARRAY_SIZE(virtio_crypto_algs); i++) { in virtio_crypto_skcipher_algs_register()
611 uint32_t service = virtio_crypto_algs[i].service; in virtio_crypto_skcipher_algs_register()
612 uint32_t algonum = virtio_crypto_algs[i].algonum; in virtio_crypto_skcipher_algs_register()
617 if (virtio_crypto_algs[i].active_devs == 0) { in virtio_crypto_skcipher_algs_register()
618 ret = crypto_register_skcipher(&virtio_crypto_algs[i].algo); in virtio_crypto_skcipher_algs_register()
623 virtio_crypto_algs[i].active_devs++; in virtio_crypto_skcipher_algs_register()
625 virtio_crypto_algs[i].algo.base.cra_name); in virtio_crypto_skcipher_algs_register()
639 for (i = 0; i < ARRAY_SIZE(virtio_crypto_algs); i++) { in virtio_crypto_skcipher_algs_unregister()
641 uint32_t service = virtio_crypto_algs[i].service; in virtio_crypto_skcipher_algs_unregister()
642 uint32_t algonum = virtio_crypto_algs[i].algonum; in virtio_crypto_skcipher_algs_unregister()
644 if (virtio_crypto_algs[i].active_devs == 0 || in virtio_crypto_skcipher_algs_unregister()
648 if (virtio_crypto_algs[i].active_devs == 1) in virtio_crypto_skcipher_algs_unregister()
649 crypto_unregister_skcipher(&virtio_crypto_algs[i].algo); in virtio_crypto_skcipher_algs_unregister()
651 virtio_crypto_algs[i].active_devs--; in virtio_crypto_skcipher_algs_unregister()