Lines Matching refs:vcrypto

22 	struct virtio_crypto *vcrypto;  member
121 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_init_session() local
172 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_init_session()
201 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_close_session() local
234 err = virtio_crypto_ctrl_vq_request(vcrypto, sgs, num_out, num_in, vc_ctrl_req); in virtio_crypto_alg_skcipher_close_session()
257 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_alg_skcipher_init_sessions() local
259 if (keylen > vcrypto->max_cipher_key_len) { in virtio_crypto_alg_skcipher_init_sessions()
295 if (!ctx->vcrypto) { in virtio_crypto_skcipher_setkey()
298 struct virtio_crypto *vcrypto = in virtio_crypto_skcipher_setkey() local
301 if (!vcrypto) { in virtio_crypto_skcipher_setkey()
306 ctx->vcrypto = vcrypto; in virtio_crypto_skcipher_setkey()
315 virtcrypto_dev_put(ctx->vcrypto); in virtio_crypto_skcipher_setkey()
316 ctx->vcrypto = NULL; in virtio_crypto_skcipher_setkey()
333 struct virtio_crypto *vcrypto = ctx->vcrypto; in __virtio_crypto_skcipher_do_req() local
359 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
364 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
401 sizeof(vc_req->status) > vcrypto->max_size)) { in __virtio_crypto_skcipher_do_req()
421 dev_to_node(&vcrypto->vdev->dev)); in __virtio_crypto_skcipher_do_req()
475 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_skcipher_encrypt() local
477 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_encrypt()
500 struct virtio_crypto *vcrypto = ctx->vcrypto; in virtio_crypto_skcipher_decrypt() local
502 struct data_queue *data_vq = &vcrypto->data_vq[0]; in virtio_crypto_skcipher_decrypt()
535 if (!ctx->vcrypto) in virtio_crypto_skcipher_exit()
540 virtcrypto_dev_put(ctx->vcrypto); in virtio_crypto_skcipher_exit()
541 ctx->vcrypto = NULL; in virtio_crypto_skcipher_exit()
602 int virtio_crypto_skcipher_algs_register(struct virtio_crypto *vcrypto) in virtio_crypto_skcipher_algs_register() argument
614 if (!virtcrypto_algo_is_supported(vcrypto, service, algonum)) in virtio_crypto_skcipher_algs_register()
624 dev_info(&vcrypto->vdev->dev, "Registered algo %s\n", in virtio_crypto_skcipher_algs_register()
633 void virtio_crypto_skcipher_algs_unregister(struct virtio_crypto *vcrypto) in virtio_crypto_skcipher_algs_unregister() argument
645 !virtcrypto_algo_is_supported(vcrypto, service, algonum)) in virtio_crypto_skcipher_algs_unregister()