Lines Matching refs:vcrypto

19 	struct virtio_crypto *vcrypto;  member
116 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_init_session() local
167 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
196 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_close_session() local
229 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()
253 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_init_sessions() local
255 if (keylen > vcrypto->max_cipher_key_len) { in virtio_crypto_alg_skcipher_init_sessions()
291 if (!ctx->vcrypto) { in virtio_crypto_skcipher_setkey()
294 struct virtio_crypto *vcrypto = in virtio_crypto_skcipher_setkey() local
297 if (!vcrypto) { in virtio_crypto_skcipher_setkey()
302 ctx->vcrypto = vcrypto; in virtio_crypto_skcipher_setkey()
311 virtcrypto_dev_put(ctx->vcrypto); in virtio_crypto_skcipher_setkey()
312 ctx->vcrypto = NULL; in virtio_crypto_skcipher_setkey()
329 struct virtio_crypto *vcrypto = ctx->vcrypto; in __virtio_crypto_skcipher_do_req() local
355 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
360 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
397 sizeof(vc_req->status) > vcrypto->max_size)) { in __virtio_crypto_skcipher_do_req()
417 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
471 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_skcipher_encrypt() local
473 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt()
494 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_skcipher_decrypt() local
496 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt()
521 if (!ctx->vcrypto) in virtio_crypto_skcipher_exit()
526 virtcrypto_dev_put(ctx->vcrypto); in virtio_crypto_skcipher_exit()
527 ctx->vcrypto = NULL; in virtio_crypto_skcipher_exit()
591 int virtio_crypto_skcipher_algs_register(struct virtio_crypto *vcrypto) in virtio_crypto_skcipher_algs_register() argument
603 if (!virtcrypto_algo_is_supported(vcrypto, service, algonum)) in virtio_crypto_skcipher_algs_register()
613 dev_info(&vcrypto->vdev->dev, "Registered algo %s\n", in virtio_crypto_skcipher_algs_register()
622 void virtio_crypto_skcipher_algs_unregister(struct virtio_crypto *vcrypto) in virtio_crypto_skcipher_algs_unregister() argument
634 !virtcrypto_algo_is_supported(vcrypto, service, algonum)) in virtio_crypto_skcipher_algs_unregister()